[Scummvm-cvs-logs] SF.net SVN: scummvm: [21645] scummvm/trunk/engines/cine
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Thu Apr 6 11:56:05 CEST 2006
Revision: 21645
Author: eriktorbjorn
Date: 2006-04-06 11:55:39 -0700 (Thu, 06 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=21645&view=rev
Log Message:
-----------
We don't need to convert mono data to stereo: Simply tell the mixer that we're
generating mono data, and let it worry about how to handle it.
Modified Paths:
--------------
scummvm/trunk/engines/cine/sound_driver.cpp
scummvm/trunk/engines/cine/sound_driver.h
Modified: scummvm/trunk/engines/cine/sound_driver.cpp
===================================================================
--- scummvm/trunk/engines/cine/sound_driver.cpp 2006-04-06 17:56:41 UTC (rev 21644)
+++ scummvm/trunk/engines/cine/sound_driver.cpp 2006-04-06 18:55:39 UTC (rev 21645)
@@ -113,11 +113,7 @@
}
int AdlibSoundDriver::readBuffer(int16 *buffer, const int numSamples) {
- update(buffer, numSamples / 2);
- // convert mono to stereo
- for (int i = numSamples / 2 - 1; i >= 0; i--) {
- buffer[2 * i] = buffer[2 * i + 1] = buffer[i];
- }
+ update(buffer, numSamples);
return numSamples;
}
Modified: scummvm/trunk/engines/cine/sound_driver.h
===================================================================
--- scummvm/trunk/engines/cine/sound_driver.h 2006-04-06 17:56:41 UTC (rev 21644)
+++ scummvm/trunk/engines/cine/sound_driver.h 2006-04-06 18:55:39 UTC (rev 21645)
@@ -91,7 +91,7 @@
// AudioStream interface
virtual int readBuffer(int16 *buffer, const int numSamples);
- virtual bool isStereo() const { return true; }
+ virtual bool isStereo() const { return false; }
virtual bool endOfData() const { return false; }
virtual int getRate() const { return _sampleRate; }
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