aboutsummaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2003-08-02oopsMax Horn
svn-id: r9396
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-02fix ChannelMP3CDMusic volume, too :-)Max Horn
svn-id: r9393
2003-08-02fix Vorbis music volumeMax Horn
svn-id: r9392
2003-08-02disable debug outputMax Horn
svn-id: r9390
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-31get rid of BUGGY_NEW_MP3_PLAYERMax Horn
svn-id: r9347
2003-07-31revamped MP3/Vorbis CD 'emulation' code to use a PlayingSoundHandle -> this ↵Max Horn
allows to finally get rid of the hackish isChannelActive/isChannelUsed methods in SoundMixer svn-id: r9346
2003-07-31fixed MP3InputStream, now seems to work properly (kind of a surprise)Max Horn
svn-id: r9345
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-31added new header file backends/intern.h; removed some stuff from ↵Max Horn
common/system.h which is either only of interest to backends or code instantiating a backend (->backends/intern.h); also removed fmopl specific enums (->sound/fmopl.h) svn-id: r9327
2003-07-31Fix for RC bug [780675] MI2: Reoccuring crashJamieson Christian
Tightened up OOB track selection handling in MidiParser. Apparently some SMFs in the Mac version of MI2 (and other games?) specify track -1 in their jump commands to indicate a jump within the same track. svn-id: r9321
2003-07-31Disabled unknown pragma warning in MSVC-6.Jamieson Christian
svn-id: r9320
2003-07-31make use of the new MP3InputStream in ChannelMP3CDMusic - but disabled by ↵Max Horn
default, because it is still quite buggy (e.g. crashes at end of stream etc) svn-id: r9314
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-31cleanupMax Horn
svn-id: r9312
2003-07-30fixed incorrect MSVC fixes; simplified readSample code (bugs #780167 and ↵Max Horn
#780420) svn-id: r9302
2003-07-30the VC warning for unknown pragmas is now gloabally disabled, no need to ↵Max Horn
work around it locally svn-id: r9300
2003-07-30Partial fix for bug #780167 ("SIMON1/2: Sound problems"). It seems to fixTorbjörn Andersson
the crash, but the sounds play at the wrong rate, I believe. svn-id: r9298
2003-07-30Fixed MSVC errorsJamieson Christian
svn-id: r9288
2003-07-29removed some debug outputMax Horn
svn-id: r9282
2003-07-29cleanupMax Horn
svn-id: r9281
2003-07-29account for the data in the _buffer, tooMax Horn
svn-id: r9276
2003-07-29after looking at SAM and DOTT, it seems the actor-voice sync actually is ↵Max Horn
*worse* with a non-zero _silenceCut value - setting it to 0 gives perfect sync for me... odd, when did this change? Anyway, removing _silenceCut. If you notice sync problems, tell me svn-id: r9275
2003-07-29some cleanup; moved around some stuff, preparing to unify more code of ↵Max Horn
ChannelMP3CDMusic and ChannelMP3 svn-id: r9274
2003-07-29return immediately after commiting suicide; enable new rate conversion codeMax Horn
svn-id: r9273
2003-07-29hooked up ChannelVorbis to the new rate converter system, using ↵Max Horn
VorbisInputStream svn-id: r9272
2003-07-29added VorbisInputStreamMax Horn
svn-id: r9271
2003-07-29added makeRateConverter factory functionMax Horn
svn-id: r9270
2003-07-29Fix mingw compileTravis Howell
svn-id: r9269
2003-07-29cleanupMax Horn
svn-id: r9266
2003-07-28experimental new rate conversion code (use SOX_HACK to en-/disable it); note ↵Max Horn
that right now only the linear filter works, the high quality resample in resample.cpp is in flux; right now the top priority for me is to get MP3/Vorbis resampling working svn-id: r9261
2003-07-28fix for bug #776169Max Horn
svn-id: r9259
2003-07-28make wrapped stream work (I can hear some music in CoMI now before it ↵Max Horn
segfaults :-) svn-id: r9258
2003-07-28moved st_gcd to resample.cppMax Horn
svn-id: r9257
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-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-26For for Bug [775654] DOTT: Hanging notesJamieson Christian
Corrected active notes tracking when switching between Type 2 SMF tracks. Although Note Off events from the previous track are properly simulated, those sustaining notes are cleared from the active notes list so that jumps within the new track will not attempt to sustain them again. svn-id: r9194
2003-07-26oops accidentally broke the 'old' 8bit resampling code :-(Max Horn
svn-id: r9192
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-25lots of mixer changes: replaced _volumeTable by _globalVolume (applying ↵Max Horn
volume after resampling is more accurate); made more member vars of SoundMixer protected (and thus added some new getter methods); added (untested) support for a second (stereo) channel when playing MP3 svn-id: r9184
2003-07-25round to nearestMax Horn
svn-id: r9183
2003-07-24whitespaceMax Horn
svn-id: r9181