XenevaOS
Loading...
Searching...
No Matches
XenevaOS
Process
AudioPlayer
minimp3.h
Go to the documentation of this file.
1
#ifndef __MINIMP3_H_INCLUDED__
2
#define __MINIMP3_H_INCLUDED__
3
4
#define MP3_MAX_SAMPLES_PER_FRAME (1152 * 2)
5
6
typedef
struct
_mp3_info
{
7
int
sample_rate
;
8
int
channels
;
9
int
audio_bytes
;
// generated amount of audio per frame
10
}
mp3_info_t
;
11
12
typedef
void
*
mp3_decoder_t
;
13
14
extern
mp3_decoder_t
mp3_create
(
void
);
15
extern
int
mp3_decode
(
mp3_decoder_t
dec,
void
* buf,
int
bytes,
signed
short
* out,
mp3_info_t
* info);
16
extern
void
mp3_done
(
mp3_decoder_t
* dec);
17
#define mp3_free(dec) \
18
do { \
19
mp3_done(dec); \
20
dec = NULL; \
21
} while (0)
22
23
#endif
//__MINIMP3_H_INCLUDED__
mp3_decoder_t
void * mp3_decoder_t
Definition
minimp3.h:12
mp3_done
void mp3_done(mp3_decoder_t *dec)
Definition
minimp3.cpp:2730
mp3_create
mp3_decoder_t mp3_create(void)
Definition
minimp3.cpp:2723
mp3_decode
int mp3_decode(mp3_decoder_t dec, void *buf, int bytes, signed short *out, mp3_info_t *info)
Definition
minimp3.cpp:2735
mp3_info_t
struct _mp3_info mp3_info_t
_mp3_info
Definition
minimp3.h:6
_mp3_info::audio_bytes
int audio_bytes
Definition
minimp3.h:9
_mp3_info::sample_rate
int sample_rate
Definition
minimp3.h:7
_mp3_info::channels
int channels
Definition
minimp3.h:8
Generated by
1.9.8