| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#include <smooth.h> |
| 14 |
#include <mad.h> |
| 15 |
|
| 16 |
using namespace smooth; |
| 17 |
using namespace smooth::System; |
| 18 |
|
| 19 |
extern DynamicLoader *maddll; |
| 20 |
|
| 21 |
Bool LoadMADDLL(); |
| 22 |
Void FreeMADDLL(); |
| 23 |
|
| 24 |
typedef void (*MAD_DECODER_INIT) (mad_decoder *, void *, mad_flow (*)(void *, mad_stream *), mad_flow(*)(void *, mad_header const *), mad_flow(*)(void *, mad_stream const *, mad_frame *), mad_flow(*)(void *, mad_header const *, mad_pcm *), mad_flow(*)(void *, mad_stream *, mad_frame *), mad_flow(*)(void *, void *, unsigned int *)); |
| 25 |
typedef int (*MAD_DECODER_RUN) (mad_decoder *, mad_decoder_mode); |
| 26 |
typedef int (*MAD_DECODER_FINISH) (mad_decoder *); |
| 27 |
typedef void (*MAD_STREAM_BUFFER) (mad_stream *, unsigned char const *, unsigned long); |
| 28 |
|
| 29 |
extern MAD_DECODER_INIT ex_mad_decoder_init; |
| 30 |
extern MAD_DECODER_RUN ex_mad_decoder_run; |
| 31 |
extern MAD_DECODER_FINISH ex_mad_decoder_finish; |
| 32 |
extern MAD_STREAM_BUFFER ex_mad_stream_buffer; |
| 33 |
|