<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<div>> 1. what is the best known codec and its settings for audio with the parameters above? I'm not sure whether MP3 or OGG is better in this range, what's the desired bit-rate, and which one format is generally preferred (considering the cpu needed to decode it).</div><div><br></div><div id="">OGG perhaps, mostly because of its more "free" licencing. But perhaps it would be better if your compression program handled all 3 compressions (MP3/OGG/FLAC) - it shouldn't be too hard, as we already have examples of such tools for other engines.</div>
<div><br></div><div>> 2. is there a nice library in ScummVM implementing reading an archive of compressed sound files? ideally this library would be general enough so that one can store anything in it in any format, and the game engine doesn't need to bother about it. in that case it would be easy in the future to recode the files to a higher bit-rate or change the codec without recompilation of the game player. the sound archive format used in Dragon History is absolutely idiotic and must not be used for anything but reading the original sound archives for compatibility reasons, and I also don't wanna reinvent the wheel.</div>
<div><br></div><div>>I'd like to modify the game engine such that it would accept whichever dubbing is available.</div><div><br></div><div id="">If you put all the audio in one big file, you will probably have some sort of index with file offsets and file sizes within that big file. Then, you could use a Common::SeekableSubReadStream, which could be used to isolate the substream of the audio file you need, and then Audio::makeMP3Stream(), Audio::makeVorbisStream() and Audio::makeFLACStream() to handle MP3, OGG and FLAC compressed sounds respectively. These can be found in sound/decoders. Again, you could have a look at how other engines do this :)</div><div id=""><br></div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown">Regards</div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown">Filippos</div> <br /><hr />The New Busy is not the old busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3' target='_new'>Get started.</a></body>
</html>