diff options
Diffstat (limited to 'sound/decoders/raw.cpp')
-rw-r--r-- | sound/decoders/raw.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/sound/decoders/raw.cpp b/sound/decoders/raw.cpp index 18abfdcb35..df3d178c7e 100644 --- a/sound/decoders/raw.cpp +++ b/sound/decoders/raw.cpp @@ -339,37 +339,6 @@ SeekableAudioStream *makeRawMemoryStream(const byte *ptr, uint32 len, } } - -AudioStream *makeRawMemoryStream_OLD(const byte *ptr, uint32 len, - int rate, byte flags, - uint loopStart, uint loopEnd, - DisposeAfterUse::Flag autoFree - ) { - SeekableAudioStream *s = makeRawMemoryStream(ptr, len, rate, flags, autoFree); - - if (loopStart != loopEnd) { - const bool isStereo = (flags & Audio::FLAG_STEREO) != 0; - const bool is16Bit = (flags & Audio::FLAG_16BITS) != 0; - - if (loopEnd == 0) - loopEnd = len; - assert(loopStart <= loopEnd); - assert(loopEnd <= len); - - // Verify the buffer sizes are sane - if (is16Bit && isStereo) - assert((loopStart & 3) == 0 && (loopEnd & 3) == 0); - else if (is16Bit || isStereo) - assert((loopStart & 1) == 0 && (loopEnd & 1) == 0); - - const uint32 extRate = s->getRate() * (is16Bit ? 2 : 1) * (isStereo ? 2 : 1); - - return new SubLoopingAudioStream(s, 0, Timestamp(0, loopStart, extRate), Timestamp(0, loopEnd, extRate)); - } else { - return s; - } -} - #define MAKE_LINEAR_DISK(STEREO, UNSIGNED) \ if (is16Bit) { \ if (isLE) \ |