aboutsummaryrefslogtreecommitdiff
path: root/sound/rate.cpp
AgeCommit message (Collapse)Author
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