Skip to content

period_size as a config value - too much insight needed #6

@emphasize

Description

@emphasize

@dataclass
class AlsaMicrophone(Microphone):
device: str = "default"
period_size: int = 1024

The defined (hardcoded) chunk_size is a function of periods # * period_size.

eg. in our case 4096 (chunk_size) = 4 (periods) * 1024 (period_size)

So, either make all configurable, or, as i would suggest none of them as it requires too much insight.
But maybe someone with greater knowledge in sound processing should chip in about period size

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions