Skip to content
Advertisement

Tag: pcm

How to properly set up ALSA device

Edit: This question is different than the proposed duplicate because I’m asking How do you set the period/buffer size that will work with multiple targets each with different sound hardware?. I have created some code that attempts to set up ALSA before playback of an OGG file. The code below works on one embedded Linux platform, but on another it

Setting channel volume in ALSA

My app plays raw PCM audio data through various channels using ALSA. I’m allocating a new audio channel by using snd_pcm_open(), then setting the PCM format via the snd_pcm_hw_params_xxx() calls and finally feeding raw PCM audio data to ALSA by using the snd_pcm_writei() API. This is all working fine so far but I haven’t found any way to tell ALSA

Advertisement