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
5
#define MP3_MAX_SAMPLES_PER_FRAME (1152*2)
6
7
typedef
struct
_mp3_info
{
8
int
sample_rate
;
9
int
channels
;
10
int
audio_bytes
;
// generated amount of audio per frame
11
}
mp3_info_t
;
12
13
typedef
void
*
mp3_decoder_t
;
14
15
extern
mp3_decoder_t
mp3_create
(
void
);
16
extern
int
mp3_decode
(
mp3_decoder_t
dec,
void
*buf,
int
bytes,
signed
short
*out,
mp3_info_t
*info);
17
extern
void
mp3_done
(
mp3_decoder_t
*dec);
18
#define mp3_free(dec) do { mp3_done(dec); dec = NULL; } while(0)
19
20
21
#endif
//__MINIMP3_H_INCLUDED__
mp3_decoder_t
void * mp3_decoder_t
Definition
minimp3.h:13
mp3_done
void mp3_done(mp3_decoder_t *dec)
Definition
minimp3.cpp:2678
mp3_create
mp3_decoder_t mp3_create(void)
Definition
minimp3.cpp:2672
mp3_decode
int mp3_decode(mp3_decoder_t dec, void *buf, int bytes, signed short *out, mp3_info_t *info)
Definition
minimp3.cpp:2682
mp3_info_t
struct _mp3_info mp3_info_t
_mp3_info
Definition
minimp3.h:7
_mp3_info::audio_bytes
int audio_bytes
Definition
minimp3.h:10
_mp3_info::sample_rate
int sample_rate
Definition
minimp3.h:8
_mp3_info::channels
int channels
Definition
minimp3.h:9
Generated by
1.9.8