aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
AgeCommit message (Collapse)Author
2002-09-15new smush player need bigger bufferPaweł Kołodziejski
svn-id: r4942
2002-09-15speed changes to play smush moviesPaweł Kołodziejski
svn-id: r4941
2002-09-14fixed stream in mixer, not completed yet - bad wrap around.Paweł Kołodziejski
svn-id: r4940
2002-09-08rewrote config class; cleanup; code restructuringMax Horn
svn-id: r4903
2002-09-02fixesPaweł Kołodziejski
svn-id: r4897
2002-09-02changed file io in sounds to class FilePaweł Kołodziejski
svn-id: r4896
2002-08-29sound system cleanupMax Horn
svn-id: r4867
2002-08-24synced with scummvmPaweł Kołodziejski
svn-id: r4821
2002-08-23fix for bug #598938: sfx/music volume set 0 is not mute; some cleanupMax Horn
svn-id: r4805
2002-08-20applied patch 597414, thanks XavierPaweł Kołodziejski
svn-id: r4778
2002-08-18move _volume_table creation into constructor, and discard it in destructorMax Horn
svn-id: r4764
2002-08-11Removing some system ifdef's that won't be required anymore soonRuediger Hanke
svn-id: r4726
2002-08-10this remove clicks end of sounds in smushPaweł Kołodziejski
svn-id: r4724
2002-08-09Got rid of annoying blips and scratches on my system. It's just for MorphOS ↵Ruediger Hanke
not to annoy Ender (see his comment in the source). Happens probably only here. svn-id: r4723
2002-08-09Fixed Mixer full warnings, Dig music plays much better now on MorphOSRuediger Hanke
svn-id: r4722
2002-08-04fixed compile errorMax Horn
svn-id: r4702
2002-08-04DIG: preliminarily support for music in the gamePaweł Kołodziejski
svn-id: r4701
2002-07-29patch 587769 by Fridvin Logi (supposedly helps with Nexus in The Dig)Max Horn
svn-id: r4678
2002-07-28fixed volume table (that was a neat trick, that int8 cast, really got me; ↵Max Horn
but I prefer readability over the 5 ns time saved <g>) svn-id: r4675
2002-07-28added constants for the default volumes; changed the volume ranges from ↵Max Horn
0-255 to 0-256 svn-id: r4670
2002-07-27fixed some warnings, fixed clamped_add_16 to do the right thing now (wow, ↵Max Horn
nobody noticed this.. :-) svn-id: r4652
2002-07-26when mixing data, clamp the addition - otherwise we might get overflows for ↵Max Horn
high volumes svn-id: r4647
2002-07-23fixed Channel_MP3::mix to deal correctly with _silence_cut (this improves ↵Max Horn
lip sync); put cubic interpolation code into a utility class, CubicInterpolator; now three mixers use this, converting the other ones should be simple svn-id: r4623
2002-07-22pulled out arisme's recent changes to pauseMode, they are not correct as ↵Max Horn
they break pause mode for all systems that use real MIDI drivers (see bug #584684). If you need a mute music mode, then add an according function to iMUSE/mixer but don't abuse pause mode, please svn-id: r4615
2002-07-21Apply patch from Torbj�rn Andersson to make MP3_CDMUSIC mixer useJames Brown
music_volume instead of sfx_volume. svn-id: r4611
2002-07-20Fixed Monkey Island 2 freeze when sound is pausedNicolas Bacca
svn-id: r4608
2002-07-17added cubic spline interpolation (only to mix_unsigned_mono_8 because that's ↵Max Horn
what I used to test); next step will be to put this into a seperate function which all the 9 mixers (8 normal ones and one for MP3) will then use, but I gotta sleep now :-) svn-id: r4585
2002-07-07indent runMax Horn
svn-id: r4475
2002-06-26Hacks to make SMUSH mixer a bit more tollerable.James Brown
svn-id: r4429
2002-06-06As long as I am fixing regression bug introduced by my streamingLionel Ulmer
patch, fix also the 'FLAG_FILE' stuff. Endy, you should be able to revert your patch to Simon as it should not be needed anymore now :-) svn-id: r4412
2002-06-06This should fix the regression introduced by my streaming changes (bugLionel Ulmer
#564756). Thanks Oliver Kiehl for the find :-) svn-id: r4411
2002-06-03Added the mutex support to ease the streaming (ie to prevent all raceLionel Ulmer
conditions between an 'append' and a playing by the sound thread). Porters should add the relevant stuff to their OSystem interfaces. But finally, the bug reported by Valgrind was much more trivial than that and is also fixed in this commit :-) svn-id: r4398
2002-06-02Fix the streaming used in the movies in TheDig (warning, did not testLionel Ulmer
Full Throttle). This should be less buggy (ie crash less often, maybe not better quality) than the previous code. NOTE: the '1024 *' is here for testing purposes and will need to be severely reduced :-/ svn-id: r4396
2002-05-22Fix for mixer 16 bits samples. Samples are clear now.Paweł Kołodziejski
bbrox: This patch works fine for me, previous not. (MSVC6 + SP5) svn-id: r4368
2002-05-20Add volume control like it is done for MP3 to the 16 bit 'mixers' (ieLionel Ulmer
using a 32 level only volume range). svn-id: r4365
2002-05-19The Dig: stereo samples and mixerPaweł Kołodziejski
svn-id: r4359
2002-05-19The Dig: 16 bit samples and mixerPaweł Kołodziejski
svn-id: r4358
2002-05-18Added infrastructure to support more than 8 bit signed / unsigned RAWLionel Ulmer
mixers. Porters, beware, the default configuration is now 16 bit stereo instead of 16 mono as before (I changed X11 and SDL but no others). I did not add support for any other format yet, I will let Endy do it when he needs it :-) svn-id: r4348
2002-05-12Add new mixer 'append' function to allow pseudo-streaming for SMUSHJames Brown
svn-id: r4291
2002-05-04my version of MAD (0.14.2b) has no MAD_ERROR_NONE; where did that come from?Max Horn
svn-id: r4191
2002-05-03Remove floating point in the MP3 volume control (baaaaaaaad on PDAsLionel Ulmer
like the iPAQ where no FPU is present). Instead replace it by a '32 level' volume control. svn-id: r4184
2002-05-01Pause and start of volume supportNicolas Bacca
svn-id: r4165
2002-05-01Fix sound crash in some games. Thanks Michael Karcher.James Brown
svn-id: r4155
2002-04-28MI1 CD audio should work better now. Still a bit flaky but should beLionel Ulmer
better than before :-) svn-id: r4128
2002-04-27MP3 CD tracks should now be working properly.Lionel Ulmer
Ludde, maybe you should check if Simon is still working OK as now the change of the sound playing handle is 'asynchronous' (ie if you call 'stop' on a sound, the handle will NOT be put to NULL right away, but at the next 'mix' thread call). Maybe we should completely remove this handle stuff and always use instead the index returned by the 'play_XXX' functions. svn-id: r4101
2002-04-27Remove getpid() debug calls from mixer.cpp - not all platforms support thisJames Brown
function. svn-id: r4100
2002-04-26Fixed race conditions in the sound code (where a sound could beLionel Ulmer
'freed' while it was mixed at the same time in the sound thread). Now Monkey1 seems to play well with Valgrind without any memory warning. svn-id: r4096
2002-04-26Remove useless debug code.Lionel Ulmer
svn-id: r4094
2002-04-26Fixed one memory overwrite problem in MP3-CD support. First pass atLionel Ulmer
some code clean-up. More ahead (once I understand better the code :-) ). svn-id: r4093
2002-04-22Fix MP3 compilation.James Brown
svn-id: r4050