aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/AudioManager.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-01-29 12:11:31 -0500
committerMichael <[email protected]>2017-01-29 12:11:31 -0500
commit11f838ea2340b50a7899cf9fb2569b0826aef001 (patch)
treecd4834c0e38748716bae77e916989f1cc7fa55e2 /ShiftOS_TheReturn/AudioManager.cs
parentabfd774638d509a0d5fe5a61fe69b890fa3e0fc6 (diff)
downloadshiftos_thereturn-11f838ea2340b50a7899cf9fb2569b0826aef001.tar.gz
shiftos_thereturn-11f838ea2340b50a7899cf9fb2569b0826aef001.tar.bz2
shiftos_thereturn-11f838ea2340b50a7899cf9fb2569b0826aef001.zip
Add audio.setvol command for setting track volume
Diffstat (limited to 'ShiftOS_TheReturn/AudioManager.cs')
-rw-r--r--ShiftOS_TheReturn/AudioManager.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/ShiftOS_TheReturn/AudioManager.cs b/ShiftOS_TheReturn/AudioManager.cs
index d133f07..7d01a52 100644
--- a/ShiftOS_TheReturn/AudioManager.cs
+++ b/ShiftOS_TheReturn/AudioManager.cs
@@ -51,7 +51,11 @@ namespace ShiftOS.Engine
t.Start();
}
-
+ public static void SetVolume(float volume)
+ {
+ _provider.Volume = volume; //persist between songs
+ _out.Volume = volume;
+ }
}
public interface IAudioProvider