[Scummvm-devel] Idea: IndexedMp3AudioStream

Willem Jan Palenstijn wjp at usecode.org
Thu Oct 7 15:29:08 CEST 2010


On Thu, Oct 07, 2010 at 01:37:38PM +0200, Johannes Schickel wrote:
> I take this index file will be written to disk too? I mean else we
> would still suffer from the long delay on every time the MP3 file is
> opened. Now how do you plan to handle filename clashes, like you have
> two games with MP3 files for CDDA setup and then start one and then
> the other, since savepath is the only real save place to write you
> can't just use the mp3 filename and save the index to savepath. Also
> of course all our make*Stream factory functions never take a filename
> but a SeekableReadStream object.

Or maybe just hash the first 4kB (or something) of the mp3 and use that as a
key?

-Willem Jan




More information about the Scummvm-devel mailing list