ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

raw.cpp File Reference

#include "common/endian.h"
#include "common/memstream.h"
#include "common/textconsole.h"
#include "common/util.h"
#include "audio/audiostream.h"
#include "audio/decoders/raw.h"
Include dependency graph for raw.cpp:

Go to the source code of this file.

Classes

class  Audio::RawStream< is16Bit, isUnsigned, isLE >
 This is a stream, which allows for playing raw PCM data from a stream. More...
class  Audio::PacketizedRawStream

Namespaces

namespace  Audio
 

Internal interfaces to the ADPCM decoders.


Defines

#define READ_ENDIAN_SAMPLE(is16Bit, isUnsigned, ptr, isLE)   ((is16Bit ? (isLE ? READ_LE_UINT16(ptr) : READ_BE_UINT16(ptr)) : (*ptr << 8)) ^ (isUnsigned ? 0x8000 : 0))
#define MAKE_RAW_STREAM(UNSIGNED)

Functions

SeekableAudioStream * Audio::makeRawStream (Common::SeekableReadStream *stream, int rate, byte flags, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES)
 Creates an audio stream, which plays from the given stream.
SeekableAudioStream * Audio::makeRawStream (const byte *buffer, uint32 size, int rate, byte flags, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES)
 Creates an audio stream, which plays from the given buffer.
PacketizedAudioStream * Audio::makePacketizedRawStream (int rate, byte flags)
 Creates a PacketizedAudioStream that will automatically queue packets as individual AudioStreams like returned by makeRawStream.

Define Documentation

#define MAKE_RAW_STREAM (   UNSIGNED  ) 
Value:
if (is16Bit) { \
            if (isLE) \
                return new RawStream<true, UNSIGNED, true>(rate, isStereo, disposeAfterUse, stream); \
            else  \
                return new RawStream<true, UNSIGNED, false>(rate, isStereo, disposeAfterUse, stream); \
        } else \
            return new RawStream<false, UNSIGNED, false>(rate, isStereo, disposeAfterUse, stream)

Definition at line 192 of file raw.cpp.

#define READ_ENDIAN_SAMPLE (   is16Bit,
  isUnsigned,
  ptr,
  isLE 
)    ((is16Bit ? (isLE ? READ_LE_UINT16(ptr) : READ_BE_UINT16(ptr)) : (*ptr << 8)) ^ (isUnsigned ? 0x8000 : 0))

Definition at line 38 of file raw.cpp.



Generated on Sat Feb 16 2019 05:02:38 for ResidualVM by doxygen 1.7.1
curved edge   curved edge