aboutsummaryrefslogtreecommitdiff
path: root/sound/rate.cpp
AgeCommit message (Collapse)Author
2010-03-12Fix typosMax Horn
svn-id: r48242
2010-01-05Oops somehow I must have missed CopyRateConverter::flow, in r47014.Johannes Schickel
svn-id: r47016
2010-01-05Make RateConverter::flow return the number of sample pairs written, like ↵Johannes Schickel
it's documented in the .cpp file. svn-id: r47014
2007-09-24Silence some warnings.Johannes Schickel
svn-id: r29086
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-06-30Tweak LinearRateConverter code so that opos is in the range [0,1[ instead of ↵Max Horn
[-1,0[ when entering the interpolation loop (this allows us to get rid of '& FRAC_LO_MASK') svn-id: r27780
2007-06-29Added small explanatory commentMax Horn
svn-id: r27779
2007-06-28Moved some fixed point code to its own header file; simplified the ↵Max Horn
LinearRateConverter code a bit; corrected some comments; split makeRateConverter into two funcs (one of them being a template func), for easier maintenance svn-id: r27760
2007-06-16cleanupMax Horn
svn-id: r27500
2007-06-16Avoid using the 'st_sample_t out[2]' arrays inside tight loops, as some ↵Max Horn
compilers are bad at optimizing array access due to pointer aliasing svn-id: r27499
2007-06-16Tiny changes to help optimizer resolve array aliasingMax Horn
svn-id: r27471
2007-06-16Patch #1717419: Optimisation for sound rate conversion codeMax Horn
svn-id: r27470
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-02-22If an AudioStream returned a negative number in his readBuffer() method, ↵Max Horn
then CopyRateConverter::flow could have got stuck in a (quasi) endless loop svn-id: r25790
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