mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 17:29:18 +02:00
combined rain sound support, soundproofing customization support, event diagnostics enhancement, power grid diagnostics enhancement, windowed full screen mode, ai coupling logic tweaks, minor bug fixes
This commit is contained in:
9
sound.h
9
sound.h
@@ -41,9 +41,16 @@ enum class sound_placement {
|
||||
general, // source is equally audible in potential carrier and outside of it
|
||||
internal, // source is located inside of the carrier, and less audible when the listener is outside
|
||||
engine, // source is located in the engine compartment, less audible when the listener is outside and even less in the cabs
|
||||
external // source is located on the outside of the carrier, and less audible when the listener is inside
|
||||
external, // source is located on the outside of the carrier, and less audible when the listener is inside
|
||||
external_ambient, // source is located on the outside of the carrier, with fixed volume
|
||||
custom, // source doesn't fit in any standard location or requires custom soundproofing
|
||||
};
|
||||
|
||||
auto const EU07_SOUNDPROOFING_NONE{ 1.f };
|
||||
auto const EU07_SOUNDPROOFING_SOME{ std::sqrtf( 0.65f ) };
|
||||
auto const EU07_SOUNDPROOFING_STRONG{ std::sqrtf( 0.20f ) };
|
||||
auto const EU07_SOUNDPROOFING_VERYSTRONG{ std::sqrtf( 0.01f ) };
|
||||
|
||||
// mini controller and audio dispatcher; issues play commands for the audio renderer,
|
||||
// updates parameters of created audio emitters for the playback duration
|
||||
// TODO: move to simulation namespace after clean up of owner classes
|
||||
|
||||
Reference in New Issue
Block a user