| 70 | } |
| 71 | |
| 72 | void Paula::clearVoice(uint8 voice) { |
| 73 | assert(voice < NUM_VOICES); |
| 74 | |
| 75 | _voice[voice].data = nullptr; |
| 76 | _voice[voice].dataRepeat = nullptr; |
| 77 | _voice[voice].length = 0; |
| 78 | _voice[voice].lengthRepeat = 0; |
| 79 | _voice[voice].period = 0; |
| 80 | _voice[voice].volume = 0; |
| 81 | _voice[voice].offset = Offset(0); |
| 82 | _voice[voice].dmaCount = 0; |
| 83 | _voice[voice].interrupt = false; |
| 84 | } |
| 85 | |
| 86 | int Paula::readBuffer(int16 *buffer, const int numSamples) { |
| 87 |