]> Shamusworld >> Repos - virtualjaguar/blob - src/include/pcm.h
a98a1da4f7ff13cbd21907bcfe6384785927f796
[virtualjaguar] / src / include / pcm.h
1 #ifndef __PCM_H__
2 #define __PCM_H__
3
4 #include "jaguar.h"
5
6 void pcm_init(void);
7 void pcm_reset(void);
8 void pcm_done(void);
9
10 void pcm_update(void);
11 void pcm_byte_write(uint32 offset, uint8 data);
12 void pcm_word_write(uint32 offset, uint16 data);
13 uint8 pcm_byte_read(uint32 offset);
14 uint16 pcm_word_read(uint32 offset);
15 void pcm_updateOne(int channel, int16 * data, uint32 length);
16 void pcm_set_sample_rate(int rate);
17
18 #endif