]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sound.h
changed to use C runtime library DLL instead of static linking it
[xonotic/darkplaces.git] / sound.h
diff --git a/sound.h b/sound.h
index a37b2e8d0958dc7007624be0d94e9b343971ba37..561272ba51d336203de9c7e0d1d6993f461c8dab 100644 (file)
--- a/sound.h
+++ b/sound.h
@@ -98,7 +98,7 @@ void S_ClearBuffer (void);
 void S_Update (vec3_t origin, vec3_t v_forward, vec3_t v_right, vec3_t v_up);
 void S_ExtraUpdate (void);
 
-sfx_t *S_PrecacheSound (char *sample);
+sfx_t *S_PrecacheSound (char *sample, int complain);
 void S_TouchSound (char *sample);
 void S_ClearPrecache (void);
 void S_BeginPrecaching (void);
@@ -167,7 +167,7 @@ extern qboolean     snd_initialized;
 extern int snd_blocked;
 
 void S_LocalSound (char *s);
-sfxcache_t *S_LoadSound (sfx_t *s);
+sfxcache_t *S_LoadSound (sfx_t *s, int complain);
 
 wavinfo_t GetWavinfo (char *name, qbyte *wav, int wavlength);
 
@@ -177,5 +177,20 @@ void SNDDMA_Submit(void);
 void S_AmbientOff (void);
 void S_AmbientOn (void);
 
+void *S_LockBuffer(void);
+void S_UnlockBuffer(void);
+
+// add some data to the tail of the rawsamples queue
+void S_RawSamples_Enqueue(short *samples, unsigned int length);
+// read and remove some data from the head of the rawsamples queue
+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