[alsa-devel] Mono streams
Hi, I have recently started working on ALSA libraries. I am facing following problems. It would be great help If some one can help me out. 1) Mono streams: If I try to play A MONO streams. It plays Faster. My driver configuration is i) Blocking mode ii) Access mode is interleaved iii) No of channels are set to 1 2) Buffer under run while playing Mono stream. i) Blocking mode i) Hardware buffer size is 65536 ii) Periods is set to 64 I always encounter buffer under run If I try to decode and play a stream frame by frame. Frame size is constant and it is 2048. If I club two frames and Try to play it. It plays well. In second case buffer size becomes 4096. My question is: Is there any optimal buffer size. Which one should set to have smooth payout?
Regards, Mrigen
On Mon, 2008-05-12 at 18:35 +0530, Nagar, Mrigendra wrote:
Hi, I have recently started working on ALSA libraries. I am facing following problems. It would be great help If some one can help me out.
- Mono streams: If I try to play A MONO streams. It plays Faster. My driver configuration is
i) Blocking mode ii) Access mode is interleaved iii) No of channels are set to 1
It sounds like your hardware is playing mono as stereo. Check your driver as it may always play stereo regardless of the requested number of channels.
Liam
participants (2)
-
Liam Girdwood
-
Nagar, Mrigendra