diff options
author | Matthew Hoops | 2015-08-11 22:33:54 -0400 |
---|---|---|
committer | Matthew Hoops | 2015-08-30 19:53:54 -0400 |
commit | 3aa9e2c5816aad20aa18e04d3a6644a8f79a4e29 (patch) | |
tree | 9e5452066adffd15e60849ff534cb4d048d793d0 /audio/decoders/raw.h | |
parent | a64aff02878eaaeda3a014cbfc71daf760000136 (diff) | |
download | scummvm-rg350-3aa9e2c5816aad20aa18e04d3a6644a8f79a4e29.tar.gz scummvm-rg350-3aa9e2c5816aad20aa18e04d3a6644a8f79a4e29.tar.bz2 scummvm-rg350-3aa9e2c5816aad20aa18e04d3a6644a8f79a4e29.zip |
AUDIO: Add a packetized version of the PCM stream
Diffstat (limited to 'audio/decoders/raw.h')
-rw-r--r-- | audio/decoders/raw.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/audio/decoders/raw.h b/audio/decoders/raw.h index 14e7bd45fd..7ccbcdaded 100644 --- a/audio/decoders/raw.h +++ b/audio/decoders/raw.h @@ -35,6 +35,7 @@ class SeekableReadStream; namespace Audio { +class PacketizedAudioStream; class SeekableAudioStream; /** @@ -89,6 +90,17 @@ SeekableAudioStream *makeRawStream(Common::SeekableReadStream *stream, int rate, byte flags, DisposeAfterUse::Flag disposeAfterUse = DisposeAfterUse::YES); +/** + * Creates a PacketizedAudioStream that will automatically queue + * packets as individual AudioStreams like returned by makeRawStream. + * + * @param rate Rate of the sound data. + * @param flags Audio flags combination. + * @see RawFlags + * @return The new PacketizedAudioStream. + */ +PacketizedAudioStream *makePacketizedRawStream(int rate, byte flags); + } // End of namespace Audio #endif |