Profile image

Audio Blocks

12.4k NULLPTR  one month ago

Downloads

213 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/

  • Log in to leave a comment
  • Profile image

    This is so cool for locomotives omfg

    2 days ago
  • Profile image

    @ActullyObama Do NOT leave both Volume Input and PItch Input's Input on Disabled. Doing so will also disable the sound immediately after playing it. I guess it has something to do with some kind of bug in its coding, but I'm not the creator.

    13 days ago
  • Profile image

    Picture: Minecraft block

    one month ago
  • Profile image

    @FlightClipper because I can't find the simple planes in the AppDeta

    one month ago
  • Profile image

    Hey Sir, My simple planes is not downloaded to the default path of Windows,I've created a new folder called Sound!It is the path to install a simple planes,E:\简单飞机\SP\SimplePlanes.v1.12.203.1\SimplePlanes.v1.12.203.1? And simple planes.exe it's in it

    one month ago
  • Profile image
    199 ZemiGG

    Tip: if there is no sounds folder in the simpleplanes folder, create one.

    one month ago
  • Profile image

    I'm not sure if I'm just stupid or somethin but i cant seem to get this to work.

    one month ago
  • Profile image
    31.9k 32

    Aight I am gonna use this to make a fully functional piano or something

    one month ago
  • Profile image

    i have the urge to go home and download and LRAD sound effect to bully the convoy by playing this over their heads as they travel

    +1 one month ago
  • Profile image

    FRIST1!1!1!1!1

    one month ago