aboutsummaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2011-01-10SOUND: Get rid of unused forward declarations in mixer.h.Johannes Schickel
svn-id: r55197
2011-01-08MT32: Fixed compilation warningsMarcus Comstedt
The conversion specification "%f" converts a double, not a float, so floats need to be converted to doubles before passing them to vprintf(). svn-id: r55175
2010-12-30FMOPL: Fix GCC warnings when DBOPL_WAVE is not WAVE_TABLEMUL.Torbjörn Andersson
svn-id: r55069
2010-12-18FMTOWNS AUDIO: formattingFlorian Kagerer
svn-id: r54950
2010-12-14SOUND: Fix Un-initialised Memory Reads in MT-32 Emulator, reported by Valgrind.David Turner
svn-id: r54909
2010-12-08MT32: Get rid of ANSIFile.Johannes Schickel
svn-id: r54827
2010-11-27MidiParser: updated comment concerning note on events in jumpToTick()Filippos Karapetis
svn-id: r54508
2010-11-24SCI/SOUND: Applied patch #3117577 - "SCI: MT-32 plays "warble" of notes when ↵Filippos Karapetis
music resumes", with some slight modifications This is only used by SCI for now, but it is probably correct to apply this for all engines, thus an appropriate TODO has been added svn-id: r54460
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-11SOUND: Add DK3 IMA ADPCM decoder for duck videosMatthew Hoops
svn-id: r54204
2010-11-08COMMON: Push #include audiocd.h in system.h out to .cpp filesMax Horn
svn-id: r54148
2010-11-08BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes onlyMax Horn
This commit contains the AudioCDManager changes from the gsoc2010-opengl branch. The other changes in that branch are restricted to the backends directory only (plus configure). The Nintendo DS and Dreamcast ports still need to be ported over to the new Audio CD system, but that should be fairly easy to do. svn-id: r54147
2010-11-05AUDIO: Remove obsolete comment.Johannes Schickel
svn-id: r54098
2010-11-01SOUND: Convert some (f)printf + fflush to debugMax Horn
svn-id: r54022
2010-10-30ALL: Add code to help stop people from accidentally using "bad" APIsMax Horn
A new header file common/forbidden.h is included by scummsys.h and it re-#defines numerous symbols like fopen(), fread(), system(), etc. with garbage, in order to provoke compile errors in any code using them. If a .cpp file really *must* use any of these (e.g. because it is a backend file), then these redefinitions can be disabled by #defining FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever this is done, an explanatory comment should be added. Note that this system cannot catch all "bad" usages (notably the Lua code in the sword25 engine), as it can only work if scummsys.h is included. svn-id: r53961
2010-10-29MT32: Remove useless cast.Johannes Schickel
svn-id: r53916
2010-10-24GUI/LAUNCHER: improved MIDI device selection (also #3088438)Florian Kagerer
This fixes an issue with the <default> setting in the GM and MT-32 device tabs that has caused some complaints and discussions on -devel. It might also be what bug #3088438 is about. With a <default> setting ScummVM would just use the first available MIDI device (even if this is the not really well working MT-32 emulator). This <default> setting was also indeed set by default - making it even more annoying. Now there is a new setting for both the GM and MT-32 device tabs ("Don't use GM/MT-32 music"). This will cause MIDI device detection to be skipped and the best of the other devices (Adlib etc.) to be used. This new setting is used as default. So users who haven't specified anything will get Adlib, PC Speaker etc. (if supported by the engine) even if the engine prefers Midi. There is a new "Use first available device" setting which will have the same effect as the "<default>" setting we had before. svn-id: r53771
2010-10-24ALL: code formatting fixesMax Horn
svn-id: r53764
2010-10-24ALL: Fix various typos (patch #3093266)Max Horn
svn-id: r53762
2010-10-18FM-TOWNS AUDIO: improve thread safetyFlorian Kagerer
svn-id: r53589
2010-10-18SOUND: Add support for LastExpress version of IMA ADPCM sound.Eugene Sandulenko
Patch by littleboy. svn-id: r53578
2010-10-13OPENGL: Merged from trunk, from rev 52105 to 53396.Johannes Schickel
This includes an rather hacky attempt to merge all the recent gp2x backend changes into the branch. I suppose the gp2x backend and probably all new backends, i.e. gph, dingux etc., might not compile anymore. Since I have no way of testing those it would be nice if porters could look into getting those up to speed in this branch. svn-id: r53399
2010-10-12JANITORIAL: Cleanup (mostly whitespace)Torbjörn Andersson
svn-id: r53161
2010-10-12JANITORAL: Clean trailing whitespaces.Jordi Vilalta Prat
svn-id: r53160
2010-10-10FM-TOWNS AUDIO: improve thread safetyFlorian Kagerer
svn-id: r53126
2010-10-10MIDIDRV: Prefer PCjr over PC SpeakerTorbjörn Andersson
If I understand this correctly, if the player's desired music driver isn't supported (e.g. if you have MIDI as default, and haven't said anything specifically for Maniac Mansion), it tries to pick the "best" supported music driver instead. In this case, check if PCjr is supported before picking PC Speaker. svn-id: r53105
2010-10-08SCUMM/FM-TOWNS: fixed threading issue in sfx codeFlorian Kagerer
svn-id: r53074
2010-10-07SCUMM/FM-TOWNS: improved sfx support for indy4 and monkey2Florian Kagerer
svn-id: r53052
2010-10-05PC98 AUDIO: cleanup as suggested by sev (see devel)Florian Kagerer
svn-id: r53031
2010-10-04FM-TOWNS AUDIO: minor fixFlorian Kagerer
svn-id: r53017
2010-10-03PC-98 AUDIO: some code size reduction for the NDS portFlorian Kagerer
svn-id: r52994
2010-09-22KYRA PC-98: fix endianess in music frequencyFlorian Kagerer
svn-id: r52855
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-09-17CMS: Some constification.Johannes Schickel
svn-id: r52782
2010-09-17CMS: Change an incorrect error into debug output.Johannes Schickel
svn-id: r52780
2010-09-17SOUND: Properly add CMS as plugin.Johannes Schickel
svn-id: r52779
2010-09-17SOUND: Move CMS emulator to sound/softsynth.Johannes Schickel
svn-id: r52778
2010-09-15MIDI: Send a reset MIDI device signal on startup.Johannes Schickel
This is currently done in the engine code. I adapted AGI, AGOS, DRACI, GROOVIE, LURE, MADE, QUEEN, SAGA, SKY, TINSEL and TOUCHE to send a reset device on startup. The sound output still works fine (started up a game from every engine), so this should hopefully not introduce any regressions. As far as I can tell it seems that SCUMM does send a proper device reset, so I did not touch it. KYRA only sends a proper reset for MT-32 currently. I am not sure about SCI though. This fixes bug #3066826 "SIMON: MIDI notes off when using RTL after SCI". svn-id: r52736
2010-09-06COMMON: Some style fixes.Johannes Schickel
svn-id: r52609
2010-09-04SOUND: Remove semicolonOri Avtalion
svn-id: r52522
2010-09-04FM-TOWNS AUDIO: minor fix in cd audio volume settingFlorian Kagerer
svn-id: r52521
2010-09-02FMTOWNS AUDIO: fixed divide by zero exception from commit 52013Yotam Barnoy
Also removed 1 or 2 float operations. svn-id: r52492
2010-08-24SOUND: New global define AUDIO_REVERSE_STEREO.Andre Heider
This reverses the stereo channels for all sfx streams, meant for hardware devices which expect an inverse order. Use it for the Wii and Gamecube port since it's reversed since day one :P svn-id: r52357
2010-08-22MP3: Fix seeking.Johannes Schickel
Formerly we did not read the first chunk of MP3 data after seeking. This resulted in incorrect sound output in the Freddy Pharkas demo when the sound was compressed with MP3 for example. svn-id: r52272
2010-08-20FM-TOWNS AUDIO: fix possible crashFlorian Kagerer
(This crash might have occured on very slow machines or when using valgrind) svn-id: r52245
2010-08-20KYRA/TOWNS: fix memory leak and some cleanupFlorian Kagerer
svn-id: r52232
2010-08-18SCUMM/FM-TOWNS: start rewriting audio codeFlorian Kagerer
- Start rewriting audio code for FM-TOWNS versions of Loom, Indy3 and Monkey Island 1 using the recently added code in towns_audio.cpp (Zak should work the same way, but I can't test, since I don't own that one). - All sound types (pcm, euphony and cd audio) now support volume and balance control (e.g. try walking into/out of the kitchen and opening/closing the door in the Scumm Bar in Monkey Island 1 or walking into/out of the circus tent). - Pcm sounds now support proper loop start/end and note offsets (e.g. try out the hammer sound in the forge in LOOM for example). - some other minor improvements - The FM-Towns versions of Indy 4 and Monkey Island 2 are not affected. I don't have Monkey Island 2, but I presume that it will work like Indy 4. Adding support for these will be a separate task, since they work quite differently. svn-id: r52198
2010-08-16Merge trunk, from r51777 to r52105Alejandro Marzini
svn-id: r52108
2010-08-11FMTOWNS AUDIO: fix cda volume and balance controlFlorian Kagerer
svn-id: r52013
2010-08-11Use tabs instead of spaces for indentation.Eugene Sandulenko
svn-id: r51997