| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#include <smooth.h> |
| 14 |
|
| 15 |
#include <bonk/bonk.h> |
| 16 |
|
| 17 |
using namespace smooth; |
| 18 |
using namespace smooth::System; |
| 19 |
|
| 20 |
extern DynamicLoader *bonkdll; |
| 21 |
|
| 22 |
Bool LoadBonkDLL(); |
| 23 |
Void FreeBonkDLL(); |
| 24 |
|
| 25 |
typedef void * (BONKCONV *BONKDECODERCREATE) (); |
| 26 |
typedef bool (BONKCONV *BONKDECODERINIT) (void *, unsigned char *, int, unsigned int *, unsigned int *, int *); |
| 27 |
typedef int (BONKCONV *BONKDECODERDECODEPACKET) (void *, unsigned char *, int, signed short *, int); |
| 28 |
typedef int (BONKCONV *BONKDECODERFINISH) (void *); |
| 29 |
typedef bool (BONKCONV *BONKDECODERCLOSE) (void *); |
| 30 |
typedef bool (BONKCONV *BONKDECODERGETSTREAMINFO) (void *, bool *, bool *); |
| 31 |
typedef bool (BONKCONV *BONKDECODERGETID3DATA) (void *, unsigned char **, int *); |
| 32 |
typedef bool (BONKCONV *BONKDECODERINITSEEKTABLE) (void *, unsigned char *, int); |
| 33 |
typedef bool (BONKCONV *BONKDECODERSEEKTO) (void *, int); |
| 34 |
typedef const char * (BONKCONV *BONKGETVERSIONSTRING) (); |
| 35 |
|
| 36 |
extern BONKDECODERCREATE ex_bonk_decoder_create; |
| 37 |
extern BONKDECODERINIT ex_bonk_decoder_init; |
| 38 |
extern BONKDECODERDECODEPACKET ex_bonk_decoder_decode_packet; |
| 39 |
extern BONKDECODERFINISH ex_bonk_decoder_finish; |
| 40 |
extern BONKDECODERCLOSE ex_bonk_decoder_close; |
| 41 |
extern BONKDECODERGETSTREAMINFO ex_bonk_decoder_get_stream_info; |
| 42 |
extern BONKDECODERGETID3DATA ex_bonk_decoder_get_id3_data; |
| 43 |
extern BONKDECODERINITSEEKTABLE ex_bonk_decoder_init_seektable; |
| 44 |
extern BONKDECODERSEEKTO ex_bonk_decoder_seek_to; |
| 45 |
extern BONKGETVERSIONSTRING ex_bonk_get_version_string; |