Skip to content

[Not for merge] Begin to support tinyalsa#210

Open
csukuangfj wants to merge 1 commit intok2-fsa:masterfrom
csukuangfj:tiny-alsa
Open

[Not for merge] Begin to support tinyalsa#210
csukuangfj wants to merge 1 commit intok2-fsa:masterfrom
csukuangfj:tiny-alsa

Conversation

@csukuangfj
Copy link
Collaborator

Not for merge.

memset(&config, 0, sizeof(config));
config.channels = 2;
config.rate = 48000;
config.format = PCM_FORMAT_S32_LE;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The format should be
PCM_FORMAT_S16_LE

struct pcm_config config;

memset(&config, 0, sizeof(config));
config.channels = 2;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
config.channels = 2;
config.channels = 1;


memset(&config, 0, sizeof(config));
config.channels = 2;
config.rate = 48000;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
config.rate = 48000;
config.rate = 16000;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant