MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / SIDsound

Method SIDsound

extlibs/soloud/src/audiosource/tedsid/sid.cpp:173–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173SIDsound::SIDsound(unsigned int model, unsigned int chnlDisableMask) : enableDigiBlaster(false)
174{
175 unsigned int i;
176 masterVolume = 0;
177
178 // Link voices together
179 for (i=0; i<3; i++) {
180 voice[i].modulatedBy = &voice[(i+2)%3]; // previous voice
181 voice[i].modulatesThis = &voice[(i+1)%3]; // next voice
182 voice[i].disabled = !!((chnlDisableMask >> i) & 1);
183 }
184
185 filterCutoff = 0;
186 setModel(model);
187 setFrequency(0);
188 reset();
189}
190
191void SIDsound::reset(void)
192{

Callers

nothing calls this directly

Calls 1

resetFunction · 0.85

Tested by

no test coverage detected