Paweł Kołodziejski
06902574b4
GRIM: Janitorial
2022-06-08 01:12:00 +02:00
Paweł Kołodziejski
20cb0ae228
ALL: Cleanup ResidualVM -> ScummVM
2021-12-26 21:19:38 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Orgad Shaneh
a05e54f00c
JANITORIAL: Remove trailing whitespaces
2021-05-04 11:46:30 +03:00
Bastien Bouclet
6708f19a50
GRIM: Fix invalid ADGF_DEMO flag usage
2017-07-26 20:12:35 +02:00
Christian Krause
50f958e5c9
EMI: Make Lua_V2::PlayLoadedSound more robust
...
Don't abort() when EMI's LUA code calls PlayLoadedSound
with nil parameter.
2014-11-21 19:36:41 +01:00
Christian Krause
e8190af548
EMI: Set movie volume to SFX volume setting
...
- movies are played as kPlainSoundType
- set the kPlainSoundType volume to the same value as
the kSFXSoundType volume
2014-10-27 01:11:42 +01:00
Christian Krause
36b037c81d
EMI: Refactor conversion of sound volume values
...
- LUA code uses a range of 0 .. 100
- the LUA group volumes are in the range 25 .. 100, otherwise the sound
group is muted
- residualvm engine uses a range of 0 .. Audio::Mixer::kMaxChannelVolume
- do most of the conversion in lua_v2_sound.cpp
- most parts of the engine will solely use the engine internal range
- only when reading/writing the registry residualvm continues to use
a special conversion for compatibility with the volume settings
of the residualvm engine settings
- proper handling of volumes close to 0.0f in SoundTrack::updatePosition()
2014-10-27 01:10:29 +01:00
Joni Vähämäki
ec6241fa00
EMI: Fixed implementation of UpdateSoundPosition.
2014-08-14 17:51:08 +03:00
Joni Vähämäki
896fd7cb42
EMI: Recalculate volume and balance for positioned sounds when the setup changes. Fixes #996
2014-08-14 17:50:58 +03:00
Joni Vähämäki
faee19636f
EMI: Implement ImPause and ImResume.
2014-08-09 14:14:15 +03:00
Joni Vähämäki
1f8fe2a4aa
EMI: Pass sound name as Common::String& to EMISound's methods.
2014-08-06 19:43:20 +03:00
Joni Vähämäki
146af5a498
EMI: Fix implementation of ImStateHasEnded.
2014-08-06 19:43:16 +03:00
Joni Vähämäki
2a8820bbee
EMI: Remove EMI-specific methods from SoundPlayer.
2014-08-06 19:43:16 +03:00
Joni Vähämäki
007067c7ad
EMI: Move handling of pooled sounds to EMISound.
2014-08-06 19:43:10 +03:00
Joni Vähämäki
0cd248a9a0
EMI: Move initialization of sound effects to EMISound.
2014-08-06 19:16:56 +03:00
Joni Vähämäki
a8d48e2545
EMI: Pass a file path string instead of a file stream to SoundTrack::openSound.
2014-08-06 19:16:53 +03:00
Joni Vähämäki
c4decc05c5
EMI: Parse the first parameter of ImPushState.
...
This fixes the credits music not playing in the main menu.
2014-08-06 19:16:53 +03:00
Joni Vähämäki
91b37f43f1
EMI: Allow PlayLoadedSound with invalid sound id.
2014-07-29 13:38:06 -07:00
Joel Teichroeb
c053a68807
EMI: Allow nil to be passed to volume in PlayLoadedSound
2014-06-16 20:19:12 -07:00
egetesla
1f8b0263c3
GRIM: Merge iMuse and EMI sound warnings into a new "Sound" channel
2014-04-12 17:16:08 +02:00
Pawel Kolodziejski
8759900b6a
ALL: synced with ScummVM
2014-04-05 18:18:42 +02:00
Christian Krause
9ebb158744
EMI: Fix format string of debug output
2013-12-12 01:10:12 +01:00
Christian Krause
e8149beccc
EMI: Implement ImStateHasLooped
...
The implementation is necessary to switch between various music tracks
in Knuttin Town.
2013-12-11 22:50:56 +01:00
Christian Krause
8e2a768f74
EMI: Less restrictive parameter check for PlaySound()
...
Use default volume in case the volume parameter is omitted
or of the wrong type (may happen for the sounds of Murray
on Jambalaya Island).
2013-12-11 22:50:49 +01:00
Einar Johan Trøan Sømåen
3cb5523664
EMI: Fix SFX-playback for the demo. (Would error out before).
2013-12-07 02:51:41 +01:00
Christian Krause
1649cedf08
EMI: Implement/enhance LUA sound calls
...
Enhance functions:
- Lua_V2::PlaySound: make usage of volume parameter
- Lua_V2::PlayLoadedSound: make use of volume parameter
Implement functions:
- Lua_V2::GetSoundVolume
- Lua_V2::SetSoundVolume
Implement the sound positioning in:
- Lua_V2::PlaySoundFrom
- Lua_V2::PlayLoadedSoundFrom
- Lua_V2::UpdateSoundPosition
2013-12-01 23:34:17 +01:00
Christian Krause
a0476168af
EMI: Implement IsSoundPlaying
...
IsSoundPlaying is needed for the ambient sounds in EMI. It needs to
return true during playing to avoid a premature lua call to free_sfx
and it needs to return false once the sound is finished to allow the
transition to the next ambient sound effect.
2013-12-01 23:30:15 +01:00
Dries Harnie
e097cb96f1
EMI: Lua_V2#UpdateSoundPosition: use warning
2013-08-04 14:27:09 +02:00
Einar Johan Trøan Sømåen
ec697300b3
EMI: Stub more Lua_V2-functions, and read most parameters.
...
CompleteChore
GetSoundVolume
SetSoundVolume
UpdateSoundPosition
ImStateHasLooped
GetCameraPitch
PitchCamera
RollCamera
YawCamera
NukeAllScriptLocks
FRUTEY_Begin
FRUTEY_End
2013-07-12 17:34:37 +02:00
Joel Teichroeb
4e6378be14
GRIM: Do not need to check if a pointer is NULL before deleting it as nothing will happen if it is NULL
2013-07-07 21:11:34 -07:00
Dries Harnie
34332d15ba
EMI: Encapsulate PoolSound track
2013-05-22 20:58:49 +02:00
Dries Harnie
187023dc3a
EMI: Check extension for Lua_V2::LoadSound
2013-05-21 23:30:16 +02:00
Paweł Kołodziejski
175620b62a
ALL: change license headers from LGPL to GPL, and few updates
2012-12-19 23:15:43 +01:00
Einar Johan Trøan Sømåen
d4aed45695
EMI: Implement ImPushState/ImPopState/ImFlushStack
2012-11-21 17:23:25 +01:00
Dries Harnie
19ff66338f
EMI: Don't open a new stream for every Play(Loaded)Sound
2012-11-19 23:42:08 +01:00
Einar Johan Trøan Sømåen
21113597fa
EMI: We don't really need to assert(bool == true || bool == false)
2012-11-14 13:15:59 +01:00
Einar Johan Trøan Sømåen
ab3c1ddf65
EMI: Don't add .aif-extension to files who already have it.
2012-11-14 03:18:46 +01:00
Einar Johan Trøan Sømåen
c51972bd1a
EMI: Implement EnableAudioGroup and SetGroupVolume
2012-11-14 02:28:33 +01:00
Einar Johan Trøan Sømåen
1d686fce7c
EMI: Implement support for low-quality music.
2012-11-14 01:57:26 +01:00
Dries Harnie
01d14a013d
EMI: Move PoolSound to separate file
2012-11-14 00:08:07 +01:00
Dries Harnie
64de0c3199
EMI: SoundTrack destructor destroys _stream if needed
2012-09-09 17:50:18 +02:00
Dries Harnie
f29379420e
EMI: SoundTracks don't always dispose of their streams
2012-09-09 16:44:44 +02:00
Dries Harnie
9dec040b3e
EMI: Don't crash on missing sound files
2012-08-12 12:19:45 +02:00
Einar Johan Trøan Sømåen
bdad81d2d8
EMI: Add SFX-support for PS2. (Uses scx, not aiff)
2012-07-22 20:13:17 +02:00
Dries Harnie
9d4289319d
EMI: Stub out PlaySoundFrom opcode
2012-07-17 22:29:15 +02:00
Joel Teichroeb
77f4978a42
GRIM: Remove unneeded forbidden symbol exceptions
2012-05-05 22:19:45 -07:00
Joel Teichroeb
94aeca9663
GRIM: Remove tag from the pool template
2012-04-05 15:20:30 -07:00
Paweł Kołodziejski
ec792bbc0b
EMI: shut up warnings
2012-02-24 18:11:52 +01:00
Joel Teichroeb
5d99091f25
EMI: Implement and stub various opcodes
2012-02-18 14:13:28 -08:00