Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Torbjörn Andersson
e7469479ce
Removed unnecessary semi-colons.
...
svn-id: r44048
2009-09-13 10:32:55 +00:00
Norbert Lange
0b5a32e99a
fix SFX not playing before music started
...
svn-id: r43799
2009-08-29 12:44:51 +00:00
Sven Hesse
a6c7d14ddf
This just fix the compile errors on AmigaOS (bug #2845660 )
...
svn-id: r43772
2009-08-27 16:29:56 +00:00
Norbert Lange
917d4b78b3
Merge with trunk
...
svn-id: r43701
2009-08-24 17:51:47 +00:00
Norbert Lange
5f87d5090c
fixed small mistake with the sinetable
...
moved pow2table into the only function using it
svn-id: r43563
2009-08-20 15:10:32 +00:00
Norbert Lange
5e1e7d0191
added tiebreaking to pickVoice, now the use of channels is better distributed
...
added a fixedpoint pow2 function (similar to the original) - no floats used anymore at the expense of a 512 byte table
added a sinetable for the modulation effect.
svn-id: r43505
2009-08-18 11:34:55 +00:00
Norbert Lange
13757d5354
sound_amiga: honor _musicEnabled and _sfxEnabled flags
...
maxtrax: initialise lastvolume
svn-id: r43337
2009-08-13 00:07:37 +00:00
Norbert Lange
8cb42dd689
fixed bug in tempoeffect
...
svn-id: r43204
2009-08-10 12:09:31 +00:00
Norbert Lange
d63ddbdbbe
fix potential leak in loadscore
...
added parameters to constructor
svn-id: r43203
2009-08-10 11:47:49 +00:00
Norbert Lange
b4c689a3c1
fixed up some missing newlines
...
removed MSVC6 disable pragmas, the warnings are already disabled in the project files
svn-id: r43182
2009-08-09 18:59:22 +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
025846020b
moved check if class should be compiled to the header
...
svn-id: r43075
2009-08-05 18:45:22 +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
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
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
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
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
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
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
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