Commit Graph

24 Commits

Author SHA1 Message Date
Max Horn
7bf493939b Fix for bug #1746059 (WEEN: The intro hangs, and sound is corrupted)
svn-id: r27832
2007-07-01 18:40:35 +00:00
Max Horn
d35861fc4a Changed GOB to use common/frac.h
svn-id: r27763
2007-06-28 20:09:58 +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
Sven Hesse
70bae60c44 Removed some more superfluous semicolons in the gob engine
svn-id: r26595
2007-04-25 19:52:26 +00:00
Sven Hesse
3c62df7dfe Removed the need for double<->int conversions in readBuffer()
svn-id: r26493
2007-04-15 12:46:31 +00:00
Sven Hesse
ec5a9eee31 - Minor cleanup
- Added Inter_v3 (for new opcode o3_getTotTextItemPart)
- Some fixes to let Gob3 start with the first screen

svn-id: r26383
2007-04-05 13:37:20 +00:00
Sven Hesse
623ca88022 - Properly implemented the ImdPlayer
- Some more clean-up

svn-id: r26316
2007-03-29 17:55:39 +00:00
Sven Hesse
2dc7cb2cd4 Major clean-up, including:
- Cutting down the code-dup
- Plucking leaks
- Removing dead/unused code
- Properly naming "word_2342F"-style variables and functions (removing the warnings alongside)
- Fleshing out the "stubby" functions
- Moving functions and variables to more appropriate/logical places
- Re-ordering functions and variables
- Re-structuring functions
- Moving the IMD stuff into a new "Imd" class in the new imd.cpp/.h (still to be completely implemented and cleaned up)
- Formatting
- Getting rid off the classes "Anim", "Pack" and "Timer", along with their files

svn-id: r26252
2007-03-20 14:51:57 +00:00
Max Horn
ac719ac5fd More dead code; augmented note on PC speaker emulation
svn-id: r25885
2007-02-26 20:44:39 +00:00
Max Horn
73188b4716 'Optimized' SquareWaveStream::readBuffer a bit, removed some dead code, and changed Snd::terminate to a destructor (this ensures client code can't forget to do just that -- not that we'd ever forget ... ;-)
svn-id: r25884
2007-02-26 20:41:52 +00:00
Max Horn
1c80f2ffa0 calling memset to zero a buffer you are about to fill with audio data is not necessary (removing this from Gob::Snd::readBuffer); removed dead code
svn-id: r25883
2007-02-26 20:32:43 +00:00
Willem Jan Palenstijn
b1a12658b0 stop audio streams before deleting them
svn-id: r25882
2007-02-26 18:52:28 +00:00
Sven Hesse
15043066f2 - Changed the speaker stuff again
- Added the spanish gob2 version from bug report #1659884

svn-id: r25615
2007-02-15 22:07:44 +00:00
Sven Hesse
77c70d4ee7 - Changed the square wave generator / speaker emulation, hopefully fixing the walking sound issue (#1621086)
- Fixed some misplaced actor glitches in Bargon

svn-id: r25585
2007-02-14 16:36:17 +00:00
Sven Hesse
f54a97a02c - Plugged some leaks and fixed some memory errors
- Fixed the cursor animation loops in Ween and Bargon
- Added Draw_Bargon + Inter_Bargon
- Implemented Bargon Attack's hardcoded intro parts

svn-id: r25387
2007-02-04 15:45:15 +00:00
Sven Hesse
17e70efe13 - Snd::WaitEndPlay() should stop a running composition
- Removed Snd::getCompositionSlot(), it's not needed

svn-id: r25310
2007-01-31 15:19:42 +00:00
Sven Hesse
7101c0ef26 - Correctly setting of Snd::_playingSound
- Implemented sound fading in/out
- o2_stub0x81 -> o2_scroll

svn-id: r25307
2007-01-31 13:17:50 +00:00
Sven Hesse
cb8378065d - Changed _soundFlags and implemented "compositions"
- Changed Snd to be a permanent audiostream, to have better control over stopping, looping and compositions
- Some clean-up

svn-id: r25292
2007-01-30 22:19:55 +00:00
Sven Hesse
6e0835da11 - Fixed cut off and missing sounds
- Fixed a crash/static reported in the forums (sending Winkle to the vulture)
- (Hopefully) fixed the immediately-closing notepad heisenbug (#1621089)
- Fixed using unitialised values after allocating the variables

svn-id: r25025
2007-01-06 11:17:20 +00:00
Sven Hesse
42e03bd707 - Sound! Still a bit glitchy, though:
- Negative frequences?!? Maybe "SFX"?
  - No sound for a small part of the intro
    (there aren't any sndKeys covering that part either)
  - A rythm-instrument (hi-hat?) in the titlemusic isn't played as one
- More differences in the drawing functions fleshed out
- Some of the goblin handling functions written
- More unnamed functions and variables, wheeee...

svn-id: r22410
2006-05-11 19:43:30 +00:00
Max Horn
27307acd7c Moved the AudioCDManager as well as class AudioStream and its (standard) subclasses to namespace Audio
svn-id: r22231
2006-04-29 22:33:31 +00:00
Willem Jan Palenstijn
06e02f6010 stop playing a sample before deleting the sample data
svn-id: r20902
2006-02-26 01:25:27 +00:00
Max Horn
bf79947a5b Removed lots of unneeded #includes from gob.h, and moved GobGameSettings to gob.cpp -> reduced header dependencies -> faster recompile when one of those headers is modified
svn-id: r20740
2006-02-17 08:44:16 +00:00
Max Horn
26ee630756 Moved engines to the new engines/ directory
svn-id: r20582
2006-02-11 22:45:04 +00:00