| 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 *BONKENCODERCREATE) (); |
| 26 |
typedef bool (BONKCONV *BONKENCODERINIT) (void *, unsigned int, unsigned int, int, bool, bool, int, int, int, double); |
| 27 |
typedef int (BONKCONV *BONKENCODERENCODEPACKET) (void *, signed short *, int, unsigned char *, int); |
| 28 |
typedef int (BONKCONV *BONKENCODERFINISH) (void *, unsigned char *, int); |
| 29 |
typedef bool (BONKCONV *BONKENCODERCLOSE) (void *); |
| 30 |
typedef int (BONKCONV *BONKENCODERGETSAMPLECOUNT) (void *); |
| 31 |
typedef int (BONKCONV *BONKENCODERGETSAMPLECOUNTOFFSET) (void *); |
| 32 |
typedef bool (BONKCONV *BONKENCODERSETID3DATA) (void *, unsigned char *, int); |
| 33 |
typedef const char * (BONKCONV *BONKGETVERSIONSTRING) (); |
| 34 |
|
| 35 |
extern BONKENCODERCREATE ex_bonk_encoder_create; |
| 36 |
extern BONKENCODERINIT ex_bonk_encoder_init; |
| 37 |
extern BONKENCODERENCODEPACKET ex_bonk_encoder_encode_packet; |
| 38 |
extern BONKENCODERFINISH ex_bonk_encoder_finish; |
| 39 |
extern BONKENCODERCLOSE ex_bonk_encoder_close; |
| 40 |
extern BONKENCODERGETSAMPLECOUNT ex_bonk_encoder_get_sample_count; |
| 41 |
extern BONKENCODERGETSAMPLECOUNTOFFSET ex_bonk_encoder_get_sample_count_offset; |
| 42 |
extern BONKENCODERSETID3DATA ex_bonk_encoder_set_id3_data; |
| 43 |
extern BONKGETVERSIONSTRING ex_bonk_get_version_string; |