aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.h
AgeCommit message (Collapse)Author
2003-08-04renamed eof -> eos (end of stream); hid MP3/Vorbis stream classes completly ↵Max Horn
(by providing factory methods); new readBuffer method for AudioInputStream for improved speed of the mixer; new MusicStream class (subclassed for MP3/Vorbis sound) which offers a getRate method; some other tweaks svn-id: r9467
2003-08-02slightly optimized MP3InputStream::eof, and some cleanupMax Horn
svn-id: r9422
2003-08-02converted ChannelMP3 to use new rate conversion scheme, too. Only thing ↵Max Horn
missing now is FLAG_REVERSE_STEREO support (and of course fixing regressions, and the long term goal is to make resample.cpp usable, too) svn-id: r9395
2003-08-01let the input stream handle the looping (by pretending to be of infinite ↵Max Horn
size -> this fixes a problem which cause 'gaps' at loop turn-over points) svn-id: r9379
2003-08-01implemented raw sound looping; some debug output enabled temporarilyMax Horn
svn-id: r9360
2003-08-01#include cleanup (explicityl specify the location for headers from common/, ↵Max Horn
so that we at some point can get rid of -Icommon; exception is made for stdafx.h, since a) we might want to rename it and b) might want to move it to the top level) svn-id: r9359
2003-07-31removed the AudioInputStream::size method -> only eof() is really needed, ↵Max Horn
and this can be implemented more efficiently stand-alone; implemented MP3InputStream (work in progress) svn-id: r9313
2003-07-29added VorbisInputStreamMax Horn
svn-id: r9271
2003-07-28make wrapped stream work (I can hear some music in CoMI now before it ↵Max Horn
segfaults :-) svn-id: r9258
2003-07-28rewrote the input streams, this should be more straightforward and inline ↵Max Horn
slightly better (the fact that the main AudioInputStream methods are virtual still means that no inlining can take place there; but of course, if we did change that, all the rate converters would have to exist in 8, instead of currently 2, compiled versions) svn-id: r9256
2003-07-28more work on WrappedMemoryStream (not yet tested)Max Horn
svn-id: r9253
2003-07-28instead of 'int channels', use 'bool stereo' (less extensible, but then I ↵Max Horn
don't think we'll ever support 5.1 sound :-)); fixed a bug in st_rate_flow where it sometimes would overflow the output buffer; made CopyRateConverter a template, too, increasing efficency svn-id: r9239
2003-07-28use a single converter for both channels (if input data is stereo), for ↵Max Horn
improved efficency; renamed MemoryAudioInputStream -> LinearMemoryStream and use some template voodoo to make the baseclass of Input8bitSignedStream etc. variable; added (commented out) draf of WrappedMemoryStream svn-id: r9209
2003-07-25move AudioInputStream implementations & makeInputStream into separate .cpp fileMax Horn
svn-id: r9190
2003-07-25reduced source code duplicationMax Horn
svn-id: r9189
2003-07-24added RateConverter classes as thin wrappers around st_* functions; renamed ↵Max Horn
InputStream -> AudioInputStream and cleaned up the hierarchy of its subclasses; added makeInputStream() auxillary function svn-id: r9179
2003-07-24new files, based on SoX (http://sox.sf.net): better resampling code. Note ↵Max Horn
that my mixer.cpp changes are on purpose not yet in CVS since they are not complete. Only reasons I checkin these files is that it's much more comfortable to have CVS, since I need to rewrite parts of resample.cpp now (I already have lots of modifications in). Also expect more OO in the future svn-id: r9176