| 171 | } |
| 172 | |
| 173 | SIDsound::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 | |
| 191 | void SIDsound::reset(void) |
| 192 | { |