[SDL] callback issue
Chris Dobbs
chris_dobbs at dobbscr.karoo.co.uk
Sat Apr 28 08:28:31 PDT 2007
All,
Can someone verify if the following behaviour is correct (and if so why) regarding audio output.
I have opened the audio device with following params:
frequency=8000
samples=256
channels=1
format=AUDIO_S16SYS
The audio callback routine I have assigned fires ok but the length parameter passed to it is not 512 as I would expect, instead it is 340...!?
The way I understand this is that I have asked SDL to allow me to feed in 256 16 bit samples (512 bytes) every time the callback fires.
Is this correct or am I missing something - It is possible that my DSP has developed a problem as I have noticed odd crackles occasionally in the speaker.
The OS is 2.6.18 custom on a DELL inspiron 6000
Any help is appreciated as usual.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070428/8a3462cd/attachment.html
More information about the SDL
mailing list