Skip to content

Commit

Permalink
AUDIO: makeAIFFStream seek to start of dataStream
Browse files Browse the repository at this point in the history
fixes non working audio when playing a File(Stream)
  • Loading branch information
Martin Kiewitz committed Jun 6, 2015
1 parent b6fdc7b commit 10741d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions audio/decoders/aiff.cpp
Expand Up @@ -187,6 +187,9 @@ RewindableAudioStream *makeAIFFStream(Common::SeekableReadStream *stream, Dispos
return 0;
}

// Seek to the start of dataStream, required for at least FileStream
dataStream->seek(0);

switch (codec) {
case kCodecPCM:
case MKTAG('t', 'w', 'o', 's'):
Expand Down

0 comments on commit 10741d5

Please sign in to comment.