Martin Kiewitz
77d232fbe2
AGI: always stop sound/music, when calling restore/save since 2.272
...
and therefore set the "fully played"-flag/variable, so that scripts
don't block forever in for example Police Quest 1 poker back room.
Fixes bug #9706
Thanks waltervn
2017-02-25 20:43:14 +01:00
Eugene Sandulenko
3e0663a516
AGI: Clean up object initialization
2016-06-05 23:10:20 +02:00
Ori Avtalion
438f100d5e
AGI: Reduce audio header dependencies
2016-05-22 22:02:37 +03:00
Martin Kiewitz
4bc01ab7d5
AGI: getflag/setflag/etc. cleanup
...
renamed getflag() to getFlag()
renamed setflag() to setFlag()
renamed flipflag() to flipFlag()
preagi: renamed setFlag for this engine to setWinnieFlag
2016-01-31 17:56:53 +01:00
Johannes Schickel
6aac905dfd
AGI: Make GPL headers consistent in themselves.
2014-02-18 02:39:32 +01:00
Eugene Sandulenko
4a17b91db2
AGI: Fix sound deinit. CID 1004128
...
We really left sound gen leaked with preagi games.
2013-04-21 14:12:13 +03:00
Max Horn
4fb289e346
AGI: Get rid of unused SoundMgr parameters
2013-04-18 23:50:19 +02:00
Eugene Sandulenko
b83cf61bfb
Checked V1 instructions till 0x42
2011-08-14 21:40:07 +01:00
Matthew Hoops
de6390dddb
AGI: Make the sound code use AgiBase instead of AgiEngine
...
In preparation of using the sound code with Winnie
2011-08-14 13:10:43 -04:00
Jussi Pitkanen
1507fe4e79
AGI: Fix detection of IIgs sample resources
2011-08-13 23:26:41 +01:00
Jussi Pitkanen
ab784944ea
AGI: Implement note fetch routine for AGI v2.001 sound resources
...
I suspect this is the format for AGI V1 sound resources as well. It is
currently implemented by splitting getNextNote() to getNextNote_v2() and
getNextNote_v1(). Since the V1 format consists of simple register values
to the sound chip in PCjr, this could probably be made more cleanly by
refactoring the code to resemble the chip more closely, so that its state
is updated by writing to the registers.
2011-08-13 23:26:19 +01:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Eugene Sandulenko
ed9768fde3
Merge pull request #9 from tiqpit/a2gs
...
AGI: Fix //gs output
2011-05-25 10:00:26 -07:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Jussi Pitkanen
fbb2d4d6cc
AGI: Let games start playing a new sound even if another one is still playing.
2011-04-09 19:09:29 +03:00
Eugene Sandulenko
d43ff54a08
AGI: Changed meaning of pcjr sound device. Now it is Sarien emu
...
Music drivers:
default: proper Tandy/PCJr
adlib: proper Tandy/PCJr
pcjr: old Sarien emu
amiga: old Sarien emu in Amiga mode
pcspk: Sarien emu in PCSpk mode (quite wrong)
midi: 4 channel MIDI
svn-id: r52836
2010-09-21 05:36:51 +00:00
Eugene Sandulenko
763c089d06
AGI: Fix bug #3061578 : AGI: PCjr Mode Not Default for DOS Games
...
svn-id: r52831
2010-09-20 21:17:49 +00:00
Eugene Sandulenko
09b776ad1f
AGI: Made proper Tandy emulator default for PC games.
...
svn-id: r49760
2010-06-15 10:45:14 +00:00
Eugene Sandulenko
db6673c408
AGI: rearranged class methods a bit and cleanup.
...
svn-id: r49758
2010-06-15 10:38:39 +00:00
Eugene Sandulenko
ceb2909e0a
AGI: Split all sound generators into separate modules.
...
Now the sound subsystem of the engine finally is possible to grasp.
Also now it is obvious why CoCo3 sounds are not functioning.
svn-id: r49757
2010-06-15 10:36:54 +00:00
Eugene Sandulenko
6903fc7a07
AGI: Implement FR #2813133 .
...
FR #2813133 : "AGI: Proper Tandy 3-Voice/IBM PCjr Sound Support".
Add proper Tandy music. Heavily based on NAGI source, thus attached
its X11 license.
To run it now use -e pcjr. Old one is still default for adlib but
most likely will be changed in the future.
Also lied ground for further separation of different sound generators.
svn-id: r49755
2010-06-15 10:36:10 +00:00
Eugene Sandulenko
85d8b4f5d8
AGI: Make sure that sound variable is reset once music is stopped.
...
svn-id: r49754
2010-06-15 10:35:42 +00:00
Eugene Sandulenko
c7e9b620ee
AGI: properly setup Sound var.
...
svn-id: r49752
2010-06-15 10:35:10 +00:00
Eugene Sandulenko
0a1a919406
AGI: Implement FR #1913900 .
...
FR #1913900 : "AGI: MIDI support".
Currently it gets selected when Adlib is chosen. Finding a better
way to do it is a todo.
Also default instrument mapping is plain.
Based on original code by Jens. Christian Restemeier.
svn-id: r49751
2010-06-15 10:34:45 +00:00
Eugene Sandulenko
38ef876d5b
AGI: Split out IIgs sound emulator into separate files.
...
svn-id: r49749
2010-06-15 10:33:57 +00:00
Eugene Sandulenko
4dddfd44ce
AGI: Fix bug #2960584 .
...
Bug #2960584 : "AGI: (Fan) SQ0: Music lost on saving (and loading)".
Actually music did not loop at all. Our looping code was broken.
svn-id: r49735
2010-06-15 10:28:40 +00:00
Max Horn
5568a8473b
Get rid of Engine::_gameDataDir.
...
This greatly reduces indirect dependencies on several header files
from common.
svn-id: r48933
2010-05-04 11:56:52 +00:00
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Max Horn
cac0ac66e2
COMMON: Get rid of Common::StringList
...
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
c934642bdb
COMMON: Move typedef StringList from str.h to new header str-array.h
...
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.
svn-id: r48282
2010-03-18 15:09:24 +00:00
Max Horn
d78dba3bca
COMMON: Move Common::RandomSource to common/random.*
...
svn-id: r48279
2010-03-18 15:07:11 +00:00
Torbjörn Andersson
1928a7ba38
Silenced some cppcheck warnings.
...
svn-id: r47427
2010-01-21 23:05:33 +00:00
Max Horn
f720d99b0a
Switch Mixer::playInputStream to use DisposeAfterUse::Flag
...
svn-id: r47182
2010-01-08 22:09:43 +00:00
Max Horn
0cf53b025d
Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
...
svn-id: r47180
2010-01-08 22:07:35 +00:00
Eugene Sandulenko
8ad5694cb1
Reduce header dependencies for AGI engine.
...
svn-id: r46942
2010-01-03 20:15:44 +00:00
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
66fae7bc8a
AGI: Change g_useChorus to SoundMgr::_useChorus, and add FIXME comment about it always being true (so maybe it can be removed?)
...
svn-id: r45266
2009-10-20 12:22:30 +00:00
Max Horn
2bbf708dea
Introduced new type Common::DisposeAfterUse::Flag
...
svn-id: r45233
2009-10-18 19:41:59 +00:00
Kari Salminen
3a3b71622a
Remove ioFailed() usage from AGI engine.
...
svn-id: r42495
2009-07-14 23:03:40 +00:00
Filippos Karapetis
47d4794876
Fixed a warning about an uninitialized variable
...
svn-id: r41660
2009-06-19 07:56:30 +00:00
Eugene Sandulenko
c96ec85dbb
Preliminary support for CoCo3 music.
...
svn-id: r41618
2009-06-17 23:16:21 +00:00
Eugene Sandulenko
d925104b6a
Added sanity checking to stopSound() and a bit more debug output
...
svn-id: r41501
2009-06-13 22:48:16 +00:00
Eugene Sandulenko
93d62da652
Whitespace fixes and C++ comments
...
svn-id: r41239
2009-06-06 17:39:13 +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
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Eugene Sandulenko
1d90907f93
Fix bug with AGI ignoring music volume.
...
svn-id: r40703
2009-05-18 21:35:08 +00:00
Willem Jan Palenstijn
81cfd774ad
clean up AGI fillAudio
...
svn-id: r40435
2009-05-10 20:42:46 +00:00
Max Horn
ac59693be2
A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
...
svn-id: r36127
2009-01-29 05:26:12 +00:00
Eugene Sandulenko
f0c6bfc392
Formatting
...
svn-id: r35701
2009-01-03 14:05:57 +00:00