Commit Graph

46 Commits

Author SHA1 Message Date
Max Horn
ebecf1dbaa unify _vm / _scumm usage
svn-id: r12262
2004-01-08 20:37:26 +00:00
Oliver Kiehl
ea154852b7 add newlines to end of files
svn-id: r12249
2004-01-08 13:36:26 +00:00
Chris Apers
a6f378aee2 No more needed
svn-id: r12245
2004-01-08 12:12:46 +00:00
Max Horn
033ff78ae9 updated copyright notice
svn-id: r12176
2004-01-06 12:45:34 +00:00
Chris Apers
3f1d66cf11 PalmOS sound API cannot access globals or functions out of the first segment
svn-id: r11740
2003-12-18 11:47:58 +00:00
Paweł Kołodziejski
1f9e408e2f cleanup whitespaces
svn-id: r11217
2003-11-08 21:59:32 +00:00
Chris Apers
3f06651bab Moved PalmOS initializations out of namespaces.
svn-id: r10703
2003-10-09 14:17:06 +00:00
Max Horn
0954fc1dac cleanup
svn-id: r10620
2003-10-05 17:32:38 +00:00
Max Horn
ad293a5ab8 cleanup / doxygenification
svn-id: r10578
2003-10-03 23:34:06 +00:00
Max Horn
d7660a2662 introduced namespace Scumm; made #include statements use scumm/ prefix explicitly
svn-id: r10571
2003-10-03 18:33:57 +00:00
Max Horn
3f55f2669d renamed class Scumm to ScummEngine (consisten with other engine names; also makes room for a potential 'Scumm' namespace)
svn-id: r10549
2003-10-02 22:42:03 +00:00
Jochen Hoenicke
748523dbe2 Generated signed sound samples (cf. feature request #812913).
svn-id: r10510
2003-09-30 17:10:03 +00:00
Max Horn
0c8df28387 cleanup; some more fixed need afnow that the premix proc is expected to generate stereo data; (we probably should add a common base class for Player_V1/V2 instead of deriving V1 from V2)
svn-id: r10312
2003-09-19 14:43:57 +00:00
Max Horn
f7d50f7c68 unify legal headers a bit here
svn-id: r10305
2003-09-18 19:56:38 +00:00
Max Horn
292cdb02ed just generate the data as stereo, instead of munging the buffer at the end
svn-id: r10298
2003-09-18 16:15:38 +00:00
Max Horn
9470c9f661 changed & documented the premixer semantics
svn-id: r10294
2003-09-18 16:01:33 +00:00
Max Horn
be9d4066e1 moved engine.* to base; this fixes some linking issues when building a barebone ScummVM (or maybe I just want to increase our CVS stats? <g>)
svn-id: r10287
2003-09-18 02:07:18 +00:00
Jochen Hoenicke
bcb87f4126 Add a new hull curve entry needed by Indy3. This fixes bug #770698.
svn-id: r10230
2003-09-13 15:02:59 +00:00
Chris Apers
3156f0dd2f Reduce PalmOS data segement
svn-id: r10083
2003-09-08 08:54:37 +00:00
Max Horn
1dbab0237f cleanup/refactoring
svn-id: r10070
2003-09-07 19:28:45 +00:00
Max Horn
361c3b95d5 some cleanup; clarified isSoundInUse semantics and the difference between IMuse::get_sound_active and IMuse::getSoundStatus; added lots of const qualifiers to IMuse; rewrote IMuseInternal::getSoundStatus (hopefully not breaking it); added MusicEngine::getSoundStatus
svn-id: r10069
2003-09-07 17:14:56 +00:00
Max Horn
0012f7fa96 added common base class MusicEngine for iMuse/iMuseDigital/Player_V123 (initial stab, more work to follow)
svn-id: r10066
2003-09-07 16:16:19 +00:00
Max Horn
76961a90c0 added an assert
svn-id: r10054
2003-09-07 00:00:35 +00:00
Jochen Hoenicke
185d563690 A different fix for Bugs item #788531.
Allocate a 4th channel and map all accesses to out of bounds
channels to this channel.

svn-id: r9705
2003-08-15 12:48:47 +00:00
Jamieson Christian
c0730f6cb9 Fix for Bug [788531] Indy3VGA - Access violation with PC Speaker "travel" music
Checked for OOB channel clear command. The "travel" music
in question seems to try to clear channel 4 when there are
only channels 0-3. Now we check and bail if OOB.

Perhaps this isn't quite the correct thing to do. Would
channel 4 be significant, as in perhaps "clear ALL channels"?
Hoenicke should answer this one.

svn-id: r9700
2003-08-15 07:10:30 +00:00
Jochen Hoenicke
fa457b95c1 Don't create imuse for v1 and v2 games (otherwise getSoundStatus doesn't work).
PCjr support for V1 games, bug fix in speaker support.
set_pcjr is now called by Player_V2 constructor according to midi driver.
Renaming of member variables to begin with an underscore.

svn-id: r9692
2003-08-14 19:41:40 +00:00
Jamieson Christian
d38a028996 More monkeyvga credits fix for -epcspk/pcjr
svn-id: r9666
2003-08-13 17:38:05 +00:00
Jamieson Christian
2ad09e7857 Fix monkeyvga hang when using -epcspk/pcjr
svn-id: r9665
2003-08-13 17:18:31 +00:00
Jochen Hoenicke
fef62655f8 Fixed the freqency of one note. This bug is also in the original Lucas
Arts Games...

svn-id: r9648
2003-08-12 15:40:24 +00:00
Max Horn
4ae47a74bf added support for output sample rates > 32767 (still limited to a max of 65535, but all we care about are 44100 and 48000 anyway)
svn-id: r9510
2003-08-05 17:52:47 +00:00
Max Horn
c10905b975 cleanup
svn-id: r8662
2003-06-27 00:10:17 +00:00
Max Horn
acec45a483 cleanup
svn-id: r8494
2003-06-15 01:00:43 +00:00
Jochen Hoenicke
f1b3e170e9 This should be the right check for header_len.
I first thought that old games did not have GF_SMALL_HEADER.

svn-id: r8379
2003-06-07 09:48:10 +00:00
Max Horn
86df3537b9 replaced GF_AFTER with _version
svn-id: r8372
2003-06-07 00:13:26 +00:00
Torbjörn Andersson
229c5bb328 I have no idea if this is right, but at least sound seems to be working
again in Maniac Mansion, Zak and EGA Loom.

svn-id: r8365
2003-06-06 23:22:59 +00:00
Jochen Hoenicke
ce0352eab2 Added a fix for music_timer in V3 games.
svn-id: r8361
2003-06-06 21:56:37 +00:00
Jochen Hoenicke
9533f5605a Synchronize channels playing the same frequency. This prevents
interference effects.

svn-id: r8318
2003-06-05 08:45:24 +00:00
Jochen Hoenicke
16b47e4f95 I forgot one note_length entry.
svn-id: r8247
2003-06-01 17:27:20 +00:00
Jochen Hoenicke
ff5705b32c Added VAR_MUSIC_TIMER support to playerV2. Now Zak intro is synchronized.
svn-id: r8245
2003-06-01 16:42:29 +00:00
Jochen Hoenicke
ed0080e55b Added new note-lengths of indy3ega/loom. Fixed internote spacing.
svn-id: r8242
2003-06-01 15:56:40 +00:00
Max Horn
1d47bfa7cd fixed warning
svn-id: r8188
2003-05-31 17:29:47 +00:00
Jochen Hoenicke
3290d618d6 Made thread-safe.
PCjr support.
Rewrote the generator, so I can reuse more code between PCjr and speaker output.
Added function to set master volume and to switch between PCjr and speaker.

svn-id: r8185
2003-05-31 16:54:46 +00:00
Jochen Hoenicke
6f41b17fcd Added missing random freqmod entries (water doesn't beep anymore :)
Removed extra newlines from debugging output.

svn-id: r8166
2003-05-31 11:23:25 +00:00
Jochen Hoenicke
7a37232aae Cleaned up the sample generator.
Added support for new opcodes as they are in Loom.
I didn't enable Loom sound, as there are some issues (indyega, loomdemo) that
need to be resolved first.

svn-id: r8165
2003-05-31 11:01:16 +00:00
Jamieson Christian
b47d76222f Fixed shadow variable
svn-id: r8025
2003-05-26 22:19:12 +00:00
Jamieson Christian
dbad55e532 Added Hoenicke's PC-speaker waveform generator
and script interpreter for GF_OLD_BUNDLE music resources.

We'll try to get the waveform generator into a
MidiDriver wrapper for use with the 'SPK' resources
of later games, but this is usable for now.

Great work, Hoenicke!

svn-id: r8023
2003-05-26 22:03:04 +00:00