aboutsummaryrefslogtreecommitdiff
path: root/sound/rate.cpp
AgeCommit message (Collapse)Author
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20515
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2005-05-11Moved some more stuff to namespace Audio (enough for tonight)Max Horn
svn-id: r18040
2005-05-10Moved class SoundMixer to Audio::Mixer (didn't call the namespace 'Sound' ↵Max Horn
because we already have many classes with that name) svn-id: r18039
2005-01-10A little more moving around #include's (last one for today ;-)Max Horn
svn-id: r16534
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-12-27Use SoundMixer::kMaxMixerVolumeMax Horn
svn-id: r16351
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2004-01-03renamed AudioInputStream -> AudioStreamMax Horn
svn-id: r12110
2004-01-03replace read() by readBuffer() in CopyRateConverterMax Horn
svn-id: r12102
2003-12-26logic fix: we must do wrap around *before* read, not after. otherwise ↵Max Horn
eosIntern will in some border cases return wrong results; some cleanup svn-id: r11932
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