Commit Graph

1425 Commits

Author SHA1 Message Date
Norbert Lange
bb9f1d6a25 fix some more harmless warnings to make gcc shutup
svn-id: r42985
2009-08-02 00:27:15 +00:00
Norbert Lange
2dd5516954 fixed some constness warnings
svn-id: r42984
2009-08-02 00:15:38 +00:00
Norbert Lange
92d292a3f6 made MdatResource struct private and changed the signatures of functions which load the resources.
svn-id: r42982
2009-08-02 00:03:42 +00:00
Norbert Lange
59395eb6b6 stole formatting for constructors from existing code
svn-id: r42981
2009-08-01 23:14:28 +00:00
Norbert Lange
a28281072d engines/scumm/scumm.cpp: terminate method is pretty redundant - removed
tfmx, player_v4a: refactored Tfmx to allow sharing of resources between 2 instances. Needed changes in player_v4a aswell

svn-id: r42980
2009-08-01 23:02:45 +00:00
Norbert Lange
27ee1eb331 refactored and commented player_va4 a bit
fix waitcommand in Tfmx
try making tfmxplayer compile again

svn-id: r42976
2009-08-01 16:10:00 +00:00
Norbert Lange
1becc072f9 Added the last 2 patterncommands just so I dont have to warn about unimplemented ones
svn-id: r42963
2009-07-31 15:20:02 +00:00
Norbert Lange
fd1fed0b6e process all DMA Events before Macros, for the unlikely chance of making a difference
svn-id: r42962
2009-07-31 14:36:37 +00:00
Norbert Lange
a4ebf2cfa6 using accessmodifiers in Tfmx now and removed/disabled functions that now dont work anymore (the commandline utility cant be compiled anymore as result of this)
added arraysize of external signals and check it before accesses
moved 2 debug-functions into Tfmx.cpp, removed depencies to files in the tfmx folder
moved common code for fade-effects in a seperate method

svn-id: r42961
2009-07-31 14:29:04 +00:00
Johannes Schickel
e779747ca4 Fix typo, which made our "floorf" macro use "floorf" instead of "floor" on systems without "floorf".
svn-id: r42904
2009-07-29 20:03:46 +00:00
Johannes Schickel
17fe3ce29e Oops enabled HACK to prevent multiple OPL instances again.
svn-id: r42849
2009-07-27 18:19:16 +00:00
Norbert Lange
f051e7e9ab use own soundhandle as the ones in Kyra::Sound seem to be used for voices (and might get killed)
svn-id: r42620
2009-07-19 16:11:05 +00:00
Norbert Lange
5952977ed0 use ticks for timing fadeout
svn-id: r42618
2009-07-19 15:36:11 +00:00
Norbert Lange
dbe300fc53 fixed retiring of external Notes
fixed/improved counting DMAs in Paula
added flag for looping songs
rearranged maxtrax.h a bit

svn-id: r42613
2009-07-19 14:02:19 +00:00
Norbert Lange
31b6767666 fixed: intro-music started twice because it was hardcoded in the engine
removed verbose debug-output from maxtrax
 

svn-id: r42604
2009-07-19 01:14:51 +00:00
Norbert Lange
396d6c86aa add support for fadeout
svn-id: r42601
2009-07-19 00:58:01 +00:00
Norbert Lange
22ee23cac7 some more tables included, for tempo and volume values
svn-id: r42600
2009-07-19 00:44:54 +00:00
Norbert Lange
bb5207c13b fixed some initialisation issues
svn-id: r42595
2009-07-18 17:27:31 +00:00
Norbert Lange
9e16e3b3e6 first attempt at enabling soundeffects using an table from the executeable. Doesnt quite work as it should
svn-id: r42575
2009-07-18 00:04:28 +00:00
Norbert Lange
bb64bf008d merge with trunk
svn-id: r42574
2009-07-17 21:23:54 +00:00
Norbert Lange
cfe2928d98 added primitive support for Kyrandia`s Intro Music.
svn-id: r42567
2009-07-17 16:07:57 +00:00
Norbert Lange
c0c25d234e precalculating some more from CalcNote
svn-id: r42556
2009-07-17 01:42:58 +00:00
Norbert Lange
1fa1bdc9f6 avoid some calculations from being done every time in CalcNote
svn-id: r42553
2009-07-17 00:58:26 +00:00
Norbert Lange
30cb4772f2 simplified NoteOn calculations
added playNote command for soundeffects

svn-id: r42544
2009-07-17 00:07:36 +00:00
Max Horn
baabc623f6 Got rid of two more ioFailed uses
svn-id: r42501
2009-07-15 10:04:50 +00:00
Max Horn
6b98c4c4e7 Got rid of some more ioFailed uses (also fixed a potential leak in graphics/font.cpp, and handle eos correctly in the FLAC code)
svn-id: r42488
2009-07-14 18:24:20 +00:00
Norbert Lange
799ab9ac45 removed one more useless variable and turned often used flags into bools
big cleanup of the interrupt-function
changed NoteOn function to pass the results directly instead of saving them in member variables

svn-id: r42466
2009-07-14 02:15:31 +00:00
Norbert Lange
d5e1738ef6 cleaned up NoteOn a bit
fixed NoteOff and removed some useless variables - intro sounds fine now

svn-id: r42461
2009-07-13 22:49:34 +00:00
Norbert Lange
162c6a418d added routine pickvoice to dinamically choose a fitting channel
use similar FP-rounding as the original player

svn-id: r42454
2009-07-13 21:27:58 +00:00
Norbert Lange
100d86ee4d made all structures that are only written when loading song/samples const
fixed volume-handling a bit, still not correct

svn-id: r42343
2009-07-10 16:01:40 +00:00
Norbert Lange
3ae850fe9c added initialisation of channels
svn-id: r42339
2009-07-10 15:04:41 +00:00
Norbert Lange
c5a3ab2af2 changed: period in Paula get set immediately instead of queued
svn-id: r42336
2009-07-10 14:30:37 +00:00
Norbert Lange
f63c15acc1 added timebased effects
fixed passing length of samples to Paula
fixed setting tempo at songstart
fixed setting tempo/flags only if loading a score

svn-id: r42334
2009-07-10 13:38:13 +00:00
Norbert Lange
c16d276f99 fixed some mismatched new[]/delete
fixed 2 bugs in the calcnote function

svn-id: r42304
2009-07-09 16:18:35 +00:00
Filippos Karapetis
b1bd180408 Added proper safeguards for shorten.*, thereby fixing commit 42259
svn-id: r42290
2009-07-09 15:17:45 +00:00
Filippos Karapetis
8a783bdd76 Renamed sound/iff.* to sound/iff_sound.* to fix an issue with the upcoming changes to the MSVC project files (sound/iff.* produces iff.obj, which clashes with iff.obj from graphics/iff.*)
svn-id: r42287
2009-07-09 13:17:46 +00:00
Norbert Lange
84e96bc513 fixed up some constants
svn-id: r42276
2009-07-09 00:19:17 +00:00
Norbert Lange
d25f481421 fixed (and inlined) the "Antilog" function
svn-id: r42274
2009-07-09 00:02:12 +00:00
Norbert Lange
a9d9de7db4 implemented setting note-periods, likely still somewhat wrong.
reversed the log functions which does exactly the inverse as the name implies (its refered as "antilog" in the sources *rollseyes*)

svn-id: r42273
2009-07-08 22:59:50 +00:00
Filippos Karapetis
90422f6bd3 Added guards to only include the Shorten audio code when the SAGA2 code in the SAGA engine is enabled
svn-id: r42259
2009-07-08 07:28:13 +00:00
Norbert Lange
a2e46b76f3 fix identation and replaced the "goto-workaround" with something simpler
svn-id: r42189
2009-07-06 18:51:22 +00:00
Torbjörn Andersson
7c155f8747 GCC thinks it's wrong to goto past variables being initialised (even if they
aren't used afterwards). Fixed that, and some warnings.

svn-id: r42187
2009-07-06 18:15:50 +00:00
Norbert Lange
e9a4800629 Implemented a few commands
Partially implemented queued Events and some related commands

svn-id: r42186
2009-07-06 17:37:54 +00:00
Norbert Lange
c0b1d10ba2 Added tons of members to MaxTrax, songs get fully loaded and stored internally
svn-id: r42096
2009-07-04 16:24:15 +00:00
Norbert Lange
9f8d9de11d added a skeleton for maxtrax modules. Not much happening yet, just reading and displaying a bit of information for maxtrax file
svn-id: r42013
2009-07-01 23:11:56 +00:00
Max Horn
a6b57dc3a9 - Added GCC_PRINTF attribute to several funcs where it makes sense
- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings
- removed duplicate prototypes for some funcs
- fixed some "increases required alignment of target type" warnings

svn-id: r42009
2009-07-01 20:51:04 +00:00
Norbert Lange
7c7ad0d5f1 some Code-Formatting
svn-id: r41994
2009-07-01 15:15:58 +00:00
Norbert Lange
abef70f4e1 Merging in changes from trunk
svn-id: r41989
2009-07-01 14:45:24 +00:00
Norbert Lange
3b94e2488d Added kyra project
removed 1 potentially troublesome assert

svn-id: r41988
2009-07-01 13:25:48 +00:00
Norbert Lange
e3a5da7b7e engines/scumm/*: enabled choosing of the colorpalette, by setting RenderMode to EGA the "old" palette will be used
tfmx/tfmxplayer.cpp: removed some unused stuff
sound/mods/tfmx.cpp: emulating the way MI initialises new macro-programms. (Difference might not be audible at all)

svn-id: r41976
2009-06-30 17:41:24 +00:00
Norbert Lange
cf351dffe6 Modified macro-,patter-,track-step functions to loop aslong they are supposed to execute. (instead of doing that loop "outside").
Added "addBeginn" Effect, not used by MI but simple to implemt.

svn-id: r41910
2009-06-27 07:07:20 +00:00
Norbert Lange
01c3db4d76 Fixed restarting of song (hopefully thouroughly)
replaced all modulos with masks
swapped Paulas stereo output

svn-id: r41856
2009-06-25 08:57:15 +00:00
Norbert Lange
c6ba5279b1 and 1 fix for a regression - always set sampleperiod before starting output
svn-id: r41717
2009-06-20 21:20:39 +00:00
Norbert Lange
8e00db241f fixed portamento-effect.
Added stopping of sfx, seems like Monkey Island is pretty messy when it comes to handling sfx though.
Those two changes fix the "mansion burglary"

svn-id: r41716
2009-06-20 21:04:57 +00:00
Norbert Lange
c0228cfe70 Some more cleanups,
fixed patterncommand 0xFE not working,
added an option "-hack-patternstop" to the commandline tool

svn-id: r41710
2009-06-20 13:49:02 +00:00
Norbert Lange
7ed1061507 Added fade effect, song 17 uses it.
svn-id: r41694
2009-06-19 23:27:10 +00:00
Norbert Lange
115c276d4c modified doSong so you can start a new Song without killing running macros
svn-id: r41693
2009-06-19 22:13:43 +00:00
Norbert Lange
3ef2279c34 moved common initialisation routines into their own functions. doMacro and doSong are now nore readable
svn-id: r41692
2009-06-19 21:42:14 +00:00
Norbert Lange
f94b8565a9 more cleanups, got rid of pendingTrackstep variable
svn-id: r41686
2009-06-19 20:41:32 +00:00
Norbert Lange
4865863f6c Enabled signals and made ScummVM use them (they specify when a song should be stopped)
Cleanups in player_v4a.

svn-id: r41685
2009-06-19 20:17:53 +00:00
Norbert Lange
c7697fb200 added support for SFX by using a seperate Player for them.
svn-id: r41676
2009-06-19 14:30:09 +00:00
Norbert Lange
c3596c184b Ugly hack for fixing color palette
svn-id: r41672
2009-06-19 11:24:06 +00:00
Norbert Lange
c8d05aca48 My last commit fired an assert on some songs, fixed!
svn-id: r41551
2009-06-15 17:09:59 +00:00
Norbert Lange
6720928cb6 Fixed a bug which caused MI Song 3 to loop forever. Made my hack to automatically stop the player after all Patterns are stopped dependend on a variable.
svn-id: r41549
2009-06-15 17:03:49 +00:00
Norbert Lange
f0b74418bc Removed some debugmessages so Linux manages to build again =/
svn-id: r41527
2009-06-14 21:49:33 +00:00
Norbert Lange
1fcd6bff08 player_v4a:
Made musictimer work a bit better, merged the 2 tables into 1

svn-id: r41526
2009-06-14 19:40:24 +00:00
Norbert Lange
62202a9de5 Removed alot of the debug-output
created a class player_v4a to hook TFMX Playback into Scumm. Monkey Island has sound, but no sfx yet

svn-id: r41480
2009-06-12 20:10:27 +00:00
Norbert Lange
14f1960c8f sdl.cpp, main.cpp:
Made modifications dependend on compiletime-variable TFMX_CMDLINE_TOOL.
scumm.vcproj, scummvm-tfmx.sln, scummvm-tfmx.vcproj:
	enabled Scumm-Engine
tfmx.cpp:
	Some small cleanups and corrections

svn-id: r41478
2009-06-12 14:02:21 +00:00
Nicola Mettifogo
36828287ad * Moved the updated IFF code from Parallaction to common/
* Updated Parallaction and SAGA to use the new decoder infrastructure.

svn-id: r41465
2009-06-12 08:51:05 +00:00
Nicola Mettifogo
df1534ffd0 * Replaced the A8SVXDecoder class with a function to return an AudioStream in trunk/sound/.
* Refactored sound code in Parallaction to use the new Audio::make8SVXStream.

svn-id: r41460
2009-06-12 07:18:01 +00:00
Norbert Lange
ef7840994d Finally fixed weird volume effects by fixing "wait on keyup"
Added commandline option to output to flac

svn-id: r41434
2009-06-10 15:51:08 +00:00
Norbert Lange
6cf0e1b9bb Fix looping of Tracks
svn-id: r41427
2009-06-10 13:45:23 +00:00
Norbert Lange
46c90e08f2 Enabled envelope effect, but it still needs some work.
couple more macros implemented, all effects Monkey Island uses should be supported now

svn-id: r41413
2009-06-10 00:49:26 +00:00
Norbert Lange
fc174162f7 tfmx.c,.h: added portamento and envelope-effect (envelope not active yet)
renamed some variables
	made sure the fixed-point multiplications have the same results, even in cornercases
paula.cpp: changed/reverted stuff in Paula again.

svn-id: r41410
2009-06-09 20:54:55 +00:00
Norbert Lange
fe28f1c73c tfmx.cpp:
added "vibrato-effect"
paula.cpp: 
	fixed bug introduced in last commit

svn-id: r41392
2009-06-08 23:12:35 +00:00
Sven Hesse
c8d0335ea5 Spaces for alignment, not tabs :P
svn-id: r41383
2009-06-08 18:48:43 +00:00
Norbert Lange
d3ad5fc663 Initital commit modifying buildsystem and adding a TFMX Module-Player
Changes in Paula.cpp/Paula.h + soundfx.cpp:
Added (easy) queueing of samples by implementing methods that act similar
like writes to the Amiga-Chipset would.
Added counting of DMA-Interrupts, that is how often a sample finished
playing.
Added a base for the interrupt-interval, in most cases this will be the
Cia-clockrate. Derived classes can then set the interval without scaling to
the samplerate

Changes in common/scummsys.h:
Only disable warnings with pragmas for MS Compilers that cant do so
otherwise. Newer MSVC Versions can and should disable warnings in the
Project-Settings.

Files in tfmx:
Some files for debugging. Wont ever be commited back into trunk so those
will contain some messy and hackish code

Added: tfmx.h/tfmx.cpp
Player for TFMX-Modules.

Rest: main.cpp etc.
Modified buildsystem to include new directory, modified main.cpp so it
calls tfmxmain (tfmxplayer.cpp) instead of starting the GUI.

svn-id: r41382
2009-06-08 18:33:20 +00:00
Eugene Sandulenko
cda17beff5 Patch #1365914: "SCUMM: CMS support." Disabled by default. Still plenty to do.
svn-id: r41282
2009-06-06 18:21:49 +00:00
Torbjörn Andersson
0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +00:00
Johannes Schickel
0ba9e14ec9 Double volume of DOSBox' OPL emulator, like DOSBox does too.
svn-id: r41014
2009-05-29 17:59:07 +00:00
Max Horn
e23e1ffcb7 Added Audio::Timestamp::addMsecs method
svn-id: r40957
2009-05-28 10:29:25 +00:00
Johannes Schickel
33de8c9a5f Add include guard.
svn-id: r40932
2009-05-27 00:34:31 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Johannes Schickel
dfb6ca6bae Add support for "getTotalPlayTime" in LinearMemoryStream again.
svn-id: r40840
2009-05-23 23:49:47 +00:00
Sven Hesse
be6fd784b4 Allow for different MOD signatures
svn-id: r40827
2009-05-23 20:38:08 +00:00
Marcus Comstedt
64e75b91b7 Fixed a warning: printf("%f") should take a double, not a float.
svn-id: r40785
2009-05-22 17:15:39 +00:00
Max Horn
65b5d31814 COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
2009-05-19 11:42:14 +00:00
Johannes Schickel
90b4afd41b Add some simple implementation for type 8 data blocks:
- Fix sound effect in LoL demo

svn-id: r40708
2009-05-18 22:11:56 +00:00
Travis Howell
e59e65aa99 Fix crash when any movie is played in the Macintosh version of The Feebles Files, a regression caused by revision 36085.
svn-id: r40679
2009-05-18 10:40:22 +00:00
Johannes Schickel
297a9c6c5f Fix spelling of AdLib (it's AdLib not Adlib).
svn-id: r40533
2009-05-13 21:02:50 +00:00
Johannes Schickel
a866e90342 Make g++ 4.4 happy (warning about out of bounds access).
svn-id: r40526
2009-05-13 17:29:48 +00:00
Johannes Schickel
72686a5a9e Make 'create' return an OPL2 by default.
svn-id: r40503
2009-05-12 19:24:04 +00:00
Johannes Schickel
4190e256bf Cleanup.
svn-id: r40502
2009-05-12 19:03:54 +00:00
Johannes Schickel
4c156d3c78 Fix OPL emulator IDs.
svn-id: r40498
2009-05-12 18:53:44 +00:00
Johannes Schickel
4f0768b909 - Add support for selecting the OPL emulator being used (config entry: "opl_driver")
- Make MAME FM OPL the default emulator again
- Add GUI support for selecting the active OPL emulator
- Update themes

svn-id: r40496
2009-05-12 18:42:44 +00:00
Johannes Schickel
b33bf76c70 For the time being rename opl.h to opl_inc.h and opl.cpp to opl_impl.h, so MSVC does not try to compile the former opl.cpp. (Needs cleanup in the future anyway...)
svn-id: r40365
2009-05-06 20:19:47 +00:00
Johannes Schickel
262363f2b3 Another attempt at fixing MSVC compiliation. (someone test this please ;-)
svn-id: r40364
2009-05-06 20:05:58 +00:00
Max Horn
5dc234a4e2 Patch #2758080: GSOC09: XMIDI parser switch cases
svn-id: r40361
2009-05-06 14:22:13 +00:00
Johannes Schickel
47e426f271 Don't include headers inside namespace scopes. This should fix compilation on NDS at least.
svn-id: r40360
2009-05-06 13:57:05 +00:00
Paul Gilbert
c02aad90b2 Added a reference to scummsys.h to fix compilation errors
svn-id: r40351
2009-05-06 10:28:07 +00:00
Johannes Schickel
c35d6db60c Fix feedback/algorithm register write bugs in Dual OPL2 mode.
svn-id: r40342
2009-05-06 00:40:37 +00:00
Johannes Schickel
25ca710eae Really fix Dual OPL2 initialization.
svn-id: r40341
2009-05-05 23:40:54 +00:00
Johannes Schickel
6f840550b9 Dual OPL2 initialization bugfix.
svn-id: r40339
2009-05-05 22:34:04 +00:00
Johannes Schickel
625f41c135 Cleanup:
- Rename OPL_DOSBox to OPL, since it's inside a seperate namespace anyway
- Reanme MAME_OPL to OPL, since it's inside a seperate namespace anyway

svn-id: r40338
2009-05-05 22:18:26 +00:00
Johannes Schickel
5cc44292a2 - Remove default parameter from OPL::create
- Add some note that no one should use the legacy API for new code

svn-id: r40337
2009-05-05 22:14:34 +00:00
Johannes Schickel
16bd319684 At request by DrMcCoy enable DOSBox OPL2 by default whenever DISABLE_DOSBOX_OPL isn't defined.
svn-id: r40335
2009-05-05 22:06:54 +00:00
Johannes Schickel
08581ed698 AdLib emulator changes part2:
- Add new OPL emulator API (and legacy access API) in sound/fmopl.h
- Add DOSBox OPL emulator.
- Update MAME OPL emulator for the API changes.

svn-id: r40334
2009-05-05 21:47:12 +00:00
Johannes Schickel
d9e0499a36 AdLib emulator changes part1 (breaks compilation :-/):
- Add new directory sound/softsynth/opl
- Move sound/fmopl to sound/softsynth/opl/mame

svn-id: r40333
2009-05-05 21:40:50 +00:00
Johannes Schickel
e7506eb99e Rename adlib_read to adlib_get_reg_value, since it return the (cached) register value, which can not be achieved by read AdLib read.
svn-id: r40084
2009-04-22 20:51:33 +00:00
Johannes Schickel
0638a8a27a Renamed some variables and parameters to match their real use.
svn-id: r40083
2009-04-22 20:18:12 +00:00
Fabio Battaglia
9c5cf77287 vag: delete stream after use
svn-id: r39767
2009-03-30 21:04:19 +00:00
Fabio Battaglia
0c1bae6b15 Rate selection is now possible for VAG audio decoder, also decoder doesn't die with incomplete/corrupted files
svn-id: r39764
2009-03-30 13:42:28 +00:00
Willem Jan Palenstijn
07d3ae07ac Fix regression from r39702: look up music_driver in config
svn-id: r39707
2009-03-27 13:49:11 +00:00
Max Horn
e5e1615280 MidiDriver cleanup: findMusicDriver now returns a pointer (makes it possible to distinguish 'no match found' from other results); updated parseMusicDriver accordingly; some methods now return MidiDriverType instead of int
svn-id: r39702
2009-03-26 13:52:43 +00:00
Max Horn
fb364ee281 Changed doxygen comments in sound/midiparser.h to match with our usual formatting conventions
svn-id: r39700
2009-03-26 13:11:11 +00:00
Matthew Hoops
1817dd9bc5 Do not use TO_LE_16 for the IMA ADPCM decoder as it breaks sound on BE systems.
svn-id: r39465
2009-03-17 02:35:43 +00:00
Fabio Battaglia
647276b885 Moving sword1/vag.* into sound/, to be used by Broken Sword 2 PSX
svn-id: r39416
2009-03-15 10:25:22 +00:00
Andre Heider
c72cba069b Use pow() instead of powf() when compiling with MinGW32 to work around a libstdc++ cross-compile bug, see #2673362
svn-id: r39309
2009-03-10 19:32:38 +00:00
Max Horn
77b40251ca Added some more Audio::Timestamp unit tests
svn-id: r39262
2009-03-09 16:15:25 +00:00
Max Horn
7cd40da1be Added some comments to Audio::Timestamp
svn-id: r39257
2009-03-09 03:45:40 +00:00
Eugene Sandulenko
ef1e3ebc3c Patch #2658710: "Add comments to specify which engines use which decoders"
svn-id: r39236
2009-03-08 15:57:59 +00:00
Max Horn
673a21b249 Added Audio::Timestamp class, based on SCI's sfx_timestamp_t; also provide a unit test for it, based on the old (and very outdated) timetest.cpp. To be used by Audio::Mixer one day...
svn-id: r39112
2009-03-04 06:58:28 +00:00
Willem Jan Palenstijn
4fbda3b8b0 Fix typo.
svn-id: r38940
2009-02-27 23:38:37 +00:00
Johannes Schickel
5417f6bacb - Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated).
- Update all client code which relied on OSystem::clearScreen so far.

svn-id: r38304
2009-02-15 21:20:21 +00:00
Eugene Sandulenko
0a532dfc30 Add interleave parameter to FMOPL as needed by SCI engine
svn-id: r38211
2009-02-15 10:07:50 +00:00
Travis Howell
4131d3d07f Fix sound noise regression in CD32 version of Simon the Sorcerer 1.
svn-id: r36236
2009-02-07 05:05:14 +00:00
Travis Howell
8c84ec82fc Fix sound noise regression in CD32 version of Simon the Sorcerer 1.
svn-id: r36235
2009-02-07 04:49:10 +00:00
Travis Howell
934a59941d Fix sound noise regression in CD32 version of Simon the Sorcerer 1.
svn-id: r36234
2009-02-07 04:40:39 +00:00
Joost Peters
e8e3397a3c make readBufferTinsel*() output in native endianness, rather than little endian.
svn-id: r36215
2009-02-04 16:40:44 +00:00
Filippos Karapetis
dd39274391 Fixed regression in the ADPCM decoder. DW2 music should be played correctly again
svn-id: r36195
2009-02-01 22:21:57 +00:00
Filippos Karapetis
71b4f84c46 Fixed incorrect usage of a boolean (boolean variables are not supposed to be used as indexes to arrays...)
svn-id: r36194
2009-02-01 22:06:43 +00:00
Max Horn
341bc64aaf do not include common/debug.h from common/util.h
svn-id: r36143
2009-01-30 05:25:17 +00:00
Matthew Hoops
34e76afb16 Remove leftover comments.
svn-id: r36098
2009-01-27 11:49:53 +00:00
Matthew Hoops
13552cce55 Add support for looping ADPCM sounds. I'm also adding decoding of the "standard" IMA ADPCM code (aka Intel DVI ADPCM). This is from Mohawk. ;)
svn-id: r36097
2009-01-27 11:46:54 +00:00
Travis Howell
f9d0d2a44a Add/Update comments.
svn-id: r36094
2009-01-27 03:26:51 +00:00
Travis Howell
f002e06fe0 Add looping support to makeVOCStream().
svn-id: r36093
2009-01-27 03:21:05 +00:00
Travis Howell
82a7414197 Fix regression, the original stream shouldn't be deleted, unless disposeAfterUse is set.
svn-id: r36092
2009-01-27 03:13:13 +00:00
Travis Howell
bce799366f Fix regression, the original stream shouldn't be deleted.
svn-id: r36091
2009-01-27 03:10:56 +00:00
Max Horn
8e447d1ee9 Extended makeWAVStream by a 'disposeAfterUse' param; changed makeWAVStream to directly return the AudioStream created by makeADPCMStream
svn-id: r36085
2009-01-27 00:42:43 +00:00
Willem Jan Palenstijn
a8ae95cc10 fixing #2531282: don't fall back to a real audio CD when playing enhanced midi tracks
svn-id: r36030
2009-01-24 01:29:52 +00:00
Willem Jan Palenstijn
de341291aa remove 'HACK': don't use _cd.playing to indicate emulation
svn-id: r36029
2009-01-24 01:23:04 +00:00
Torbjörn Andersson
9e2f9b338f Removed a (hopefully) obsolete FIXME comment.
svn-id: r35690
2009-01-03 00:08:46 +00:00
Torbjörn Andersson
890808fa4b Rewrote to get rid of "condition is always false" warning.
svn-id: r35639
2008-12-31 15:23:08 +00:00
Filippos Karapetis
c7a2121add Added possible FIXMEs
svn-id: r35637
2008-12-31 15:09:32 +00:00
Filippos Karapetis
a8a4ba3a98 Prevent erroneous access of negative array indices
svn-id: r35633
2008-12-31 14:49:53 +00:00
Max Horn
6a2778cccc Fixed warning
svn-id: r35630
2008-12-31 13:59:00 +00:00
Torbjörn Andersson
6f24756a15 Fixed GCC warning.
svn-id: r35628
2008-12-31 13:05:26 +00:00
Filippos Karapetis
136390a540 Commented out part of the code that corrupts the heap for me
svn-id: r35627
2008-12-31 13:00:09 +00:00
Filippos Karapetis
cae6bdac08 Preliminary Shorten audio support for SAGA 2 games. It's still very wrong and needs further work, but it's a start
svn-id: r35626
2008-12-31 11:46:21 +00:00
Jordi Vilalta Prat
b1999a2a16 Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
2008-12-22 11:22:15 +00:00
Jordi Vilalta Prat
c4f33dfb86 Custom percussion instruments for the AdLib MIDI driver (Slightly modified patch #2357165)
svn-id: r35439
2008-12-19 16:21:27 +00:00
Johannes Schickel
5fa38662e2 Whoops. Fix accidently wrong evaluation statement.
svn-id: r35337
2008-12-13 12:56:53 +00:00
Johannes Schickel
223a57a563 Cleanup.
svn-id: r35336
2008-12-13 12:45:53 +00:00
Johannes Schickel
9555ea8bc9 Fix for bug #2423449 "AGOS: Music Looping broken (regression)".
svn-id: r35335
2008-12-13 12:31:39 +00:00
Sven Hesse
052e83cd24 Okay, removing my implementation of AppandableAudioStream::getTotalPlayTime (I've apparently misunderstood its intent) and using Mixer::getSoundElapsedTime() instead
svn-id: r35317
2008-12-12 17:12:05 +00:00
Max Horn
59dc18d9ef cleanup
svn-id: r35214
2008-12-03 10:59:06 +00:00
Sven Hesse
30b6294d38 Apparently, constraining the number of mixing samples to be divisible by 4 is too strict, so I'm changing readBufferTinsel6() around a bit to allow for any number of samples (at the cost of adding 2 variables and a bit complexity ;))
svn-id: r35209
2008-12-02 21:58:48 +00:00
Johannes Schickel
2ebe04ac3e - Extended MidiDriver::sysEx to allow 264 byte sysEx messages
- Updated all drivers to allow 264+2 byte sysEx messages
- Implemented sysEx processing for MT-32 for Kyra1 and HoF. MT-32 should now be working properly.

svn-id: r35180
2008-11-30 04:42:30 +00:00
Johannes Schickel
893a79b01d Initial version of proper MIDI support for KYRA.
svn-id: r35174
2008-11-30 01:53:32 +00:00
Robin Watts
8f3b2e9b4d Remove warnings from NDS build.
svn-id: r35172
2008-11-29 18:01:16 +00:00
Max Horn
dd14e46698 Fixed a warning on the DS build, added some clarifying comments, reformatted the okiStepSize and imaStepTable tables (the former really is a subtable of the latter)
svn-id: r35106
2008-11-17 11:10:34 +00:00
Max Horn
1067a2ec77 Factoring shared code of template classes into a shared base class saves another 4-7kb code size
svn-id: r35104
2008-11-17 11:09:23 +00:00
Max Horn
be0f709be9 Saving 32kb DATA size
svn-id: r35103
2008-11-17 11:07:04 +00:00
Sven Hesse
b1fa413ed4 Implementing getTotalPlayTime() for AppendableMemoryStream
svn-id: r35098
2008-11-16 20:34:31 +00:00
Sven Hesse
24131d781a Added support for the ADPCM used in Discworld 2
svn-id: r35089
2008-11-15 19:40:01 +00:00
Johannes Schickel
cd5a85036d Fixed compiling of MT32 emulator with -O2 and -Werror.
svn-id: r35040
2008-11-13 11:41:25 +00:00
Max Horn
0c501d303f Verify sanity of LinearMemoryStream params in the factory function instead of the constructor (which is replicated for each instantiation of the LinearMemoryStream template class) -> saves some bytes
svn-id: r35014
2008-11-12 12:25:26 +00:00
Torbjörn Andersson
2bbc958373 Made getSoundElapseTime() work better when the sound has been paused. A new
variable, _pauseTime, keeps track of how long the sound has been paused since the
last mixer time stamp.

svn-id: r34955
2008-11-09 13:28:59 +00:00
Torbjörn Andersson
f71e1077e0 Fixed compile error.
svn-id: r34907
2008-11-05 21:10:12 +00:00
Max Horn
f32be87633 Turned enum PluginError into Common::Error, which in the future is to be used in more places. Help with this is highly welcome
svn-id: r34906
2008-11-05 17:24:56 +00:00
Max Horn
655ce26b3f Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
svn-id: r34514
2008-09-13 16:51:46 +00:00
Max Horn
0378201ec7 MT32 emu: eof -> eos
svn-id: r34390
2008-09-06 20:36:47 +00:00
Nicola Mettifogo
12106a1599 Removed useless dependencies from common/file.h in common code. When complete removal was not possibile, dependency has been pushed to the cpp files from the headers.
svn-id: r34343
2008-09-05 11:41:39 +00:00
Max Horn
5c72c2fca7 Removed unused readLine code from the MT-32 emu
svn-id: r34314
2008-09-03 17:46:42 +00:00
Max Horn
55a05dc0f4 Some cleanup by peres
svn-id: r34308
2008-09-03 15:22:19 +00:00
Filippos Karapetis
2d36c08d9f Fix for MSVC warning about ambiguous usage of MIN
svn-id: r34299
2008-09-03 10:10:45 +00:00
Max Horn
8032491381 Fix (?) Solaris detection in some workaround code in the MT-32 emulator
svn-id: r34216
2008-08-30 22:26:16 +00:00
Max Horn
31320430de Partial commit of patch #2012839: Atari Patch for adding Native MIDI and Fix Compile
svn-id: r34194
2008-08-27 18:52:21 +00:00
Torbjörn Andersson
d08c3ba66b Committed my patch #2040074 ("XMIDI callback control events"). At the moment, I'm
not aware of any game that actually uses this XMIDI feature, so its primary
function right now is to silence lots of warnings while running the DOS version
of Simon the Sorcerer 2.

svn-id: r33763
2008-08-10 17:59:42 +00:00
Max Horn
fb122a08eb Print a warning if unsupported XMIDI controllers are used
svn-id: r33495
2008-08-01 16:31:40 +00:00
Max Horn
0be985ce83 Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing
svn-id: r33412
2008-07-29 16:09:10 +00:00
Max Horn
d24e770605 cleanup / code formatting
svn-id: r32973
2008-07-09 10:42:47 +00:00
Torbjörn Andersson
c2c4963e96 On reading some more about XMIDI, I believe the NEXT and BREAK variants of the
controller are mutually exclusive cases, i.e. a BREAK simply means forget about
the innermost loop, and continue as if nothing had happened.

svn-id: r32966
2008-07-08 16:25:39 +00:00
Torbjörn Andersson
ae026486ef Fixed silly error. The NEXT_BREAK event should, of course, jump to the event
*after* the FOR_LOOP event. Apart from simplifying things, this should allow
limited number of repeats to work.

svn-id: r32931
2008-07-06 19:25:32 +00:00
Torbjörn Andersson
1cc9af6b10 Implemented Good Enough(TM) XMIDI looping. This is used by Kyrandia 2 (the
loop hack is no longer needed, and has been removed), and will be used by
Discworld.

svn-id: r32930
2008-07-06 18:37:52 +00:00
Max Horn
c45d632f3b Patch ##1956946 (Audio::Mixer internal API revision) with some tweaks
svn-id: r32828
2008-06-28 15:28:29 +00:00
Johannes Schickel
d2ce912989 Fixed getTotalPlayTime implementation for MP3InputStream.
svn-id: r32755
2008-06-22 13:26:22 +00:00
Jordi Vilalta Prat
8eac356946 Added initial interface to list music devices and their types
svn-id: r32695
2008-06-13 16:04:43 +00:00
Jordi Vilalta Prat
177993b145 Renamed MIDI plugins to Music plugins
svn-id: r32693
2008-06-13 14:30:47 +00:00
Max Horn
33fd755a0e use kMaxChannelVolume instead of hardcoding 255
svn-id: r32666
2008-06-11 11:29:34 +00:00
Max Horn
63cb8227d3 Avoid some warnings when compiling in non-DEBUG mode (i.e. with assert() disabled)
svn-id: r32435
2008-05-31 19:35:37 +00:00
Johannes Schickel
9d13d90d4f - Cleanup code for FlacInputStream::getTotalPlayTime
- Reset input stream position in MP3InputStream after calculating total play time

svn-id: r32323
2008-05-27 13:28:47 +00:00
Johannes Schickel
e82295daa3 Implemented getTotalPlayTime for MP3InputStream.
svn-id: r32322
2008-05-27 13:15:51 +00:00
Jordi Vilalta Prat
2862a30dac Fixed some code formatting thanks to LordHoto
svn-id: r32275
2008-05-26 00:28:48 +00:00
Johannes Schickel
ff573ec1e2 Instead of simply returning 0 for "infinite" looping in FLAC and OGG/Vorbis streams in getTotalPlayTime return kUnknownPlayTime.
svn-id: r32265
2008-05-24 23:58:22 +00:00
Johannes Schickel
cff8ccccc9 Take numLoops in account for getTotalPlayTime in FLAC and OGG/Vorbis streams.
svn-id: r32264
2008-05-24 23:49:15 +00:00
Johannes Schickel
aba5082d19 Implementation of AudioStream::getTotalPlayTime for FLAC and OGG/Vorbis streams.
svn-id: r32263
2008-05-24 23:39:13 +00:00
Johannes Schickel
af7bc93c46 Made AudioStream::getTotalPlayTime virtual (Ooops :-)
svn-id: r32261
2008-05-24 22:59:20 +00:00
Max Horn
68fd8b74b0 Patch #1970427: AudioStream play length querying
svn-id: r32258
2008-05-24 22:41:15 +00:00
Max Horn
182ae52a98 typo
svn-id: r32245
2008-05-24 14:44:22 +00:00
Max Horn
9f12f0c450 Move makeAdlibOPL inside the #include guards
svn-id: r32193
2008-05-20 15:36:09 +00:00
Jordi Vilalta Prat
eb6c809d2b - Added more information (ID and capabilities) to the MIDI drivers
- Added the MidiPlugin interface to the remaining MIDI drivers
- Added an initial MidiManager to handle the MIDI plugins (just static plugins by now)

svn-id: r32117
2008-05-14 14:56:29 +00:00
Jordi Vilalta Prat
d942fd42bb Moved midiplugin.h to sound/ since it will be used for more than just the native MIDI drivers.
svn-id: r32097
2008-05-14 05:47:29 +00:00
Jordi Vilalta Prat
02fbdd1f05 Removed the remaining traces of the MorphOS ETUDE driver.
svn-id: r31994
2008-05-11 02:37:41 +00:00
Jordi Vilalta Prat
d696ed6ea2 Added the MidiPlugin interface (first step towards the MIDI plugins)
svn-id: r31993
2008-05-11 02:10:05 +00:00
Johannes Schickel
600ab40bca Changed all delete [] usages to delete[].
svn-id: r31927
2008-05-07 14:31:45 +00:00
Jordi Vilalta Prat
38a8aa516e Allow static and dynamic plugins to be used at the same time
svn-id: r31888
2008-05-06 03:00:26 +00:00
Torbjörn Andersson
15b4b62fbb Fixed comments.
svn-id: r31625
2008-04-20 19:02:34 +00:00
Max Horn
372d30c815 typo
svn-id: r31500
2008-04-14 12:08:00 +00:00
Travis Howell
27a39e7f12 Add cyx patch for bug #1915657 - ELVIRA1: Amiga crashes (paula.h:108).
svn-id: r31372
2008-04-03 23:41:24 +00:00
Max Horn
b0c6a12c81 Modified Patch #1925352: Memory leak fixes
svn-id: r31244
2008-03-26 19:29:33 +00:00
Max Horn
05b159609b Removed remaining traces of the dead MorphOS backend, which itself was removed about one year ago
svn-id: r31114
2008-03-12 18:42:47 +00:00
Max Horn
eb9f0dcbf8 Completed fix for bug #1523129 (SOLARIS: solaris 8 build broken)
svn-id: r30972
2008-02-26 17:03:10 +00:00
Robin Watts
2579136dd2 Another tiny speed tweak for fmopl.cpp; replace a division with a shift.
svn-id: r30968
2008-02-26 00:29:40 +00:00
Johannes Schickel
622076e15b Fixed warning on systems with unsiged char as default char type.
svn-id: r30953
2008-02-24 14:38:19 +00:00
Jordi Vilalta Prat
672a508bdd Added CAMD MIDI driver for AmigaOS4
svn-id: r30910
2008-02-20 17:07:58 +00:00
Robin Watts
890bca8f7e Tweaks to fmopl; same net effect overall, just faster.
Eliminate divisions, floating point, and mod operation from inner synth loop.

svn-id: r30896
2008-02-17 16:12:54 +00:00
Lars Persson
c098453ea1 Added template param to CLIP since implicit cast is not working 100% on all platforms. Target type is int32 so used that.
svn-id: r30760
2008-02-03 12:34:20 +00:00
Filippos Karapetis
97eb13c22f Corrected an off-by-one error introduced with the latest cleanups
svn-id: r30743
2008-02-02 18:31:07 +00:00
Filippos Karapetis
33a534b76c Cleanup
svn-id: r30738
2008-02-02 12:27:16 +00:00
Jordi Vilalta Prat
d6c34bdc4b Fixed the spaces before tabs.
svn-id: r30667
2008-01-28 00:14:17 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
2c8910ade8 This 'if' should not be necessary anymore
svn-id: r30254
2008-01-05 20:40:27 +00:00
Max Horn
89da803724 Fix for bug #1795755: LOOM/FLAC: Pauses (temporary lockups) after speech
svn-id: r30252
2008-01-05 20:38:16 +00:00
Torbjörn Andersson
2147f59e36 Converted some spaces to tabs.
svn-id: r30225
2008-01-05 08:17:39 +00:00
Oystein Eftevaag
1c88ab2c47 Enabling the SMUSH/sound ARM optimizations for the iPhone. Converting any numerical expressions in the asm to absolute values (moving the expression to comments) since the iPhone assembler can't handle them, and prepending an underscore to the exported symbols (with some preprocessor magic similar to the hq3x asm for handle ports where it's not needed)
svn-id: r30093
2007-12-31 01:50:18 +00:00
Neil Millstone
df33fdd79e Fix memory leak in audiostream (I think)
svn-id: r29940
2007-12-21 18:28:59 +00:00
Max Horn
00ce6ac98d Patch #1853322: Patch for Atari ST/FreeMint
svn-id: r29906
2007-12-19 14:03:53 +00:00
Sven Hesse
79e22d29f4 Adding a method to check whether a note currently playing
svn-id: r29856
2007-12-13 23:27:36 +00:00
Max Horn
09028cc7aa Fixed typos
svn-id: r29793
2007-12-09 14:53:15 +00:00
Chris Apers
55c07ca845 Use the same define as in C++ code
svn-id: r29781
2007-12-09 11:12:42 +00:00
Gregory Montoir
b7f9d4797d doc
svn-id: r29759
2007-12-08 09:20:18 +00:00
Gregory Montoir
65779599de reverted commit #29736 with a proper fix (I think) to fmopl code
svn-id: r29741
2007-12-06 21:11:26 +00:00
Filippos Karapetis
d4831be986 Slight cleanup and commenting of the ADPCM decoder
svn-id: r29682
2007-12-01 16:31:10 +00:00
Max Horn
2a339d8ea3 Don't use M_PI, rather use our very own PI constant
svn-id: r29567
2007-11-19 12:44:54 +00:00
Filippos Karapetis
24d1eff8e4 Define M_PI if it's not defined (seems not to be defined under MSVC)
svn-id: r29566
2007-11-19 00:45:58 +00:00
Sven Hesse
b1f6be7baa Moved Gob's square wave generator to sound/softsynth/pcspk.h
svn-id: r29564
2007-11-18 23:35:09 +00:00
Max Horn
7d984d1a67 factory functions should be documented at least roughly...
svn-id: r29560
2007-11-18 21:13:08 +00:00
Gregory Montoir
c76c6e2256 added rjp1 module specific pattern playback
svn-id: r29559
2007-11-18 20:27:31 +00:00
Gregory Montoir
c0cebe93bb skip silence VOC block (used in Igor)
svn-id: r29551
2007-11-18 06:24:40 +00:00
Max Horn
c8ce5b1865 Changed Audio::makeADPCMStream so that the stream passed to it can automatically be disposed
svn-id: r29517
2007-11-16 10:05:18 +00:00
Travis Howell
3cb8d404b5 Fix loading common sample data for modules in Waxworks.
svn-id: r29511
2007-11-16 03:37:15 +00:00
Max Horn
02b929e06e Patch #1816901: MT-32 emu: Low volume
svn-id: r29378
2007-11-02 16:10:53 +00:00
Max Horn
8eb73f2694 Patch #1815526: Add TiMidity++ MIDI server support
svn-id: r29377
2007-11-02 16:01:52 +00:00
Johannes Schickel
1bf448ac37 Add DMedia MIDI driver just to the list of MIDI drivers if on IRIX, since at least the code for it is just build on IRIX and not on every UNIX system.
svn-id: r29316
2007-10-29 21:41:50 +00:00
Max Horn
4630f49f48 Patch #1800085: small 'unknown control change byte 32' patch
svn-id: r29289
2007-10-28 13:55:16 +00:00
Max Horn
9998620379 Added support for more ROM versions, see FR #1820331
svn-id: r29269
2007-10-27 18:51:37 +00:00
Nicola Mettifogo
485b70b2b0 * Changed IFF/8SVX audio to use signed data (int8), and modified Parallaction accordingly.
* Implemented proper beep in Parallaction for Amiga.

svn-id: r29226
2007-10-15 20:20:50 +00:00
Max Horn
5a07c3c552 Patch #1804801: DMedia MIDI driver for IRIX
svn-id: r29142
2007-09-30 12:12:22 +00:00
Gregory Montoir
28c1f3fbb3 removed unused function, simplified handlePattern
svn-id: r29139
2007-09-30 11:16:25 +00:00
Robin Watts
9262b47dd2 Add PALMOS sections to ARM rate conversion sound code to preserve r10
for calls back into C/C++. 

svn-id: r29117
2007-09-28 09:38:08 +00:00
Johannes Schickel
88da0d4d00 Silence some warnings.
svn-id: r29086
2007-09-24 17:14:56 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
664446f5d8 Fixed some more warnings
svn-id: r28948
2007-09-18 20:48:42 +00:00
Max Horn
4cc9d17c34 Adding various FIXME comments to bogus (non-self-explanatory) existing FIXME comments; and some other related cleanup
svn-id: r28890
2007-09-11 09:20:39 +00:00
Chris Apers
500481c4ec Cleanup: remove obsolete code (PalmOS 68K version not supported anymore)
svn-id: r28803
2007-09-01 19:13:04 +00:00
Filippos Karapetis
99a5545702 Reverted commit #28696, as the cause for it was different and has been fixed with commit #28697
svn-id: r28699
2007-08-22 22:43:47 +00:00
Filippos Karapetis
532c8c4230 Detach the player callback handler when the music is being unloaded. Fixes bug #1734416 - "AUDIO: ITE: Random crashes with the MIDI parser"
svn-id: r28696
2007-08-22 12:20:21 +00:00
Kari Salminen
ef1fca15f0 Removed extra commas from lookup-tables' ends.
svn-id: r28676
2007-08-20 10:43:07 +00:00
Travis Howell
d764dca90f Ooops, fix typo in last commit.
svn-id: r28257
2007-07-28 07:56:58 +00:00
Travis Howell
bb2796c57a Add support for multi-tune Protracker modules used in the Amiga version of Waxworks.
svn-id: r28256
2007-07-28 07:52:24 +00:00
Max Horn
19ad20c201 Don't be so strict about un-pausing sounds which are not paused currently
svn-id: r28163
2007-07-22 11:54:35 +00:00
Max Horn
11b2806741 Removed the old (obsolete) audiostream factories for MP3/Vorbis/FLAC data which took a File pointer and a size (these were only implemented as brain-dead wrapper around the newer factory methods anyway)
svn-id: r28110
2007-07-15 18:29:05 +00:00
Max Horn
19bb631e94 Fix looping effect (at least DrMcCoy says it fixes it somehow, and I trust him in that :)
svn-id: r27835
2007-07-01 19:59:42 +00:00
Max Horn
e1bcd70436 Re-added __attribute__(packed)
svn-id: r27830
2007-07-01 18:18:43 +00:00
Max Horn
f7041f94ce Once again rewrite Paula code (addings lots of comments, doing proper wrap around at the ends of samples and some other tweaks). More to follow
svn-id: r27828
2007-07-01 16:31:26 +00:00
Max Horn
e2ad271bd8 Removing non-ASCII chars from source code
svn-id: r27818
2007-07-01 12:47:07 +00:00
Max Horn
93b1a53c72 Changed semantics of Mixer::pause*() methods -- if you pause n times, you have to unpause n times before the sound resumes (this means pauseAll works correct in engines which selectively pause/resume single sounds)
svn-id: r27798
2007-06-30 21:02:58 +00:00
Max Horn
6290f0b20a Tabs -> spaces
svn-id: r27790
2007-06-30 13:40:52 +00:00
Robin Watts
b9c8c6c868 Update the ARM version of the rate conversion code, in line with Fingolfins
optimisatins of the C version last night. Saves about 5 cycles per sample.

svn-id: r27789
2007-06-30 12:54:07 +00:00
Max Horn
3535eaec20 Tweak LinearRateConverter code so that opos is in the range [0,1[ instead of [-1,0[ when entering the interpolation loop (this allows us to get rid of '& FRAC_LO_MASK')
svn-id: r27780
2007-06-30 00:03:32 +00:00
Max Horn
b62ef0496c Added small explanatory comment
svn-id: r27779
2007-06-29 23:33:16 +00:00
Max Horn
f058edf860 Switched Paula (Amiga MOD) code to use fixed point math instead of doubles (caveat: this only works for samples < 32k right now; if this ever turns out to be a problem, I can fix it, though)
svn-id: r27767
2007-06-28 22:21:32 +00:00
Max Horn
1a3724b59b cleanup
svn-id: r27765
2007-06-28 20:18:56 +00:00
Max Horn
5b75e49182 Fix a bad, bad out-of-bounds write in the Protracker code
svn-id: r27764
2007-06-28 20:15:10 +00:00
Max Horn
21aa642e7a Some optimizations to the Paula sound chip emu code (removing common sub expressions and stuff)
svn-id: r27761
2007-06-28 19:47:47 +00:00
Max Horn
6dfa44dbd5 Moved some fixed point code to its own header file; simplified the LinearRateConverter code a bit; corrected some comments; split makeRateConverter into two funcs (one of them being a template func), for easier maintenance
svn-id: r27760
2007-06-28 19:35:48 +00:00
Max Horn
2249db2c6d Started to refactor the Paula / Amiga MOD code: Made some stuff in class Paula private and added accessor APIs instead
svn-id: r27759
2007-06-28 17:42:57 +00:00
Max Horn
c69fe68112 Minor cleanup
svn-id: r27758
2007-06-28 16:39:04 +00:00
Robin Watts
b53cebe62d Fix for a stupid typo in yesterdays sound fill tweak.
This fixes bug 1743016. Thanks to erictorbjorn and md5 for pointing me at it.

svn-id: r27718
2007-06-25 21:09:08 +00:00
Eugene Sandulenko
22f06325d4 Patch #1742574: "GUI: Unify "Default" options text"
svn-id: r27698
2007-06-25 07:01:13 +00:00
Robin Watts
997253fe6a Small tweak to the readBuffer routines of sound/audiostream.cpp; by counting a
variable down we save 1 cycle per sample copied (at least) on most
architectures.

svn-id: r27693
2007-06-24 17:42:36 +00:00
Max Horn
a106f01d2f Remove useless startPlay override from ProtrackerStream
svn-id: r27692
2007-06-24 12:35:50 +00:00
Max Horn
61af086e8e Mod code cleanup
svn-id: r27690
2007-06-24 11:40:00 +00:00
Max Horn
e01c939229 cleanup
svn-id: r27501
2007-06-16 23:50:57 +00:00
Max Horn
1b28bd4644 cleanup
svn-id: r27500
2007-06-16 23:41:37 +00:00
Max Horn
a435757699 Avoid using the 'st_sample_t out[2]' arrays inside tight loops, as some compilers are bad at optimizing array access due to pointer aliasing
svn-id: r27499
2007-06-16 23:07:25 +00:00
Max Horn
b7412d21fd Tiny changes to help optimizer resolve array aliasing
svn-id: r27471
2007-06-16 17:12:08 +00:00
Max Horn
e44b518c23 Patch #1717419: Optimisation for sound rate conversion code
svn-id: r27470
2007-06-16 17:09:54 +00:00
Eugene Sandulenko
2f127122b3 Fix legal header for new files.
svn-id: r27468
2007-06-16 16:52:52 +00:00
Max Horn
6498d669d0 Patch #1721826: ARM asm versions of sound rate conversion/mixing code
svn-id: r27467
2007-06-16 16:46:13 +00:00
Max Horn
0d77f50d6b Removed dead code
svn-id: r27066
2007-06-03 15:56:14 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Johannes Schickel
86104e0bf0 Reverted r26922.
svn-id: r26967
2007-05-27 11:40:03 +00:00
Johannes Schickel
8ff17142c5 Simpilified Singleton implementation and usage.
svn-id: r26922
2007-05-22 14:17:44 +00:00
Gregory Montoir
e0159324cc some fixes for the music in Amiga OS Demo
svn-id: r26886
2007-05-20 11:50:06 +00:00
Gregory Montoir
620c8a5647 added Amiga SoundFx module player code, used by Amiga versions of the following Delphine Software games : Future Wars, Operation Stealth, Cruise for a Corpse and Another World
svn-id: r26869
2007-05-19 12:06:51 +00:00
Nicola Mettifogo
008042ac25 Implemented a IFF (Interchange File Format) parser and added subclasses to parse graphics (ILBM, PBM) and audio (8SVX), thus replacing old decoding routines. SAGA and Parallaction have been adjusted to work with the new code.
svn-id: r26719
2007-05-01 15:39:40 +00:00
Max Horn
4958b58622 Added a doxygen comment to makeProtrackerStream -- somebody who knows the code behind this please complete/enhance this
svn-id: r26616
2007-04-27 19:50:45 +00:00
Max Horn
d4660cce55 Removing more semicola
svn-id: r26597
2007-04-26 19:08:53 +00:00