Christoph Oelckers
a0cffca3bb
- restore accidentally deleted 'testmusicvol' CCMD.
2021-03-12 08:48:59 +01:00
Christoph Oelckers
d1023046ba
- default replay gain to 'off'.
2021-03-11 15:47:05 +01:00
Christoph Oelckers
b9dafaaa6b
- fill in the MIDI defaults for generating the lookup string for replay gain.
...
Both synth and sound font can be very relevant here for the final volume so using the same song with different settings needs to create different strings.
2021-03-11 00:20:19 +01:00
Christoph Oelckers
f11780600f
- implemented replay gain calculation and management.
...
This is done entirely on the streamed sound data, unlike the old relative volume which uses the backend's volume setting.
2021-03-10 23:06:21 +01:00
Christoph Oelckers
357163c60d
- Backend update from Raze.
2021-03-04 14:45:29 +01:00
alexey.lysiuk
e6810620cd
- restored sound-related developer messages
...
https://forum.zdoom.org/viewtopic.php?t=71486
2021-02-20 11:00:12 +02:00
alexey.lysiuk
e0e0fb0d8f
- fixed uninitialized global rolloff in sound engine
...
Depending on SNDINFO definitions, type of global rolloff could left uninitialized, and linear rolloff might be treated as logarithmic
https://forum.zdoom.org/viewtopic.php?t=70248
2021-02-08 11:50:00 +02:00
Chris Robinson
51adcd45e6
Simplify manual sound rolloff handling
2020-11-25 16:26:38 +01:00
Christoph Oelckers
d4d187e27b
- removed the limiter flags again and addressed the underlying problem properly.
...
The real issue is that the number of unattenuated sounds was unchecked and the near limit never kicked in.
To do this properly it is necessary to adjust the limit distance by the attenuation - zero attenuation must mean infinite distance and for high attenuations the distance must be lowered for limiting to work as intended.
The limit for the Doom boss sounds was increased to 4 to compensate for this change.
# Conflicts:
# src/common/audio/sound/oalsound.cpp
2020-10-28 21:30:25 +01:00
alexey.lysiuk
2ebf38c9c9
- removed duplicated line of code
2020-10-28 09:52:56 +02:00
Christoph Oelckers
fb0a40e0f0
- enable OpenAL's sound volume normalizer.
2020-10-27 20:36:17 +01:00
Christoph Oelckers
65c52b9825
- Backend update.
2020-10-16 23:25:18 +02:00
Christoph Oelckers
a6842b6482
- ensure that sfxinfo_t is always fully initialized, regardless how the setup is performed.
...
The recent pitch additions did not do this on all possible paths.
2020-10-16 22:57:30 +02:00
Christoph Oelckers
b8281f4758
- Backend update from Raze.
2020-10-16 22:57:28 +02:00
Wohlstand
4bfcbb4b18
libADLMIDI: Fixed a mistake with Volume Model setup
...
Don't set a bank number instead of a volume model!
2020-10-04 08:14:23 +02:00
Christoph Oelckers
c65f707a20
- added a proper 'sound finished' callback to the sound engine.
...
Backported from Raze - without this there is no way to implement sounds that can unload themselves, because the existing ChannelEnded function is called when the sound is still active.
2020-09-27 09:46:12 +02:00
Christoph Oelckers
2b64f8fb19
- added custom sound stream feature from Raze.
...
Currently not active yet but may be useful to implement streaming sounds in ZScript
2020-09-27 09:38:14 +02:00
alexey.lysiuk
254489e34c
- fixed compilation warnings reported by MSVC
...
src\common\audio\sound\s_sound.cpp(556,27): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
src\scripting\vmthunks.cpp(2678,13): warning C4244: 'return': conversion from 'time_t' to 'int', possible loss of data
2020-08-29 14:42:19 +03:00
MajorCooke
c57e669044
Added an optional extra float parameter to $pitchshift. ( #1150 )
...
- This allows for setting a randomized range for the pitch each time the sound is initialized.
2020-08-27 12:49:59 -04:00
Major Cooke
a85ee5826e
Added $PitchSet <logical name> <float> for SNDINFO.
...
- Sets the direct pitch of the sound to the specific float. Default is 0.0, meaning do not set a specific pitch. Regular pitch is 1.0.
- Only works for direct sound definitions.
- Overrides $PitchShift unless value is <= 0.0
- Overridden by A_StartSound's pitch parameter if the value > 0.0.
2020-07-24 08:05:44 +02:00
Christoph Oelckers
75cd00a340
- fixed some issues with setup parts for ZScript in the wrong place.
...
This never showed on GZDoom as an error but on Raze which has no actor classes it caused incompletely set up class descriptors.
2020-06-14 18:35:58 +02:00
Christoph Oelckers
248aa8b5a7
- moved s_reverbedit.cpp to 'common'.
2020-06-14 12:39:59 +02:00
Christoph Oelckers
712d80006a
- split game dependent parts out of menudef.cpp.
2020-06-14 00:27:32 +02:00
Christoph Oelckers
b41ae2dfdd
- do not allow playing sounds during PlayerFinishLevel.
...
This gets called right before the level ends, any sound in here would play during the intermission or at the start of the next level.
2020-06-09 21:01:14 +02:00
Edoardo Prezioso
8ab6575bd1
- Fixed OpenAL regression with looping sounds with playing length 0.
...
If such case occurs, the starttime parameter passed to the sound functions is ignored and truncated to 0.
2020-06-03 15:27:50 +02:00
Christoph Oelckers
8480a390a1
- synced texture sampler setup fixes from Raze.
2020-06-02 11:45:34 +02:00
Christoph Oelckers
4881ec257a
- don't let CHANF_AUTO hijack other channels.
...
With CHANF_OVERLAP this isn't needed anymore - any sound started on CHAN_AUTO can actually play on this channel with overlap implicitly allowed.
This has the added advantage that these sounds can be reliably accessed with other function by using CHAN_AUTO.
2020-05-26 22:19:30 +02:00
Rachael Alexanderson
00acbac04e
Merge remote-tracking branch 'origin/master' into texture_rework
2020-05-23 08:53:11 -04:00
alexey.lysiuk
3f9b9314a0
- added #include to fix compilation with MSVC 16.6.0
...
https://forum.zdoom.org/viewtopic.php?t=68641
2020-05-21 10:06:50 +03:00
Christoph Oelckers
0b544f2956
- moved the Posix platform files to 'common' after making sure that Raze can compiled with them as-is.
...
No content changes.
2020-04-23 21:48:50 +02:00
Christoph Oelckers
12e69adec3
- system backend cleanup.
...
This is mainly for running CI on Linux and macOS. Windws is already working.
2020-04-22 19:57:14 +02:00
Christoph Oelckers
f8ac9a2662
- moved DObject and core parts of the VM to 'common'.
...
# Conflicts:
# src/common/objects/dobject.h
2020-04-11 20:20:51 +02:00
Christoph Oelckers
a13c7bd053
- moved sound code to "common".
2020-04-11 20:20:35 +02:00
Christoph Oelckers
cd9e2d3795
- moved music code to "common".
2020-04-11 20:19:55 +02:00