Csound Csound-dev Csound-tekno Search About

[Cs-dev] ALSA buffer sizes fix

Date2009-11-17 10:24
FromLilith Bryant
Subject[Cs-dev] ALSA buffer sizes fix
Attachmentspatch.txt  None  None  
Could some one please commit this change?  It stops the unnecessary 
fatal error when csound can't get _exactly_ the ALSA buffer/period sizes 
it wants.

The dmix plugin is used by default for ALSA these days, and it tends to 
come up with weird and wacky buffer size requirements (especially when 
playing 44.1K material through 48K-capable-only AC97 hardware).

This small patch frees the user from the requirement of having to get 
just the right -b/-B for things to work.  There is no problem with 
mismatched buffer sizes in the engine vs the rt output module, the 
buffer sizes allocate correctly, and snd_pcw_writei/readi will happily 
accept any old size of write/read.

This does not change any current valid existing operation, i.e. if it 
worked before, it will work now.

Date2009-11-17 12:07
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] ALSA buffer sizes fix
In CVS now

> Could some one please commit this change?  It stops the unnecessary
> fatal error when csound can't get _exactly_ the ALSA buffer/period sizes
> it wants.
>
> The dmix plugin is used by default for ALSA these days, and it tends to
> come up with weird and wacky buffer size requirements (especially when
> playing 44.1K material through 48K-capable-only AC97 hardware).
>
> This small patch frees the user from the requirement of having to get
> just the right -b/-B for things to work.  There is no problem with
> mismatched buffer sizes in the engine vs the rt output module, the
> buffer sizes allocate correctly, and snd_pcw_writei/readi will happily
> accept any old size of write/read.
>
> This does not change any current valid existing operation, i.e. if it
> worked before, it will work now.
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.
> http://p.sf.net/sfu/bobj-july_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net