X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=sound.h;h=684102eece285082e775d662d857da8e09af6d3e;hb=3a3aa7084a0065a5106a661cfbf73030d46108ae;hp=561272ba51d336203de9c7e0d1d6993f461c8dab;hpb=b0671fcac8564a24ec6d499c0a574d71d937ea7d;p=xonotic%2Fdarkplaces.git diff --git a/sound.h b/sound.h index 561272ba..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); @@ -192,5 +194,8 @@ 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