]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Fake CD tracks support; DP now tries to play "sound/cdtracks/trackXX.wav" instead...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 5 Apr 2004 07:00:19 +0000 (07:00 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 5 Apr 2004 07:00:19 +0000 (07:00 +0000)
commit543e06fbc28e7930b50d08c4db9c1b45e48acbc7
treec0867dddda247f13b69c9ccf584f4d8a2ea4e84f
parent08ac9ba2f1502053d4815b0e4e6ecabc3ad6b63d
Fake CD tracks support; DP now tries to play "sound/cdtracks/trackXX.wav" instead of CD track XX. If it fails, it tries "trackXX.ogg", and then the real CD track if any. CD console commands should work as expected.
"cd_shared.c" is now part of the common files so it allows people to compile DP without real CD support, but with fake CD tracks support. "cd_null.c" is now a null driver, at the same level as "cd_linux.c" or "cd_win.c".
Fixed the broken return value of S_StartSound and a potential memory leak in S_StopAllSounds in the process.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4085 d7cf8633-e32d-0410-b094-e92efae38249
cd_bsd.c
cd_linux.c
cd_null.c
cd_shared.c
makefile.inc
snd_dma.c
snd_mix.c
snd_null.c
sound.h