Problem with SDL_OpenAudio and callback period ? |
reddog0000
|
SOLVED ----
I removed all the SDL headers, libs and dll from my default installations and downloaded the current development version from the SDL web site ie SDL-1.2.15 and updated all project and IDE configuration files to use the new version. It worked ! 000001 000 00 [000000] zeng_audio : desired: freq [22050] samples[1024] size[0] 000002 000 00 [000000] zeng_audio : desired: (samples*1000) / freq = 46 000003 000 00 [000000] zeng_audio : calling SDL_OpenAudio... 000004 000 00 [000030] zeng_audio : desired: freq [22050] samples[1024] size[2048] 000005 000 00 [000030] zeng_audio : desired: (samples*1000) / freq = 46 000006 000 00 [000030] zeng_audio : obtained: freq [22050] samples[1024] size[2048] 000007 000 00 [000030] zeng_audio : obtained: (samples*1000) / freq = 46 As the above log shows SDL now calculates the callback period correctly eg ~45ms So now the user can an explosions and hear it without the previous 250ms delay ... woof |
|||||||||||
|