| 152 | } |
| 153 | |
| 154 | void SIDsound::setFrequency(unsigned int sid_frequency) |
| 155 | { |
| 156 | switch (sid_frequency) { |
| 157 | case 0: |
| 158 | sidBaseFreq = TED_SOUND_CLOCK * 4; // 312 * 114 * 50 / 2; |
| 159 | break; |
| 160 | default: |
| 161 | sidBaseFreq = SOUND_FREQ_PAL_C64; |
| 162 | break; |
| 163 | } |
| 164 | calcEnvelopeTable(); |
| 165 | } |
| 166 | |
| 167 | void SIDsound::setSampleRate(unsigned int sampleRate_) |
| 168 | { |