diff options
author | Martin Kiewitz | 2015-06-07 00:30:15 +0200 |
---|---|---|
committer | Martin Kiewitz | 2015-06-07 00:30:15 +0200 |
commit | 10741d5bd68f556f5314a80c8d959767e76b4f8a (patch) | |
tree | a7b704e8f26884efbccd30052474cce944197074 /audio/decoders | |
parent | b6fdc7be888034eb67e7b667a8d362105067a7ca (diff) | |
download | scummvm-rg350-10741d5bd68f556f5314a80c8d959767e76b4f8a.tar.gz scummvm-rg350-10741d5bd68f556f5314a80c8d959767e76b4f8a.tar.bz2 scummvm-rg350-10741d5bd68f556f5314a80c8d959767e76b4f8a.zip |
AUDIO: makeAIFFStream seek to start of dataStream
fixes non working audio when playing a File(Stream)
Diffstat (limited to 'audio/decoders')
-rw-r--r-- | audio/decoders/aiff.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/decoders/aiff.cpp b/audio/decoders/aiff.cpp index 7d6ed43575..72baf84582 100644 --- a/audio/decoders/aiff.cpp +++ b/audio/decoders/aiff.cpp @@ -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'): |