[Scummvm-devel] CVS: scummvm/sound vorbis.cpp,1.12,1.13

Torbjorn.E.Andersson at tietoenator.com Torbjorn.E.Andersson at tietoenator.com
Mon Mar 22 23:35:04 CET 2004


Max Horn <max at quendi.de> wrote:

> Yeah, that might be sufficient. Provided the OS supports having 
> multiple (read-only) filehandles for the same file. I think *nix allows 
> that, and Windows probably, too. No idea about the others...

I didn't consider that this might be a limitation. Hmm...

You know a lot more than I do about implementing this sort of things. Do
I understand it correctly if I think that adding locking/unlocking would
mean that file accesses from the main thread would remain unchanged, but
that the mixer would need to lock/unlock the file handle it streams sound
from to ensure that it doesn't change in mid-stream?

I take it, then, that just about every function in the File class would
need to wait for the lock to be released before doing anything.

Torbjörn

-- 
TietoEnator Resource Management AB
Persona
Torbjörn Andersson
http://www.rm.tietoenator.com/
 




More information about the Scummvm-devel mailing list