all repos — mgba @ c9b825497102cc80cb5906acf3c795c2d921ff69

mGBA Game Boy Advance Emulator

GBA Audio: Remove sample rate adjustment code
Jeffrey Pfau jeffrey@endrift.com
Wed, 31 Dec 2014 01:00:18 -0800
commit

c9b825497102cc80cb5906acf3c795c2d921ff69

parent

d83b00e4fab151c588f10fad678548c1b26914d3

1 files changed, 0 insertions(+), 7 deletions(-)

jump to
M src/gba/gba-audio.csrc/gba/gba-audio.c

@@ -452,13 +452,6 @@ }

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) {