GBA Audio: Remove sample rate adjustment code

This commit is contained in:
Jeffrey Pfau 2014-12-31 01:00:18 -08:00
parent d83b00e4fa
commit c9b8254971
1 changed files with 0 additions and 7 deletions

View File

@ -452,13 +452,6 @@ void GBAAudioWriteSOUNDCNT_X(struct GBAAudio* audio, uint16_t value) {
void GBAAudioWriteSOUNDBIAS(struct GBAAudio* audio, uint16_t value) {
audio->soundbias = value;
#if RESAMPLE_LIBRARY == RESAMPLE_BLIP_BUF
unsigned newSampleRate = 0x8000 << GBARegisterSOUNDBIASGetResolution(audio->soundbias);
if (audio->sampleRate != newSampleRate) {
audio->sampleRate = newSampleRate;
audio->sampleInterval = GBA_ARM7TDMI_FREQUENCY / audio->sampleRate;
}
#endif
}
void GBAAudioWriteWaveRAM(struct GBAAudio* audio, int address, uint32_t value) {