2
decoder interface for the splay mp3 decoder.
3
Copyright (C) 2001 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
16
#ifndef __SPLAYDECODER_H
17
#define __SPLAYDECODER_H
19
// state definitions for splay decoder
21
#define _SPLAY_RESET 0
23
#define _SPLAY_FIRSTINIT 2
24
#define _SPLAY_REINIT 3
25
#define _SPLAY_DECODE 4
26
#define _SPLAY_FRAME 5
29
#include "../frame/audioFrame.h"
34
class MpegAudioStream;
35
class MpegAudioHeader;
39
The decoder interface.
40
The decoder expects an mpeg audio frame.
41
The call to decode is "atomic", after that you have
50
MpegAudioStream* stream;
51
MpegAudioHeader* header;
65
int decode(unsigned char* ptr, int len,AudioFrame* dest);
66
void config(const char* key,const char* val,void* ret);