[Scummvm-cvs-logs] CVS: scummvm/sound audiostream.cpp,1.52,1.53 audiostream.h,1.27,1.28 mixer.cpp,1.152,1.153 mixer.h,1.71,1.72 mp3.cpp,1.6,1.7 mp3.h,1.5,1.6 rate.cpp,1.32,1.33 rate.h,1.22,1.23 resample.cpp,1.12,1.13 resample.h,1.5,1.6 voc.cpp,1.10,1.11 voc.h,1.8,1.9 vorbis.cpp,1.6,1.7 vorbis.h,1.5,1.6
Max Horn
fingolfin at users.sourceforge.net
Sat Jan 3 06:11:18 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm imuse_digi.cpp,1.111,1.112 imuse_digi.h,1.30,1.31 player_mod.h,2.11,2.12 sound.cpp,1.306,1.307
- Next message: [Scummvm-cvs-logs] CVS: scummvm Makefile,1.57,1.58
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv11166/sound
Modified Files:
audiostream.cpp audiostream.h mixer.cpp mixer.h mp3.cpp mp3.h
rate.cpp rate.h resample.cpp resample.h voc.cpp voc.h
vorbis.cpp vorbis.h
Log Message:
renamed AudioInputStream -> AudioStream
Index: audiostream.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/audiostream.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- audiostream.cpp 3 Jan 2004 02:30:34 -0000 1.52
+++ audiostream.cpp 3 Jan 2004 14:10:13 -0000 1.53
@@ -54,7 +54,7 @@
* generated.
*/
template<bool stereo, bool is16Bit, bool isUnsigned, bool isLE>
-class LinearMemoryStream : public AudioInputStream {
+class LinearMemoryStream : public AudioStream {
protected:
const byte *_ptr;
const byte *_end;
@@ -125,7 +125,7 @@
#pragma mark -
-#pragma mark --- WrappedMemoryStream ---
+#pragma mark --- AppendableMemoryStream ---
#pragma mark -
@@ -133,7 +133,7 @@
* Wrapped memory stream.
*/
template<bool stereo, bool is16Bit, bool isUnsigned>
-class WrappedMemoryStream : public WrappedAudioInputStream {
+class AppendableMemoryStream : public AppendableAudioStream {
protected:
byte *_bufferStart;
byte *_bufferEnd;
@@ -144,8 +144,8 @@
inline bool eosIntern() const { return _end == _pos; };
public:
- WrappedMemoryStream(int rate, uint bufferSize);
- ~WrappedMemoryStream() { free(_bufferStart); }
+ AppendableMemoryStream(int rate, uint bufferSize);
+ ~AppendableMemoryStream() { free(_bufferStart); }
int readBuffer(int16 *buffer, const int numSamples);
int16 read();
@@ -161,7 +161,7 @@
template<bool stereo, bool is16Bit, bool isUnsigned>
-WrappedMemoryStream<stereo, is16Bit, isUnsigned>::WrappedMemoryStream(int rate, uint bufferSize)
+AppendableMemoryStream<stereo, is16Bit, isUnsigned>::AppendableMemoryStream(int rate, uint bufferSize)
: _finalized(false), _rate(rate) {
// Verify the buffer size is sane
@@ -176,7 +176,7 @@
}
template<bool stereo, bool is16Bit, bool isUnsigned>
-inline int16 WrappedMemoryStream<stereo, is16Bit, isUnsigned>::read() {
+inline int16 AppendableMemoryStream<stereo, is16Bit, isUnsigned>::read() {
assert(!eosIntern());
// Wrap around?
@@ -190,7 +190,7 @@
}
template<bool stereo, bool is16Bit, bool isUnsigned>
-int WrappedMemoryStream<stereo, is16Bit, isUnsigned>::readBuffer(int16 *buffer, const int numSamples) {
+int AppendableMemoryStream<stereo, is16Bit, isUnsigned>::readBuffer(int16 *buffer, const int numSamples) {
int samples = 0;
while (samples < numSamples && !eosIntern()) {
// Wrap around?
@@ -209,7 +209,7 @@
}
template<bool stereo, bool is16Bit, bool isUnsigned>
-void WrappedMemoryStream<stereo, is16Bit, isUnsigned>::append(const byte *data, uint32 len) {
+void AppendableMemoryStream<stereo, is16Bit, isUnsigned>::append(const byte *data, uint32 len) {
// Verify the buffer size is sane
if (is16Bit && stereo)
@@ -225,7 +225,7 @@
uint32 size_to_end_of_buffer = _bufferEnd - _end;
len -= size_to_end_of_buffer;
if ((_end < _pos) || (_bufferStart + len >= _pos)) {
- warning("WrappedMemoryStream: buffer overflow (A)");
+ warning("AppendableMemoryStream: buffer overflow (A)");
return;
}
memcpy(_end, data, size_to_end_of_buffer);
@@ -233,7 +233,7 @@
_end = _bufferStart + len;
} else {
if ((_end < _pos) && (_end + len >= _pos)) {
- warning("WrappedMemoryStream: buffer overflow (B)");
+ warning("AppendableMemoryStream: buffer overflow (B)");
return;
}
memcpy(_end, data, len);
@@ -250,7 +250,7 @@
#if 0
// Work in progress!!! Not yet usable/finished/working/anything :-)
-class ProcInputStream : public AudioInputStream {
+class ProcInputStream : public AudioStream {
public:
typedef void InputProc (void *refCon, int16 *data, uint len);
@@ -302,7 +302,7 @@
} else \
return new LinearMemoryStream<STEREO, false, UNSIGNED, false>(rate, ptr, len, loopOffset, loopLen, autoFree)
-AudioInputStream *makeLinearInputStream(int rate, byte _flags, const byte *ptr, uint32 len, uint loopOffset, uint loopLen) {
+AudioStream *makeLinearInputStream(int rate, byte _flags, const byte *ptr, uint32 len, uint loopOffset, uint loopLen) {
const bool isStereo = (_flags & SoundMixer::FLAG_STEREO) != 0;
const bool is16Bit = (_flags & SoundMixer::FLAG_16BITS) != 0;
const bool isUnsigned = (_flags & SoundMixer::FLAG_UNSIGNED) != 0;
@@ -326,11 +326,11 @@
#define MAKE_WRAPPED(STEREO, UNSIGNED) \
if (is16Bit) \
- return new WrappedMemoryStream<STEREO, true, UNSIGNED>(rate, len); \
+ return new AppendableMemoryStream<STEREO, true, UNSIGNED>(rate, len); \
else \
- return new WrappedMemoryStream<STEREO, false, UNSIGNED>(rate, len)
+ return new AppendableMemoryStream<STEREO, false, UNSIGNED>(rate, len)
-WrappedAudioInputStream *makeWrappedInputStream(int rate, byte _flags, uint32 len) {
+AppendableAudioStream *makeAppendableAudioStream(int rate, byte _flags, uint32 len) {
const bool isStereo = (_flags & SoundMixer::FLAG_STEREO) != 0;
const bool is16Bit = (_flags & SoundMixer::FLAG_16BITS) != 0;
const bool isUnsigned = (_flags & SoundMixer::FLAG_UNSIGNED) != 0;
Index: audiostream.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/audiostream.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- audiostream.h 26 Dec 2003 01:32:29 -0000 1.27
+++ audiostream.h 3 Jan 2004 14:10:13 -0000 1.28
@@ -30,9 +30,9 @@
/**
* Generic input stream for the resampling code.
*/
-class AudioInputStream {
+class AudioStream {
public:
- virtual ~AudioInputStream() {}
+ virtual ~AudioStream() {}
/**
* Fill the given buffer with up to numSamples samples.
@@ -48,7 +48,7 @@
/**
* Read a single (16 bit signed) sample from the stream.
*/
- virtual int16 read() = 0;
+// virtual int16 read() = 0;
/** Is this a stereo stream? */
virtual bool isStereo() const = 0;
@@ -76,13 +76,13 @@
virtual int getRate() const = 0;
};
-class WrappedAudioInputStream : public AudioInputStream {
+class AppendableAudioStream : public AudioStream {
public:
virtual void append(const byte *data, uint32 len) = 0;
virtual void finish() = 0;
};
-class ZeroInputStream : public AudioInputStream {
+class ZeroInputStream : public AudioStream {
private:
int _len;
public:
@@ -100,7 +100,7 @@
int getRate() const { return -1; }
};
-AudioInputStream *makeLinearInputStream(int rate, byte _flags, const byte *ptr, uint32 len, uint loopOffset, uint loopLen);
-WrappedAudioInputStream *makeWrappedInputStream(int rate, byte _flags, uint32 len);
+AudioStream *makeLinearInputStream(int rate, byte _flags, const byte *ptr, uint32 len, uint loopOffset, uint loopLen);
+AppendableAudioStream *makeAppendableAudioStream(int rate, byte _flags, uint32 len);
#endif
Index: mixer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mixer.cpp,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -d -r1.152 -r1.153
--- mixer.cpp 3 Jan 2004 01:25:45 -0000 1.152
+++ mixer.cpp 3 Jan 2004 14:10:13 -0000 1.153
@@ -52,12 +52,12 @@
protected:
RateConverter *_converter;
- AudioInputStream *_input;
+ AudioStream *_input;
public:
Channel(SoundMixer *mixer, PlayingSoundHandle *handle, bool isMusic, byte volume, int8 pan, int id = -1);
- Channel(SoundMixer *mixer, PlayingSoundHandle *handle, AudioInputStream *input, bool autofreeStream, bool isMusic, byte volume, int8 pan, bool reverseStereo = false, int id = -1);
+ Channel(SoundMixer *mixer, PlayingSoundHandle *handle, AudioStream *input, bool autofreeStream, bool isMusic, byte volume, int8 pan, bool reverseStereo = false, int id = -1);
virtual ~Channel();
void mix(int16 *data, uint len);
@@ -229,7 +229,7 @@
}
// Create the input stream
- AudioInputStream *input;
+ AudioStream *input;
if (flags & SoundMixer::FLAG_LOOP) {
if (loopEnd == 0) {
input = makeLinearInputStream(rate, flags, (byte *)sound, size, 0, size);
@@ -249,7 +249,7 @@
#ifdef USE_MAD
void SoundMixer::playMP3(PlayingSoundHandle *handle, File *file, uint32 size, byte volume, int8 pan, int id) {
// Create the input stream
- AudioInputStream *input = makeMP3Stream(file, size);
+ AudioStream *input = makeMP3Stream(file, size);
playInputStream(handle, input, false, volume, pan, id);
}
#endif
@@ -257,12 +257,12 @@
#ifdef USE_VORBIS
void SoundMixer::playVorbis(PlayingSoundHandle *handle, File *file, uint32 size, byte volume, int8 pan, int id) {
// Create the input stream
- AudioInputStream *input = makeVorbisStream(file, size);
+ AudioStream *input = makeVorbisStream(file, size);
playInputStream(handle, input, false, volume, pan, id);
}
#endif
-void SoundMixer::playInputStream(PlayingSoundHandle *handle, AudioInputStream *input, bool isMusic, byte volume, int8 pan, int id, bool autofreeStream) {
+void SoundMixer::playInputStream(PlayingSoundHandle *handle, AudioStream *input, bool isMusic, byte volume, int8 pan, int id, bool autofreeStream) {
Common::StackLock lock(_mutex);
if (input == 0) {
@@ -467,7 +467,7 @@
assert(mixer);
}
-Channel::Channel(SoundMixer *mixer, PlayingSoundHandle *handle, AudioInputStream *input,
+Channel::Channel(SoundMixer *mixer, PlayingSoundHandle *handle, AudioStream *input,
bool autofreeStream, bool isMusic, byte volume, int8 pan, bool reverseStereo, int id)
: _mixer(mixer), _handle(handle), _autofreeStream(autofreeStream), _isMusic(isMusic),
_volume(volume), _pan(pan), _paused(false), _id(id), _converter(0), _input(input) {
@@ -519,16 +519,16 @@
uint rate, byte flags, uint32 buffer_size, byte volume, int8 pan)
: Channel(mixer, handle, true, volume, pan) {
// Create the input stream
- _input = makeWrappedInputStream(rate, flags, buffer_size);
+ _input = makeAppendableAudioStream(rate, flags, buffer_size);
// Get a rate converter instance
_converter = makeRateConverter(_input->getRate(), mixer->getOutputRate(), _input->isStereo(), (flags & SoundMixer::FLAG_REVERSE_STEREO) != 0);
}
void ChannelStream::finish() {
- ((WrappedAudioInputStream *)_input)->finish();
+ ((AppendableAudioStream *)_input)->finish();
}
void ChannelStream::append(void *data, uint32 len) {
- ((WrappedAudioInputStream *)_input)->append((const byte *)data, len);
+ ((AppendableAudioStream *)_input)->append((const byte *)data, len);
}
Index: mixer.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mixer.h,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- mixer.h 3 Jan 2004 01:25:45 -0000 1.71
+++ mixer.h 3 Jan 2004 14:10:13 -0000 1.72
@@ -28,7 +28,7 @@
#include "common/system.h"
-class AudioInputStream;
+class AudioStream;
class Channel;
class File;
@@ -113,7 +113,7 @@
void playVorbis(PlayingSoundHandle *handle, File *file, uint32 size, byte volume = 255, int8 pan = 0, int id = -1);
#endif
- void playInputStream(PlayingSoundHandle *handle, AudioInputStream *input, bool isMusic, byte volume = 255, int8 pan = 0, int id = -1, bool autofreeStream = true);
+ void playInputStream(PlayingSoundHandle *handle, AudioStream *input, bool isMusic, byte volume = 255, int8 pan = 0, int id = -1, bool autofreeStream = true);
/** Start a new stream. */
Index: mp3.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mp3.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- mp3.cpp 3 Jan 2004 01:25:45 -0000 1.6
+++ mp3.cpp 3 Jan 2004 14:10:13 -0000 1.7
@@ -37,7 +37,7 @@
#pragma mark -
-class MP3InputStream : public AudioInputStream {
+class MP3InputStream : public AudioStream {
struct mad_stream _stream;
struct mad_frame _frame;
struct mad_synth _synth;
@@ -261,7 +261,7 @@
return samples;
}
-AudioInputStream *makeMP3Stream(File *file, uint size) {
+AudioStream *makeMP3Stream(File *file, uint size) {
return new MP3InputStream(file, mad_timer_zero, size);
}
@@ -376,7 +376,7 @@
}
// Play it
- AudioInputStream *input = new MP3InputStream(_file, durationTime, 0);
+ AudioStream *input = new MP3InputStream(_file, durationTime, 0);
mixer->playInputStream(handle, input, true);
}
Index: mp3.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mp3.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- mp3.h 3 Jan 2004 01:25:45 -0000 1.5
+++ mp3.h 3 Jan 2004 14:10:13 -0000 1.6
@@ -27,13 +27,13 @@
#ifdef USE_MAD
-class AudioInputStream;
+class AudioStream;
class DigitalTrackInfo;
class File;
DigitalTrackInfo *makeMP3TrackInfo(File *file);
-AudioInputStream *makeMP3Stream(File *file, uint size);
+AudioStream *makeMP3Stream(File *file, uint size);
#endif
Index: rate.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/rate.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- rate.cpp 3 Jan 2004 02:29:48 -0000 1.32
+++ rate.cpp 3 Jan 2004 14:10:13 -0000 1.33
@@ -80,7 +80,7 @@
public:
LinearRateConverter(st_rate_t inrate, st_rate_t outrate);
- int flow(AudioInputStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r);
+ int flow(AudioStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r);
int drain(st_sample_t *obuf, st_size_t osamp, st_volume_t vol) {
return (ST_SUCCESS);
}
@@ -124,7 +124,7 @@
* Return number of samples processed.
*/
template<bool stereo, bool reverseStereo>
-int LinearRateConverter<stereo, reverseStereo>::flow(AudioInputStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r) {
+int LinearRateConverter<stereo, reverseStereo>::flow(AudioStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r) {
st_sample_t *ostart, *oend;
st_sample_t out[2];
@@ -203,7 +203,7 @@
free(_buffer);
}
- virtual int flow(AudioInputStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r) {
+ virtual int flow(AudioStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r) {
assert(input.isStereo() == stereo);
st_sample_t *ptr;
Index: rate.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/rate.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- rate.h 18 Sep 2003 02:07:18 -0000 1.22
+++ rate.h 3 Jan 2004 14:10:13 -0000 1.23
@@ -27,7 +27,7 @@
#include "common/util.h"
//#include "sound/audiostream.h"
-class AudioInputStream;
+class AudioStream;
typedef int16 st_sample_t;
typedef uint16 st_volume_t;
@@ -71,7 +71,7 @@
public:
RateConverter() {}
virtual ~RateConverter() {}
- virtual int flow(AudioInputStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r) = 0;
+ virtual int flow(AudioStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r) = 0;
virtual int drain(st_sample_t *obuf, st_size_t osamp, st_volume_t vol) = 0;
};
Index: resample.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/resample.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- resample.cpp 3 Oct 2003 10:30:33 -0000 1.12
+++ resample.cpp 3 Jan 2004 14:10:13 -0000 1.13
@@ -681,7 +681,7 @@
* Processed signed long samples from ibuf to obuf.
* Return number of samples processed.
*/
-int st_resample_flow(resample_t r, AudioInputStream &input, st_sample_t *obuf, st_size_t *osamp, st_volume_t vol) {
+int st_resample_flow(resample_t r, AudioStream &input, st_sample_t *obuf, st_size_t *osamp, st_volume_t vol) {
long i, k, last;
long Nout = 0; // The number of bytes we effectively output
long Nx; // The number of bytes we will read from input
@@ -689,7 +689,7 @@
const long obufSize = *osamp;
/*
-TODO: adjust for the changes made to AudioInputStream; add support for stereo
+TODO: adjust for the changes made to AudioStream; add support for stereo
initially, could just average the left/right channel -> bad for quality of course,
but easiest to implement and would get this going again.
Next step is to duplicate the X/Y buffers... a lot of computations don't care about
@@ -946,7 +946,7 @@
free(Y2);
}
-int ResampleRateConverter::flow(AudioInputStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol) {
+int ResampleRateConverter::flow(AudioStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol) {
// return st_resample_flow(&rstuff, input, obuf, &osamp, vol);
return 0;
}
Index: resample.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/resample.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- resample.h 3 Oct 2003 10:30:33 -0000 1.5
+++ resample.h 3 Jan 2004 14:10:13 -0000 1.6
@@ -85,7 +85,7 @@
public:
ResampleRateConverter(st_rate_t inrate, st_rate_t outrate, int quality);
~ResampleRateConverter();
- virtual int flow(AudioInputStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol);
+ virtual int flow(AudioStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol);
virtual int drain(st_sample_t *obuf, st_size_t osamp, st_volume_t vol);
};
Index: voc.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/voc.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- voc.cpp 3 Jan 2004 00:33:14 -0000 1.10
+++ voc.cpp 3 Jan 2004 14:10:13 -0000 1.11
@@ -152,14 +152,14 @@
return data;
}
-AudioInputStream *makeVOCStream(byte *ptr) {
+AudioStream *makeVOCStream(byte *ptr) {
int size, rate, loops;
byte *data = readVOCFromMemory(ptr, size, rate, loops);
return makeLinearInputStream(rate, SoundMixer::FLAG_AUTOFREE | SoundMixer::FLAG_UNSIGNED, data, size, 0, 0);
}
-AudioInputStream *makeVOCStream(File *file) {
+AudioStream *makeVOCStream(File *file) {
int size, rate;
byte *data = loadVOCFile(file, size, rate);
Index: voc.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/voc.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- voc.h 3 Jan 2004 00:33:14 -0000 1.8
+++ voc.h 3 Jan 2004 14:10:13 -0000 1.9
@@ -26,7 +26,7 @@
#include "stdafx.h"
#include "common/scummsys.h"
-class AudioInputStream;
+class AudioStream;
class File;
#if !defined(__GNUC__)
@@ -60,7 +60,7 @@
extern byte *readVOCFromMemory(byte *ptr, int &size, int &rate, int &loops);
extern byte *loadVOCFile(File *file, int &size, int &rate);
-AudioInputStream *makeVOCStream(byte *ptr);
-AudioInputStream *makeVOCStream(File *file);
+AudioStream *makeVOCStream(byte *ptr);
+AudioStream *makeVOCStream(File *file);
#endif
Index: vorbis.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/vorbis.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- vorbis.cpp 3 Jan 2004 01:25:45 -0000 1.6
+++ vorbis.cpp 3 Jan 2004 14:10:13 -0000 1.7
@@ -32,7 +32,7 @@
#include <vorbis/vorbisfile.h>
-AudioInputStream *makeVorbisStream(OggVorbis_File *file, int duration);
+AudioStream *makeVorbisStream(OggVorbis_File *file, int duration);
#pragma mark -
@@ -145,7 +145,7 @@
ov_time_seek(&_ov_file, startFrame / 75.0);
#endif
- AudioInputStream *input = makeVorbisStream(&_ov_file, duration * ov_info(&_ov_file, -1)->rate / 75);
+ AudioStream *input = makeVorbisStream(&_ov_file, duration * ov_info(&_ov_file, -1)->rate / 75);
mixer->playInputStream(handle, input, true);
}
@@ -165,7 +165,7 @@
#pragma mark -
-class VorbisInputStream : public AudioInputStream {
+class VorbisInputStream : public AudioStream {
OggVorbis_File *_ov_file;
int _end_pos;
int _numChannels;
@@ -274,11 +274,11 @@
_bufferEnd = (int16 *)read_pos;
}
-AudioInputStream *makeVorbisStream(OggVorbis_File *file, int duration) {
+AudioStream *makeVorbisStream(OggVorbis_File *file, int duration) {
return new VorbisInputStream(file, duration);
}
-AudioInputStream *makeVorbisStream(File *file, uint32 size) {
+AudioStream *makeVorbisStream(File *file, uint32 size) {
OggVorbis_File *ov_file = new OggVorbis_File;
file_info *f = new file_info;
Index: vorbis.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/vorbis.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- vorbis.h 3 Jan 2004 01:25:45 -0000 1.5
+++ vorbis.h 3 Jan 2004 14:10:13 -0000 1.6
@@ -27,13 +27,13 @@
#ifdef USE_VORBIS
-class AudioInputStream;
+class AudioStream;
class DigitalTrackInfo;
class File;
DigitalTrackInfo *makeVorbisTrackInfo(File *file);
-AudioInputStream *makeVorbisStream(File *file, uint32 size);
+AudioStream *makeVorbisStream(File *file, uint32 size);
#endif
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm imuse_digi.cpp,1.111,1.112 imuse_digi.h,1.30,1.31 player_mod.h,2.11,2.12 sound.cpp,1.306,1.307
- Next message: [Scummvm-cvs-logs] CVS: scummvm Makefile,1.57,1.58
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list