[Scummvm-cvs-logs] SF.net SVN: scummvm:[47852] scummvm/trunk/test/sound/raw.h
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Wed Feb 3 16:24:04 CET 2010
Revision: 47852
http://scummvm.svn.sourceforge.net/scummvm/?rev=47852&view=rev
Author: lordhoto
Date: 2010-02-03 15:24:03 +0000 (Wed, 03 Feb 2010)
Log Message:
-----------
Cleanup.
Modified Paths:
--------------
scummvm/trunk/test/sound/raw.h
Modified: scummvm/trunk/test/sound/raw.h
===================================================================
--- scummvm/trunk/test/sound/raw.h 2010-02-03 12:57:47 UTC (rev 47851)
+++ scummvm/trunk/test/sound/raw.h 2010-02-03 15:24:03 UTC (rev 47852)
@@ -12,7 +12,7 @@
{
public:
template<typename T>
- T *createSine(int sampleRate, int time) {
+ static T *createSine(int sampleRate, int time) {
T *sine = (T *)malloc(sizeof(T) * time * sampleRate);
const T maxValue = std::numeric_limits<T>::max();
@@ -30,7 +30,7 @@
}
template<typename T>
- Audio::SeekableAudioStream *createSineStream(int sampleRate, int time, const T **sineP) {
+ static Audio::SeekableAudioStream *createSineStream(int sampleRate, int time, const T **sineP) {
T *sine = createSine<T>(sampleRate, time);
Common::SeekableReadStream *sD = new Common::MemoryReadStream((const byte *)sine, sizeof(T) * sampleRate * time, DisposeAfterUse::YES);
@@ -61,7 +61,7 @@
delete s;
}
- void test_read_buffer_16_bit_mono() {
+ void test_read_buffer_16_bit_be_mono() {
const int sampleRate = 11025;
const int time = 2;
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