Profile image

Audio Blocks

12.0k NULLPTR  yesterday

Downloads

14 downloads
Version 0.11 Part

Adds 2 Gizmo parts capable of playing audio files.
May be used for simple audio signalization or to make complex systems like GPWS, Voice Warnings etc.

This mod was built with Unity 2018. If you see some compatibility warnings in mods tab after activating the mod just ignore them.

Also there are 3 integrated .NET assemblies :
System.Buffers,
System.Memory,
System.Runtime.CompilerServices.Unsafe
These are loading correctly and working fine on Windows, but not tested on Linux or Mac.


Audio Files Support

This mod supports ONLY Ogg Vorbis audio files and has limit of 8Mb per file.
Files must have .ogg extension and must be located in "Sounds" folder inside of main SP local user folder.
On Windows this should be AppData/LocalLow/Jundroo/SimplePlanes/Sounds/
Idk what will the path be look like on Linux/Mac.
If you cant find AppData folder, try: Right Click -> New -> Shortcut -> %AppData%
Or this: Start - Run ( Win + R ) - %AppData%


Audio Block

Controlled by an Activation Group and plays audio when turned on.


Advanced Audio Block

Has Volume and Pitch input controllers. Can be driven by Funky Trees or constants.
Volume value is in range of 0 to 1.
Pitch value is in range 0 to 2. ( 1 is default Pitch )
On/Off state controlled by "activationGroup" value of Volume controller. Can be driven by Funky Trees or boolean constants.


Part Settings

File Name - Enter file name here. ( Without extension )

Playback Mode - Determines how audio must be played.
Default - Stops audio when turning off. ( Play/Stop Mode )
Pausable - Pauses audio when turning off. ( Play/Pause mode )
Sentence - This is mainly for things like "Voice warning system". When turned off audio will keep playing, but will not loop. Allows phrases not to be stopped in the middle when turning off or when on/off state begins switching quickly.

Loop Audio - Determines if audio must be played continuously.
Spatial Factor - 2D/3D Audio value. ( 0 - Full 2D, 1 - Full 3D ) 2D audio will play everywhere.
Doppler Factor - Doppler Effect value.
Skip Reverb - Determines if Reverb Zones should be ignored.
Skip Effects - Determines if Listener Effects should be ignored.


File Path (Windows)

Sounds - AppData/LocalLow/Jundroo/SimplePlanes/Sounds/