| 175 | } |
| 176 | |
| 177 | void enableChannel(uint8 channel) { |
| 178 | assert(channel < NUM_VOICES); |
| 179 | Channel &ch = _voice[channel]; |
| 180 | ch.data = ch.dataRepeat; |
| 181 | ch.length = ch.lengthRepeat; |
| 182 | // actually first 2 uint8s are dropped? |
| 183 | ch.offset = Offset(0); |
| 184 | // ch.period = ch.periodRepeat; |
| 185 | } |
| 186 | |
| 187 | void setChannelInterrupt(uint8 channel, bool enable) { |
| 188 | assert(channel < NUM_VOICES); |