aboutsummaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2003-12-21Cleaned up SoundMixer::newStream() a bit (I plan to replace all usages of ↵Max Horn
this by playInputStream(), this cleanup eases this a bit) svn-id: r11803
2003-12-21o Make use of the new LinearMemoryStream feature which allows auto-disposing ↵Max Horn
the sound data o This allows us to get rid of the ChannelRaw class o Removed the sound index return value from several methods o Removed all methods dealing with sound indices (i.e. stopChannel and pauseChannel) svn-id: r11801
2003-12-21Rewrote make*Stream factory functions to work around bug in MSVC6 (see bug ↵Max Horn
report #860067); added some comments; LinearMemoryStream now can auto-dispose the data passed to it svn-id: r11798
2003-12-19distinguish between end of stream and end of dataMax Horn
svn-id: r11756
2003-12-19o Moved MP3 and Vorbis input streams to mp3.* resp. vorbis.*Max Horn
o Added SoundMixer::playInputStream and made some of the other play* methods use it o Added ProcInputStream stub (not working yet) which one day may allow us to replace the premix code, and allow other fancy stuff o Remove AudioInputStream::readBuffer default implementation (subclasses should always provide it for max. performance) o Some minor cleanup svn-id: r11754
2003-12-19fix for recent audio stream regressionMax Horn
svn-id: r11752
2003-12-18PalmOS sound API cannot access globals data, StackLock constructor use g_systemChris Apers
svn-id: r11742
2003-12-18This is now supported on PalmOSChris Apers
svn-id: r11741
2003-12-17Made sure that *all* AudioInputStream 'know' their sample rate; removed ↵Max Horn
pointless MusicStream class; removed various specific Channel subclasses and instead generalized the base class some more svn-id: r11699
2003-12-17cleanupMax Horn
svn-id: r11697
2003-12-17changed the way 'streams' are handled: the finalization logic is now in the ↵Max Horn
WrappedAudioInputStream; this allows further streamlining of the channel/mixer code (can you already guess what I am working towards? :-) svn-id: r11696
2003-12-17some cleanupMax Horn
svn-id: r11694
2003-12-16cleanupMax Horn
svn-id: r11686
2003-12-16added mixer flag for little endian samplesRobert Göffringmann
svn-id: r11665
2003-12-12init some more member varsMax Horn
svn-id: r11597
2003-12-11Emergency bugfixes:Torbjörn Andersson
Initialise _cd.playing to false. Otherwise ScummVM may create a savegame where a CD track appears to be playing, but everything about it is undefined, causing ScummVM to crash when loading it. Initialise _track_info[] with NULLs, otherwise ScummVM crashes for me when I start the CD version of MI1. There's probably a lot more that *should* be properly initialised, but this seems to take care of the most serious issues, and is all I have the time to do now anyway. svn-id: r11573
2003-12-11Expanded the Doxygen docs for the MidiParser class.Jamieson Christian
Painfully detailed in its description of how to get a MidiParser object hooked up and running. Hope this helps ya, Joost! ;) svn-id: r11559
2003-12-10Endian-safe read-and-advance helper functions areJamieson Christian
now based on the READ_LE_* and READ_BE_* macros. Very slight performance gain, woo hoo. svn-id: r11558
2003-12-09small tweak/fix (?)Max Horn
svn-id: r11541
2003-11-29cleanupMax Horn
svn-id: r11431
2003-11-29fixed warningPaweł Kołodziejski
svn-id: r11430
2003-11-29added API to query CD playback status; renamed AudioCDManager methodsMax Horn
svn-id: r11422
2003-11-29moved Audio CD (emulation) code from scumm/sound.cpp to sound/, so that it ↵Max Horn
may be reused by other engines in the future svn-id: r11421
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11221
2003-11-07Correct voc rate in DOTT demoTravis Howell
svn-id: r11186
2003-11-07fix invalid typo fixes ;-) (BTW did anybody get comit mails for khalek's ↵Max Horn
changes? I didn't) svn-id: r11183
2003-11-07spelling fixesJonathan Gray
svn-id: r11180
2003-10-25whateverJoost Peters
svn-id: r10959
2003-10-24added extra flag to mixer so we don't use free() on new'd pointersJoost Peters
svn-id: r10958
2003-10-18cleanupMax Horn
svn-id: r10894
2003-10-18We proudly present the latest installment of our hit series 'Untangle the ↵Max Horn
mess': 'Help! Space Invaders refactored the music detector'... in other news, I obviously need to sleep now svn-id: r10883
2003-10-17renamed some Timer methodsMax Horn
svn-id: r10868
2003-10-10cleanupMax Horn
svn-id: r10718
2003-10-05clarification: premixer must use native endianessMax Horn
svn-id: r10621
2003-10-05Preliminary preparation for new YM2612 FM emulator.Jamieson Christian
All the hooks are in, but actual implementation needs to be checked for portability. svn-id: r10615
2003-10-04use namespace Common a bit more; don't zero the RNG in scumm (else the seed ↵Max Horn
gets reset); remove obsolete 256 color blending code svn-id: r10592
2003-10-03cleanup / doxygenificationMax Horn
svn-id: r10578
2003-10-03undo aquadran's recent changes here. If this doesn't compile on MSVC7, fine, ↵Max Horn
simply remove it from your project file - it's not supposed to be compiled ATM svn-id: r10564
2003-10-03fixed compilation under msvc7Paweł Kołodziejski
svn-id: r10562
2003-10-02cleanup & restructuring; in particular move the midi driver list to its own ↵Max Horn
source file svn-id: r10550
2003-09-28removed duplicate g_timer object (one was global, one was static to ↵Max Horn
timer.cpp); set g_system earlier (might prevent a few race conditions) svn-id: r10471
2003-09-27Timer services are now available through g_timer, soJamieson Christian
you don't have to go through the Engine to get to them. svn-id: r10450
2003-09-26Converted the MPU-401 timer to use the Timer class.Jamieson Christian
Since this was the only place where we were using create_thread, that method should be removable now. I also removed the midi_driver_thread overrides for the MorphOS and YPA1 (Palm) backends. These need to be tested by their respective porters. svn-id: r10414
2003-09-25Fix for Bug [810564] ALL: missing instruments with native MT-32Jamieson Christian
As defined in Patch [811623] MT-32 patch for Bug 810564 Added a channel mask to MPU-401 devices so that --native-mt32 may force the device to use only the subset of MIDI channels actually supported by the MT-32. Also added a best-guess interpretation of iMuse Part priority in the SysEx 0x00 msg, since part priorities become more of an issue when the channel count is cramped. svn-id: r10409
2003-09-19work around silly bug in Microsoft Visual Studio .NET 2003. M$ does not stop ↵Max Horn
at breaking HTML and Java, no, now they have to mutilate C/C++, too. MS-C instead of ANSI-C, anybody? *grmbl* svn-id: r10319
2003-09-18changed & documented the premixer semanticsMax Horn
svn-id: r10294
2003-09-18moved engine.* to base; this fixes some linking issues when building a ↵Max Horn
barebone ScummVM (or maybe I just want to increase our CVS stats? <g>) svn-id: r10287
2003-09-17some tweaks to the build system (work toward plugin support)Max Horn
svn-id: r10279
2003-09-16Don't call the premix function when the mixer is paused. (This isTorbjörn Andersson
particularly noticeable in games with PC speaker emulation, but I could hear faint noises in AdLib music as well.) svn-id: r10262
2003-09-11some (untested!) support for backends which require unsigned audio samplesMax Horn
svn-id: r10183