[Scummvm-cvs-logs] SF.net SVN: scummvm:[49680] scummvm/trunk/backends/platform/psp/mp3.h

Bluddy at users.sourceforge.net Bluddy at users.sourceforge.net
Tue Jun 15 07:34:37 CEST 2010


Revision: 49680
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49680&view=rev
Author:   Bluddy
Date:     2010-06-15 05:34:37 +0000 (Tue, 15 Jun 2010)

Log Message:
-----------
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.

Modified Paths:
--------------
    scummvm/trunk/backends/platform/psp/mp3.h

Modified: scummvm/trunk/backends/platform/psp/mp3.h
===================================================================
--- scummvm/trunk/backends/platform/psp/mp3.h	2010-06-15 05:15:34 UTC (rev 49679)
+++ scummvm/trunk/backends/platform/psp/mp3.h	2010-06-15 05:34:37 UTC (rev 49680)
@@ -110,7 +110,7 @@
 
 	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; }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list