]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Ogg vorbis streaming support; the code decides whether it will cache or stream the...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 23 Mar 2004 08:28:28 +0000 (08:28 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 23 Mar 2004 08:28:28 +0000 (08:28 +0000)
commitad40941adf0fe050fcc609b588cc05266bf26b84
tree36b374a60d050f8df5a8edaef8c41bf270735ac9
parent1e1dbc1c5b89ae4ab8cdd9b32dc6413c67f5dd84
Ogg vorbis streaming support; the code decides whether it will cache or stream the sound depending on the file and uncompressed sound sizes. It should be stable enough for a regular use now; you lose a few FPS once every second or so of course, it's not free, but you can expect the Vorbis stream to use between 5 and 12 times less memory than before, depending on the sound quality and the number of SFX sources using it. This patch also contains a couple of fixes (a pretty annoying typo in the OSS and BSD driver - 22051Hz instead of 22050Hz, and a potential memory leak in WAV loader)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4052 d7cf8633-e32d-0410-b094-e92efae38249
snd_bsd.c
snd_dma.c
snd_mem.c
snd_mix.c
snd_ogg.c
snd_ogg.h
snd_oss.c
snd_win.c
sound.h