This attribute is told to act as primary factor to overall playing latency.
In source code, it’s told to be set to values betw. 512 and 8196
inclusively.
But I found that this value is affecting the audio far different from what I
understood from documentaion, several samples, forums etc.: I found that I
have to set it to 1/32 of WAV record length (44,1kHz signed 16bit stereo
PCM) - if set to lower values, this cause the record to be played in loop
(but not in entire length, only head-part of the record is looped!). If
set to higher values, the record is made longer of certain 'silence’
inserted in the buffer. By the way, it seems that the paramter still has to
be set to a value of power of 2, otherwise, the record still may be played
incorrectly (being cut from its end).
This case occurs with SDL 1.3.0-5538 on Win32 build, that utilizes DirrectX
(5?) API.
Is this behavior correct or anyone experiences same problem?
Can you provide a small test case that shows the problem?On Fri, May 13, 2011 at 2:38 AM, Pete Lefis wrote:
This attribute is told to act as primary factor to overall playing latency.
In source code, it’s told to be set to values betw. 512 and 8196
inclusively.
But I found that this value is affecting the audio far different from what
I understood from documentaion, several samples, forums etc.: I found that I
have to set it to 1/32 of WAV record length (44,1kHz signed 16bit stereo
PCM) - if set to lower values, this cause the record to be played in loop
(but not in entire length, only head-part of the record is looped!). If
set to higher values, the record is made longer of certain ‘silence’
inserted in the buffer. By the way, it seems that the paramter still has to
be set to a value of power of 2, otherwise, the record still may be played
incorrectly (being cut from its end).
This case occurs with SDL 1.3.0-5538 on Win32 build, that utilizes DirrectX
(5?) API.
Is this behavior correct or anyone experiences same problem?
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org