T_MSCLoader_ModAudio - piotrulos/MSCModLoader GitHub Wiki
Audio library (play local *.mp3, *.ogg, *.wav, *.aiff, *.flac)
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.3.1.346
C#
public class ModAudio : MonoBehaviour
View Source
Inheritance | Object → Object → Component → Behaviour → MonoBehaviour → ModAudio |
LoadAudioClipFromFile | Load audio from file and return as AudioClip (supported formats: *.mp3, *.ogg, *.wav, *.aiff, *.flac) |
LoadAudioFromFile | Load audio from file |
Play() | Play loaded audio file |
Play(Single, Single) | Play loaded audio file from specifed time. |
Stop | Stop playing audio file |
Time | Get current time position of audio file |
TotalTime | Get total time of audio file |
audioSource | Your AudioSource goes here |