aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorWon Star2006-02-13 13:46:38 +0000
committerWon Star2006-02-13 13:46:38 +0000
commit1b459ee95976c36a4b4c46f32c8190377a1609f0 (patch)
treee59fd3f53064253b561e130600d70722c1c7ad2c /backends
parent6238fa2b297edab0c5a1f55fbdbca0b9e7880289 (diff)
downloadscummvm-rg350-1b459ee95976c36a4b4c46f32c8190377a1609f0.tar.gz
scummvm-rg350-1b459ee95976c36a4b4c46f32c8190377a1609f0.tar.bz2
scummvm-rg350-1b459ee95976c36a4b4c46f32c8190377a1609f0.zip
Whew. It seems that I made a mistake last time. :(
Fix sound timer frequency for the GP32 port. svn-id: r20668
Diffstat (limited to 'backends')
-rw-r--r--backends/gp32/gp32std_sound.cpp3
1 files changed, 2 insertions, 1 deletions
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) {