X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sound.h;h=684102eece285082e775d662d857da8e09af6d3e;hp=5ab1c4d8f020f8bcd5c0d832225a362b3f16943e;hb=6e76229122cf43bbeb0427fcb16dab8de3d490b5;hpb=edfcde7fdd922dfdd65d5eaa93e1ec9cca33bab0 diff --git a/sound.h b/sound.h index 5ab1c4d8..684102ee 100644 --- a/sound.h +++ b/sound.h @@ -90,6 +90,8 @@ typedef struct void S_Init (void); void S_Startup (void); void S_Shutdown (void); +void S_Open (void); +void S_Close (void); void S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation); void S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation); void S_StopSound (int entnum, int entchannel); @@ -186,6 +188,14 @@ 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); + +// returns the rate that the rawsamples system is running at +int S_RawSamples_SampleRate(void); #endif