gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/examples/sms/wav_sample/src/sample_player.h
1 #ifndef SAMPLE_PLAYER_H_INCLUDE
2 #define SAMPLE_PLAYER_H_INCLUDE
3
4 #include <gbdk/platform.h>
5 #include <stdint.h>
6
7 #define SFX_CH_1 (1 << (PSG_CH0 >> 5))
8 #define SFX_CH_2 (1 << (PSG_CH1 >> 5))
9 #define SFX_CH_3 (1 << (PSG_CH2 >> 5))
10 #define SFX_CH_4 (1 << (PSG_CH3 >> 5))
11
12 void play_sample(uint8_t * sample, uint16_t size);
13 void cut_sample(uint8_t mask);
14
15 #endif
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.