aboutsummaryrefslogtreecommitdiff
path: root/audio/decoders/xa.h
diff options
context:
space:
mode:
authorMatthew Hoops2011-08-24 09:52:41 -0400
committerMatthew Hoops2011-08-24 09:54:19 -0400
commit4e849092d23689f7a82f834e51279401b4349893 (patch)
treeb46e5f751ec915ff55776300304308b4ea331c0c /audio/decoders/xa.h
parent40fd9ce27c8579f97e8ca5c0917366b1a069c5e9 (diff)
downloadscummvm-rg350-4e849092d23689f7a82f834e51279401b4349893.tar.gz
scummvm-rg350-4e849092d23689f7a82f834e51279401b4349893.tar.bz2
scummvm-rg350-4e849092d23689f7a82f834e51279401b4349893.zip
AUDIO: Add a DisposeAfterUse parameter to makeXAStream
Diffstat (limited to 'audio/decoders/xa.h')
-rw-r--r--audio/decoders/xa.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/decoders/xa.h b/audio/decoders/xa.h
index 68c07151da..cf28d8001a 100644
--- a/audio/decoders/xa.h
+++ b/audio/decoders/xa.h
@@ -31,6 +31,8 @@
#ifndef AUDIO_DECODERS_XA_H
#define AUDIO_DECODERS_XA_H
+#include "common/types.h"
+
namespace Common {
class SeekableReadStream;
}
@@ -45,11 +47,13 @@ class RewindableAudioStream;
*
* @param stream the SeekableReadStream from which to read the XA ADPCM data
* @param rate the sampling rate
+ * @param disposeAfterUse whether to delete the stream after use.
* @return a new RewindableAudioStream, or NULL, if an error occurred
*/
RewindableAudioStream *makeXAStream(
Common::SeekableReadStream *stream,
- int rate);
+ int rate,
+ DisposeAfterUse::Flag disposeAfterUse = DisposeAfterUse::YES);
} // End of namespace Audio