[Scummvm-devel] Recent Audio API changes

Johannes Schickel lordhoto at scummvm.org
Wed Jan 13 23:06:34 CET 2010


Torbjörn Andersson wrote:
> Usually, only one song plays at a time, but when the music changes it's
> cross-faded. I have a vague recollection that at the time I was worried
> about having several open file handles to the same file because someone
> said it could cause trouble on some platforms. If that's the case, can
> two streams that read from the same file share the same file handle?

I don't think so. The AudioStream implementation do not reset the file 
position or the like after reading data, thus it shouldn't be possible 
to create two streams operating on the same file handle.

// Johannes





More information about the Scummvm-devel mailing list