xoreos  0.0.5
Classes | Namespaces | Functions | Variables
mp3.cpp File Reference

Decoding MP3 (MPEG-1 Audio Layer 3). More...

#include <cassert>
#include <cstring>
#include <mad.h>
#include "src/common/scopedptr.h"
#include "src/common/disposableptr.h"
#include "src/common/util.h"
#include "src/common/readstream.h"
#include "src/sound/audiostream.h"
#include "src/sound/decoders/mp3.h"
Include dependency graph for mp3.cpp:

Go to the source code of this file.

Classes

class  Sound::MP3Stream
 

Namespaces

 Sound
 

Functions

static int Sound::scale_sample (mad_fixed_t sample)
 
RewindableAudioStream * Sound::makeMP3Stream (Common::SeekableReadStream *stream, bool disposeAfterUse)
 Create a new SeekableAudioStream from the MP3 data in the given stream. More...
 

Variables

static const mad_timer_t Sound::timer_zero = {0, 0}
 

Detailed Description

Decoding MP3 (MPEG-1 Audio Layer 3).

Definition in file mp3.cpp.