aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
AgeCommit message (Collapse)Author
2003-09-02Fixed compiler warning that I introduced earlier.Torbjörn Andersson
svn-id: r9974
2003-09-02Added per-channel pausing. Maybe I should have named the pauseChannel()Torbjörn Andersson
function simply pause() to be consistent with stop(), but there already is a pause() function and I don't want to have two functions with the same name doing different things. (The current pause() function pauses all channels.) svn-id: r9968
2003-09-01forgot thisPaweł Kołodziejski
svn-id: r9957
2003-09-01The channel could be destroyed so changeVolumeAndPan can't access it in that ↵Chris Apers
case svn-id: r9955
2003-08-31added mixer features: volume and pan control per channelPaweł Kołodziejski
svn-id: r9944
2003-08-30revert id handle stuffPaweł Kołodziejski
svn-id: r9927
2003-08-30added func isChannelActive for mixer, and fixed handling numbers of channel 0Paweł Kołodziejski
svn-id: r9924
2003-08-09added SoundMixer::pauseChannels for pausing SFX and keeping adlib music ↵Robert Göffringmann
running (needed by BASS when menu bar drops down) svn-id: r9607
2003-08-06some cleanupMax Horn
svn-id: r9575
2003-08-05some cleanup; added Channel::getVolume, once somebody tells me what exactly ↵Max Horn
is needed, I can add per-channel volume, and also per-channel panning svn-id: r9525
2003-08-05begone, old mixer codeMax Horn
svn-id: r9521
2003-08-05more cleanupMax Horn
svn-id: r9513
2003-08-05more cleanup (like the previous two, I just moved around code, to clearly ↵Max Horn
separate the old and the new mixer code) svn-id: r9479
2003-08-05some more cleanupMax Horn
svn-id: r9478
2003-08-05cleanup; removed some code duplicationMax Horn
svn-id: r9477
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-02some more tweaksMax Horn
svn-id: r9424
2003-08-02added FLAG_REVERSE_STEREO supportMax Horn
svn-id: r9416
2003-08-02obsoleteMax Horn
svn-id: r9410
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-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-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-31cleanupMax Horn
svn-id: r9312
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-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-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-26oops accidentally broke the 'old' 8bit resampling code :-(Max Horn
svn-id: r9192
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-23Fixed regression in clamped_add_16() that kept it from clamping. This wasTorbjörn Andersson
quite noticeable in the BASS floppy intro. Of course, if it turns out that 'int' is also only 16 bits it still won't work, but in that case we run into problems even before this function is called. svn-id: r9145
2003-07-17simplified codeMax Horn
svn-id: r9061
2003-07-14oopsMax Horn
svn-id: r9023
2003-07-14removed whitespaces at line ends; added stopHandleMax Horn
svn-id: r9022
2003-07-12Fixed RTTI warnings with PalmOS portChris Apers
svn-id: r8951
2003-07-12verify chan != 0 even on WinCEMax Horn
svn-id: r8940
2003-07-12Give sample rate to channel classes (WinCE downsampling) / Do not use ↵Nicolas Bacca
dynamic cast with EVC 3 / Fix Tremor Ogg support svn-id: r8937