Mercurial > hg > dmlib
comparison minijss/jssmix.h @ 2586:9807ae37ad69
Require stdbool.h, we require C11 now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Dec 2022 15:59:22 +0200 |
parents | d6b9410f1b1b |
children |
comparison
equal
deleted
inserted
replaced
2585:ef6c826c5b7a | 2586:9807ae37ad69 |
---|---|
44 | 44 |
45 int chFreq; // Frequency of sample in Hz | 45 int chFreq; // Frequency of sample in Hz |
46 | 46 |
47 void *chData; // Pointer to data | 47 void *chData; // Pointer to data |
48 | 48 |
49 BOOL chPlaying, // TRUE = playing | 49 bool chPlaying, // true = playing |
50 chMute, // TRUE = muted | 50 chMute, // true = muted |
51 chDirection; // TRUE = playing forwards, FALSE = backwards | 51 chDirection; // true = playing forwards, false = backwards |
52 | 52 |
53 int chFlags; // Flags | 53 int chFlags; // Flags |
54 | 54 |
55 JMIXER_ADDBUF_TYPE chPrevR[5], chPrevL[5]; | 55 JMIXER_ADDBUF_TYPE chPrevR[5], chPrevL[5]; |
56 } JSSChannel; | 56 } JSSChannel; |
152 | 152 |
153 void jvmSetPan(JSSMixer *mixer, const int channel, const int panning); | 153 void jvmSetPan(JSSMixer *mixer, const int channel, const int panning); |
154 void jvmSetPanRamp(JSSMixer * mixer, const int channel, const int start, const int end, const int len); | 154 void jvmSetPanRamp(JSSMixer * mixer, const int channel, const int start, const int end, const int len); |
155 int jvmGetPan(JSSMixer *mixer, const int channel); | 155 int jvmGetPan(JSSMixer *mixer, const int channel); |
156 | 156 |
157 void jvmMute(JSSMixer *mixer, const int channel, const BOOL mute); | 157 void jvmMute(JSSMixer *mixer, const int channel, const bool mute); |
158 BOOL jvmGetMute(JSSMixer *mixer, const int channel); | 158 bool jvmGetMute(JSSMixer *mixer, const int channel); |
159 | 159 |
160 void jvmClear(JSSMixer *mixer, const int channel); | 160 void jvmClear(JSSMixer *mixer, const int channel); |
161 void jvmClearChannels(JSSMixer *mixer); | 161 void jvmClearChannels(JSSMixer *mixer); |
162 | 162 |
163 void jvmSetGlobalVol(JSSMixer *mixer, const int volume); | 163 void jvmSetGlobalVol(JSSMixer *mixer, const int volume); |