X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sound.h;h=561272ba51d336203de9c7e0d1d6993f461c8dab;hp=5ab1c4d8f020f8bcd5c0d832225a362b3f16943e;hb=69a003b5def5ea2ece7310d3b35b62bf023c29b1;hpb=edfcde7fdd922dfdd65d5eaa93e1ec9cca33bab0 diff --git a/sound.h b/sound.h index 5ab1c4d8..561272ba 100644 --- a/sound.h +++ b/sound.h @@ -186,6 +186,11 @@ void S_RawSamples_Enqueue(short *samples, unsigned int length); void S_RawSamples_Dequeue(int *samples, unsigned int length); // empty the rawsamples queue void S_RawSamples_ClearQueue(void); +// returns how much more data the queue wants, or 0 if it is already full enough +int S_RawSamples_QueueWantsMore(void); + +// resamples one sound buffer into another, while changing the length +void S_ResampleBuffer16Stereo(short *input, int inputlength, short *output, int outputlength); #endif