MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / clearVoice

Method clearVoice

Source/Amiga/paula.cpp:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void 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
86int Paula::readBuffer(int16 *buffer, const int numSamples) {
87

Callers

nothing calls this directly

Calls 1

OffsetClass · 0.85

Tested by

no test coverage detected