diff options
author | Johannes Schickel | 2010-01-07 16:18:03 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-01-07 16:18:03 +0000 |
commit | ca5e1379452f7777fd032baeb342ce88634d1836 (patch) | |
tree | f1433d6d557362f0dd2a79563f93b0ae35983fc4 /sound/vorbis.cpp | |
parent | 2e9bae44c5f80fe18aa0545b6c868682c380497c (diff) | |
download | scummvm-rg350-ca5e1379452f7777fd032baeb342ce88634d1836.tar.gz scummvm-rg350-ca5e1379452f7777fd032baeb342ce88634d1836.tar.bz2 scummvm-rg350-ca5e1379452f7777fd032baeb342ce88634d1836.zip |
Create a wrapper makeLoopingAudioStream to reduce code duplcation.
svn-id: r47128
Diffstat (limited to 'sound/vorbis.cpp')
-rw-r--r-- | sound/vorbis.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/vorbis.cpp b/sound/vorbis.cpp index 55c676cfed..54d9042cf8 100644 --- a/sound/vorbis.cpp +++ b/sound/vorbis.cpp @@ -260,10 +260,7 @@ AudioStream *makeVorbisStream( assert(input); } - if (numLoops) - return new LoopingAudioStream(input, numLoops); - else - return input; + return makeLoopingAudioStream(input, numLoops); } SeekableAudioStream *makeVorbisStream( |