Class used to load and play music files. Music is streamed from the file source, or an IO stream.
More...
Inherits IDisposable.
|
static float | GlobalVolume [get, set] |
| The global volume to play all music at. More...
|
|
float | Volume [get, set] |
| The local volume to play this music at. More...
|
|
float | Pitch [get, set] |
| Adjust the pitch of the music. Default value is 1. More...
|
|
int | Offset [get, set] |
| Set the playback offset of the music in milliseconds. More...
|
|
bool | Loop [get, set] |
| Determines if the music should loop or not. More...
|
|
int | Duration [get] |
| The duration in milliseconds of the music. More...
|
|
bool | IsPlaying [get] |
| Check if the Music is currently playing. More...
|
|
Class used to load and play music files. Music is streamed from the file source, or an IO stream.
Otter.Music.Music |
( |
string |
source, |
|
|
bool |
loop = true |
|
) |
| |
Load a music file from a file path.
- Parameters
-
Otter.Music.Music |
( |
Stream |
stream | ) |
|
Load a music stream from an IO stream.
- Parameters
-
void Otter.Music.Dispose |
( |
| ) |
|
Dispose the music. (I don't think this works right now.)
void Otter.Music.Pause |
( |
| ) |
|
void Otter.Music.Play |
( |
| ) |
|
void Otter.Music.Stop |
( |
| ) |
|
The duration in milliseconds of the music.
float Otter.Music.GlobalVolume |
|
staticgetset |
The global volume to play all music at.
bool Otter.Music.IsPlaying |
|
get |
Check if the Music is currently playing.
Determines if the music should loop or not.
Set the playback offset of the music in milliseconds.
Adjust the pitch of the music. Default value is 1.
The local volume to play this music at.
The documentation for this class was generated from the following file: