aboutsummaryrefslogtreecommitdiff
path: root/sound/rate.cpp
AgeCommit message (Collapse)Author
2003-12-19distinguish between end of stream and end of dataMax Horn
svn-id: r11756
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11221
2003-09-05optimized channel volume/pan handlingMax Horn
svn-id: r10028
2003-09-02moved volume and pan control into flow funcPaweł Kołodziejski
svn-id: r9976
2003-08-06some cleanupMax Horn
svn-id: r9575
2003-08-04not really sure if using readBuffer would give any gain in CopyRateConverterMax Horn
svn-id: r9470
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-02one addition lessMax Horn
svn-id: r9425
2003-08-02some more tweaksMax Horn
svn-id: r9424
2003-08-02slightly cut down on the number of times eof() is calledMax Horn
svn-id: r9423
2003-08-02optimize code flow a littleMax Horn
svn-id: r9419
2003-08-02cleanupMax Horn
svn-id: r9417
2003-08-02added FLAG_REVERSE_STEREO supportMax Horn
svn-id: r9416
2003-08-02remove debug outputMax Horn
svn-id: r9415
2003-08-02fix for st_rate_flow, code is more straightforward now, tooMax Horn
svn-id: r9414
2003-08-02garhgMax Horn
svn-id: r9409
2003-08-02previous mod was techincally incorrect, this one should be better (but might ↵Max Horn
still be buggy?) svn-id: r9408
2003-08-02I think this fixes bug #780167 ("SIMON1/2: Sound problems"). WhenTorbjörn Andersson
st_rate_flow() had filled the output buffer, rate->icur and rate->ilast held the same values, which led to some samples being duplicated on the next call. svn-id: r9403
2003-07-31icur was not being saved between rate conversion callsMax Horn
svn-id: r9344
2003-07-31back disable warnings into stdafx.h, vc6 is lack of warnings supportPaweł Kołodziejski
svn-id: r9337
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-30Fixed MSVC errorsJamieson Christian
svn-id: r9288
2003-07-29Fix mingw compileTravis Howell
svn-id: r9269
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-28added CopyRateConverter (used if inrate == outrate)Max Horn
svn-id: r9214
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-25round to nearestMax Horn
svn-id: r9183
2003-07-24added volume support; some cleanup; provided exactly as many samples as were ↵Max Horn
requested in the 'resample' algorithm (if possible) svn-id: r9180
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