aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp
diff options
context:
space:
mode:
authorYotam Barnoy2010-06-15 05:34:37 +0000
committerYotam Barnoy2010-06-15 05:34:37 +0000
commit25c7dc08b1ca6816ef3b99bb13819469bd45c710 (patch)
tree2bccb4a92927d541550cd8d33fd23dd6e813f4ed /backends/platform/psp
parenta6a482b83cb8f924f920ac16c8a48a321e89ecc9 (diff)
downloadscummvm-rg350-25c7dc08b1ca6816ef3b99bb13819469bd45c710.tar.gz
scummvm-rg350-25c7dc08b1ca6816ef3b99bb13819469bd45c710.tar.bz2
scummvm-rg350-25c7dc08b1ca6816ef3b99bb13819469bd45c710.zip
PSP: fixed bug in hardware MP3 that caused crash in broken sword. The sample rate must be returned from our member variable, not from the header value which disappears.
svn-id: r49680
Diffstat (limited to 'backends/platform/psp')
-rw-r--r--backends/platform/psp/mp3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/psp/mp3.h b/backends/platform/psp/mp3.h
index f8802f930c..029b3e498c 100644
--- a/backends/platform/psp/mp3.h
+++ b/backends/platform/psp/mp3.h
@@ -110,7 +110,7 @@ public:
bool endOfData() const { return _state == MP3_STATE_EOS; }
bool isStereo() const { return MAD_NCHANNELS(&_header) == 2; }
- int getRate() const { return _header.samplerate; }
+ int getRate() const { return _sampleRate; }
bool seek(const Timestamp &where);
Timestamp getLength() const { return _length; }