Forum

Darkplaces engine supports .flac audio format?

Discuss anything not covered by any of the other categories.

Moderator: InsideQC Admins

Darkplaces engine supports .flac audio format?

Postby TiR » Tue May 03, 2011 7:55 pm

Hi there!

Does the darkplaces engine support .flac audio format?

I have some wav that use too much disk space and I'll like to convert then in .flac

Sorry for my low skilled English.

Thanks!
User avatar
TiR
 
Posts: 5
Joined: Tue May 03, 2011 7:38 pm
Location: Earth

Postby Spirit » Wed May 04, 2011 5:00 am

I don't think it does. It supports Ogg Vorbis though. Ogg Vorbis with a quality of 5 is transparent to most people. You could save even more space by using it.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm

Postby TiR » Wed May 04, 2011 8:09 am

Spirit wrote:I don't think it does. It supports Ogg Vorbis though. Ogg Vorbis with a quality of 5 is transparent to most people. You could save even more space by using it.


But .ogg vorbis is more slow to load in comparison of .wav or .flac true? Or I'm wrong?
User avatar
TiR
 
Posts: 5
Joined: Tue May 03, 2011 7:38 pm
Location: Earth

Postby mh » Wed May 04, 2011 10:18 am

Everything's slow in comparison to wav as everything else needs some kind of decompression. Well aside from .snd, .raw and a few others, but in general, if a format needs decompression then the decompression step is going to make it slower than a format that doesn't require decompression. This includes flac as flac is aclso compressed (it's just lossless compression); a flac file will open maybe 20 times slower than a wav in a wave editor.

None of this should matter if DP supports streaming audio, as only the frames from the audio file that are actually currently needed should be decompressed.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby TiR » Wed May 04, 2011 11:35 am

mh wrote:Everything's slow in comparison to wav as everything else needs some kind of decompression. Well aside from .snd, .raw and a few others, but in general, if a format needs decompression then the decompression step is going to make it slower than a format that doesn't require decompression. This includes flac as flac is aclso compressed (it's just lossless compression); a flac file will open maybe 20 times slower than a wav in a wave editor.

None of this should matter if DP supports streaming audio, as only the frames from the audio file that are actually currently needed should be decompressed.


Interesting

Then I'll use .OGG format instead .FLAC or .WAV

DarkPlaces doesn't support streaming audio right? Is this hard to implement?
User avatar
TiR
 
Posts: 5
Joined: Tue May 03, 2011 7:38 pm
Location: Earth

Postby leileilol » Wed May 04, 2011 11:57 am

OGG is streamed, they did that years ago so yes it does.


At one point, a whole unstreamed OGG was decoded and loaded into memory and took tons of ram. This point was 2004.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby TiR » Wed May 04, 2011 12:14 pm

leileilol wrote:OGG is streamed, they did that years ago so yes it does.


At one point, a whole unstreamed OGG was decoded and loaded into memory and took tons of ram. This point was 2004.


Good to hear that

Which program is the best to convert wav and mp3 files to ogg? I have goldwave but I don't know if that program will work.

Thanks again for your help!
User avatar
TiR
 
Posts: 5
Joined: Tue May 03, 2011 7:38 pm
Location: Earth

Postby mh » Wed May 04, 2011 1:13 pm

GoldWave is hands down my favourite audio editor, and is fully capable of saving as .ogg format.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby leileilol » Wed May 04, 2011 1:38 pm

oggenc is what you should use to make ogg files

I still use Cool Edit 96 to edit sounds (for over 17 years of using it since 1.31), it's what id used for Quake. There's even an ogg codec filter for it. Despite its age, it still works dandy and all in Windows 7 64. There are just some tools that seem immortal :D
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby revelator » Wed May 04, 2011 6:12 pm

yip those old gems show how good coding is truely done :) still use a few dinosaur age programs myself mainly because nothing better exist ;)
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Postby mh » Wed May 04, 2011 6:48 pm

Yup, good software is good software and age doesn't matter. ;)
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby frag.machine » Thu May 05, 2011 1:44 am

Heh I am still using PSP 3.12 in Windows 7 (!!!!).
GoldWave is just great to audio editing, but IIRC you will need to install Ogg/Vorbis codecs separately if you want to save/load such formats. No big deal, but I think it's worth to mention.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby mh » Thu May 05, 2011 9:02 am

PSP 5 here. :)
Some of the extra functionality in more recent versions would be nice to have (I've had a need for scripting on occasion) but sometimes all you want to do is open an image really fast.

I think more recent versions of GW don't need a codec for ogg support; pretty sure the necessary comes with the download.
Last edited by mh on Thu May 05, 2011 10:09 am, edited 1 time in total.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby behind_you » Thu May 05, 2011 9:25 am

mh wrote:I think more recent versions of GW don't need a codec for ogg support; pretty sure the necessary comes with the download.


yes, the recent goldwave comes with the ogg codec. if anyone is missing codecs, google search k-lite codec pack nd download that. its a less tedious process than downloading and installing separate codecs.
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby TiR » Thu May 05, 2011 10:37 am

Seeing that goldwave is good I'll continue to use it.
User avatar
TiR
 
Posts: 5
Joined: Tue May 03, 2011 7:38 pm
Location: Earth


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest