[Openal] Queuing multiple buffers with changing frequency to one source

Jason Daly jdaly at ist.ucf.edu
Thu Apr 24 07:59:11 PDT 2008


Jörn Koch wrote:
> Dear list,
>
> According to the documentation OpenAL 1.1 implementations restrict 
> multiple buffers queued to one source to be of the same audio format.
> Does this mean, that they also have to have the same frequency or is 
> it possible to enqueue buffers with different frequency to one source?
>
> E.g: All buffers are of format AL_FORMAT_STEREO16 but their frequency
> is either 44100 Hz or 32000 Hz.

"All buffers in a queue must have the same format and attributes."  
That's pretty clear.  Buffer attributes include frequency, bits, 
channels, and size (although I think most implementations _are_ tolerant 
of varying sizes).

Feel free to try it out.  Some implementations might not care (software 
implementations in particular), but I wouldn't expect every 
implementation to work.  This is the kind of thing that hardware hates, 
for example.

What exactly are you trying to do in your application?  There might be a 
way around the problem.

--"J"



More information about the Openal mailing list