From 1b459ee95976c36a4b4c46f32c8190377a1609f0 Mon Sep 17 00:00:00 2001 From: Won Star Date: Mon, 13 Feb 2006 13:46:38 +0000 Subject: Whew. It seems that I made a mistake last time. :( Fix sound timer frequency for the GP32 port. svn-id: r20668 --- backends/gp32/gp32std_sound.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backends') diff --git a/backends/gp32/gp32std_sound.cpp b/backends/gp32/gp32std_sound.cpp index eda74e4d75..a843f732e2 100644 --- a/backends/gp32/gp32std_sound.cpp +++ b/backends/gp32/gp32std_sound.cpp @@ -153,7 +153,8 @@ int gp_soundBufStart(GPSOUNDBUF *sb) { tmpBuf[i] = 0x8000; // Frequency of the timer interrupt which polls the playing position - soundBuf.pollfreq = 4 * (2 * soundBuf.freq) / soundBuf.samples; + //soundBuf.pollfreq = 4 * (2 * soundBuf.freq) / soundBuf.samples; + soundBuf.pollfreq = (2 * soundBuf.freq) / soundBuf.samples; // Set timer interrupt if (GpTimerOptSet(GP32_TIMER_AUDIO_IDX, soundBuf.pollfreq, 0, soundTimer) == GPOS_ERR_ALREADY_USED) { -- cgit v1.2.3