Refactored sound code - slight speedup.
This commit is contained in:
parent
0b6be244ac
commit
3a57341837
33 changed files with 706 additions and 535 deletions
|
|
@ -1,4 +1,6 @@
|
|||
void sound_add_handler(void (*poll)(void *p), void (*get_buffer)(int16_t *buffer, int len, void *p), void *p);
|
||||
#include "timer.h"
|
||||
|
||||
void sound_add_handler(void (*get_buffer)(int16_t *buffer, int len, void *p), void *p);
|
||||
|
||||
extern int sbtype;
|
||||
|
||||
|
|
@ -13,3 +15,6 @@ void sound_set_cd_volume(unsigned int vol_l, unsigned int vol_r);
|
|||
|
||||
#define CD_FREQ 44100
|
||||
#define CD_BUFLEN (CD_FREQ / 10)
|
||||
|
||||
extern int sound_pos_global;
|
||||
void sound_speed_changed();
|
||||
|
|
|
|||
Loading…
Reference in a new issue