1191 Commits

Author SHA1 Message Date
Norbert Lange
4e7b156e10 fix a bug that prevented gcc from compiling
correctly added my palette patch (it showed up in the rev-changes but dint got applied fully to the svn tree?)

svn-id: r43116
2009-08-08 09:49:28 +00:00
Norbert Lange
6dbeddab25 slighty changed how voices get disabled after their sample played
svn-id: r43111
2009-08-08 09:23:09 +00:00
Norbert Lange
baeed11aae added missing stuff for modulation and microtonal effects (several bugs in original player - dont think this was ever used)
added compiletime macros for modulation and microtonal
moved common initialization stuff into a new resetPlayer() method
reworked stopEvents, made them simpler and inlined the noteOff function
added check for allocation and IO-Errors to the load-function.

svn-id: r43110
2009-08-08 09:18:23 +00:00
Norbert Lange
78e06a0e1c refactored noteOn
removed channel.voicesActive variable

svn-id: r43104
2009-08-07 21:00:34 +00:00
Norbert Lange
d51e8be2bf implemented "SPECIAL" commands
addid missing stacklock for a few public functions

svn-id: r43100
2009-08-07 18:02:06 +00:00
Norbert Lange
c4047908aa added stub for setting audio filter in Paula
fixed wrong value for volume in maxtrax

svn-id: r43099
2009-08-07 16:21:30 +00:00
Norbert Lange
648bec1d0c move function definitions from header to the cpp file
moved a few functions to static scope

svn-id: r43077
2009-08-05 19:26:00 +00:00
Norbert Lange
621071ea9e added some error messages to the compile-time checks
svn-id: r43076
2009-08-05 18:57:13 +00:00
Norbert Lange
025846020b moved check if class should be compiled to the header
svn-id: r43075
2009-08-05 18:45:22 +00:00
Norbert Lange
55a24eacd5 fixed wrong indentation
moved notetable to static scope

svn-id: r43074
2009-08-05 18:13:42 +00:00
Norbert Lange
29e4755f2a check if modplayers should be compiled based on engine-macros
svn-id: r43073
2009-08-05 18:00:13 +00:00
Norbert Lange
fc8e269c36 cleaned up sound_amiga.cpp a bit, added checks for missing files
svn-id: r43050
2009-08-04 18:24:39 +00:00
Norbert Lange
4c4eb1394c added warning should the sound files not be available (intro will hang if there is no musictimer)
svn-id: r43049
2009-08-04 17:43:56 +00:00
Norbert Lange
c304c633ce moved helper functions from the header file into the cpp file
svn-id: r43047
2009-08-04 17:12:19 +00:00
Norbert Lange
dbe50abae4 added doxygeb comments
added checks to public functions if resources already got loaded

svn-id: r43046
2009-08-04 17:03:35 +00:00
Norbert Lange
e6f8bfafc7 moved code for initialising patterns into own function
added initialisation of return-addresses for patterns and macros

svn-id: r43045
2009-08-04 15:43:40 +00:00
Norbert Lange
0306695459 Some formatting changes and added comments
fixed parameters for "Play macro" command
fixed copypaste-mistake for pattern-fade

svn-id: r43032
2009-08-04 10:42:42 +00:00
Norbert Lange
2a4c60244b made some unused methods private
svn-id: r42986
2009-08-02 00:39:06 +00:00
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
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