# Uncorrect behaviour of SDL-audio when asked to do conversion runtime while playing

**URL:** <https://discourse.libsdl.org/t/uncorrect-behaviour-of-sdl-audio-when-asked-to-do-conversion-runtime-while-playing/13763>\
**Category:** SDL Development\
**Created:** [August 21, 2006, 7:42pm UTC](https://discourse.libsdl.org/t/uncorrect-behaviour-of-sdl-audio-when-asked-to-do-conversion-runtime-while-playing/13763 "2006-08-21T19:42:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfredo\_Tupone](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@Alfredo\_Tupone](https://discourse.libsdl.org/u/Alfredo_Tupone)\
**Post date:** [August 21, 2006, 7:42pm UTC](https://discourse.libsdl.org/t/uncorrect-behaviour-of-sdl-audio-when-asked-to-do-conversion-runtime-while-playing/13763/1 "2006-08-21T19:42:45Z")

</div>

As I pointed out on SDL bugzilla  
[http://bugzilla.libsdl.org/show\_bug.cgi?id=298](http://bugzilla.libsdl.org/show_bug.cgi?id=298)  
audio is not behaving correctly when the conversion of sound stream  
require more samples on output then the one that are incoming. While  
there is actually a bug on SDL, I wonder what should be the number of  
samples agreed between user and SDL (and actually the driver), when the  
agreed sound rate is not the one asked from the client:  
e.g.  
I ask for 11025 sample/sec and number of samples 512  
If sound driver accept only a 48000 sample/sec, should SDL ask the  
driver if it accepts 512 \* 48000 / 11025 and report back the scaled  
value to the application or what?
