Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Mono streams
@ 2008-05-12 13:05 Nagar, Mrigendra
  2008-05-12 14:08 ` Liam Girdwood
  0 siblings, 1 reply; 2+ messages in thread
From: Nagar, Mrigendra @ 2008-05-12 13:05 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mono streams
  2008-05-12 13:05 Mono streams Nagar, Mrigendra
@ 2008-05-12 14:08 ` Liam Girdwood
  0 siblings, 0 replies; 2+ messages in thread
From: Liam Girdwood @ 2008-05-12 14:08 UTC (permalink / raw)
  To: Nagar, Mrigendra; +Cc: alsa-devel@alsa-project.org

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.
> 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

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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-12 14:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-12 13:05 Mono streams Nagar, Mrigendra
2008-05-12 14:08 ` Liam Girdwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox