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

adpcm.cpp File Reference

#include "common/stream.h"
#include "common/textconsole.h"
#include "common/util.h"
#include "audio/decoders/adpcm.h"
#include "audio/decoders/adpcm_intern.h"
Include dependency graph for adpcm.cpp:

Go to the source code of this file.

Classes

class  Audio::PacketizedADPCMStream

Namespaces

namespace  Audio
 

Internal interfaces to the ADPCM decoders.


Defines

#define DK3_READ_NIBBLE(channelNo)

Functions

SeekableAudioStream * Audio::makeADPCMStream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse, uint32 size, ADPCMType type, int rate, int channels, uint32 blockAlign=0)
 Takes an input stream containing ADPCM compressed sound data and creates an RewindableAudioStream from that.
PacketizedAudioStream * Audio::makePacketizedADPCMStream (ADPCMType type, int rate, int channels, uint32 blockAlign=0)
 Creates a PacketizedAudioStream that will automatically queue packets as individual AudioStreams like returned by makeADPCMStream.

Variables

static const int16 Audio::okiStepSize [49]
static const int Audio::MSADPCMAdaptCoeff1 []
static const int Audio::MSADPCMAdaptCoeff2 []
static const int Audio::MSADPCMAdaptationTable []

Define Documentation

#define DK3_READ_NIBBLE (   channelNo  ) 
Value:
do { \
    if (_topNibble) { \
        _nibble = _lastByte >> 4; \
        _topNibble = false; \
    } else { \
        _lastByte = _stream->readByte(); \
        _nibble = _lastByte & 0xf; \
        _topNibble = true; \
        --blockBytesLeft; \
        --audioBytesLeft; \
    } \
    decodeIMA(_nibble, channelNo); \
} while(0)

Definition at line 337 of file adpcm.cpp.



Generated on Sat Feb 16 2019 05:01:20 for ResidualVM by doxygen 1.7.1
curved edge   curved edge