Digital Paint Discussion Board
Development => Bugs, Feature Requests, and Feedback => Official Feature Votes => Topic started by: Zorchenhimer on January 05, 2008, 09:53:03 PM
-
So we could replace all the .wav files with .ogg files, thus saving some space.
-
http://dplogin.com/dplogin/featurevote/feature.php?id=10022
Though unless we add music or some form of large audio clips, the sounds don't really take up that much space.
-
Zorch could make an OGG player menu :D
-
Zorch could make an OGG player menu :D
The funny thing is, I was thinking the same thing. :D
Think it was originally {appy Hamper's idea though.
-
What is Ogg Vorbis?
-
Audio format, like MP3 but open sourced.
-
Ogg is a container, vorbis is a format/codec.
-
I got ogg vorbis support (for music only) working on windows. I took 90% of the code from the linux-based QuDoS' engine, so there shouldn't be many, if any portability issues. Now I need to check it compiles on linux, and add a hook in the map loader to download/play whatever music that map lists in the worldspawn, and make it work for looping sound entities :-)
-
You've been a little code monkey lately V - Good Job!
-
Edited the makefile a bit so it works on linux too (libvorbis-dev package for the headers) - looks like the worldspawn stuff will need to be done in the gamecode.
Here is the patch:
http://www.viciouz.co.uk/other/miscfiles/paintball2_oggvorbis_basic.patch
-
You've been busy, haven't you?
Haha.
-
The beauty of open source code at work. Good job Vic
-
Tested this out last night. Seems to work pretty well. Only problem I found was that it got choppy when loading maps. At some point, I'd like to put the sound in a separate thread, which would probably fix that issue. Another thing that would be nice is to have an option to make the music play only when in the menu. Personally, I don't like to have music playing while playing a game, but some nice menu music when you start the game would be cool. Another thing I'm curious of - if we make some ambient sounds specified in the worldspawn, wouldn't that mean nobody could play music and have ambient sound at the same time? Will this work with regular sound clips (could we replace all the .wav files with .ogg) or is this for music only at the moment?
-
Only for music at the moment, I just ported QuDoS's code, which was just a linux compatible port of Q2E's code.
I think there is a bug when using the snd_alsa driver on linux - snd_oss works fine.
-
I hate Linux. I went to get the vorbis dev files, and ftp.us.debian.org was completely down or something, so I couldn't apt-get anything. I switced my sources.list over to just ftp.debian.org, and now I get this error:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
libvorbis-dev: Depends: libvorbis0a (= 1.1.2.dfsg-1.4) but 1.2.0.dfsg-2 is to be installed
Depends: libvorbisenc2 (= 1.1.2.dfsg-1.4) but 1.2.0.dfsg-2 is to be installed
Depends: libvorbisfile3 (= 1.1.2.dfsg-1.4) but 1.2.0.dfsg-2 is to be installed
E: Broken packages
Am I reading this right? It can't install because what it depends on is a newer version? Ugh.
-
http://packages.ubuntu.com/intrepid/libvorbis0a
http://packages.ubuntu.com/intrepid/libvorbisenc2
http://packages.ubuntu.com/intrepid/libvorbisfile3
Those are the Ubuntu packages, but they might work.
And ftp.us.debian.org works for me when I try it in Firefox.
-
A volume control would be cool.
The background music is a little bit loud, but it works good :D
I hope u release a (playlist) menu for it soon :P
-
There actually is a volume control - ogg_volume or something like that (forgot to note this in the readme).
-
Oh nice :D