csqc: Implement builtin #177 "localsound"
Unify the command and cvar flags, under the CF_ prefix. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12923 d7cf8633-e32d-0410-b094-e92efae38249
Rename qboolean to qbool git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12920 d7cf8633-e32d-0410-b094-e92efae38249
Fix snd_null prototype for a function which broke the dedicated server build. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12521 d7cf8633-e32d-0410-b094-e92efae38249
removed S_StartSound_StartPosition function because it was unnecessary make sure flags is passed correctly to CL_VM_Event_Sound and S_StartSound_StartPosition_Flags git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11399 d7cf8633-e32d-0410-b094-e92efae38249
sound mixer now operates on floating point, has on-the-fly resampling (allows features like pitch shifting, and potentially doppler), and the ogg and modplug streaming code has been largely rewritten, much cleaner now, this saves about 4MB of ram when playing quake content at default settings (by not resampling the wav data to 48khz anymore), snd_speed changes will now apply to next vid_restart (tested at 48, 96, 192khz) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11352 d7cf8633-e32d-0410-b094-e92efae38249
eliminated S_LockSfx and S_UnlockSfx which were not thread-safe and could cause sounds to leak across multiple levels, cd play/loop now immediately unload previous music track git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11189 d7cf8633-e32d-0410-b094-e92efae38249
add the new S_ function to snd_null.c too git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11178 d7cf8633-e32d-0410-b094-e92efae38249
new cvar: mastervolume (controlling both volume and bgmvolume) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10173 d7cf8633-e32d-0410-b094-e92efae38249
S_GetEntChallelPosition -> S_GetEntChannelPosition git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10089 d7cf8633-e32d-0410-b094-e92efae38249
add stubs for S_SoundLength, S_GetEntChallelPosition, dedicated server should compile now git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10088 d7cf8633-e32d-0410-b094-e92efae38249
implemented music playlist system with 10 playlists, automatic track resume when switching between playlists (setting sampleposition to 0 will cause it to save and resume the position in the track, -1 restarts) and random play options for each playlist playlist system overrides normal cd console commands if index is not -1 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9883 d7cf8633-e32d-0410-b094-e92efae38249
snd_alsa: MIDI input support! MIDI events get mapped to MIDINOTE<n> events (n = 0 to 127) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9232 d7cf8633-e32d-0410-b094-e92efae38249
DP_QC_GETTIME_CDTRACK: extension to query the playing time of the current cd track. Beware: the timing is currently not exact. Might get improved later. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8930 d7cf8633-e32d-0410-b094-e92efae38249
fix csqc sound precaches which were being freed after the level loaded git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8919 d7cf8633-e32d-0410-b094-e92efae38249
do not unload models/sounds until signon is done, this prevents the reloading of music tracks on level change, as well as the reloading of csqc-precached models and sounds git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8897 d7cf8633-e32d-0410-b094-e92efae38249
Experimental theora capturevideo code. Still contains known memory leaks, and no configurability at all. Try out using scr_capturevideo_ogg 1 and then capturing a video. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8722 d7cf8633-e32d-0410-b094-e92efae38249
added a parameter to S_StopChannel to trigger a mutex lock, this fixes crashes in the SDL audio callback when S_StopChannel clears fields while they are being used in the mixer (this mostly crashed on level changes), the mutex lock itself is done simply by calling SndSys_LockRenderBuffer git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8176 d7cf8633-e32d-0410-b094-e92efae38249
make snd_null.c work again (added snd_mutewhenidle) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7545 d7cf8633-e32d-0410-b094-e92efae38249
renamed snd_reload to snd_unloadallsounds to clarify its purpose git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7339 d7cf8633-e32d-0410-b094-e92efae38249