(a00338777) v0.9.2.1
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Barotrauma.Sounds
|
||||
}
|
||||
|
||||
private VoipQueue queue;
|
||||
public int bufferID = 0;
|
||||
private int bufferID = 0;
|
||||
|
||||
private SoundChannel soundChannel;
|
||||
|
||||
@@ -54,6 +54,11 @@ namespace Barotrauma.Sounds
|
||||
}
|
||||
}
|
||||
|
||||
public float CurrentAmplitude
|
||||
{
|
||||
get { return soundChannel?.CurrentAmplitude ?? 0.0f; }
|
||||
}
|
||||
|
||||
public VoipSound(SoundManager owner, VoipQueue q) : base(owner, "voip", true, true)
|
||||
{
|
||||
VoipConfig.SetupEncoding();
|
||||
@@ -70,6 +75,11 @@ namespace Barotrauma.Sounds
|
||||
soundChannel = chn;
|
||||
}
|
||||
|
||||
public override float GetAmplitudeAtPlaybackPos(int playbackPos)
|
||||
{
|
||||
throw new NotImplementedException(); //TODO: implement?
|
||||
}
|
||||
|
||||
public void SetPosition(Vector3? pos)
|
||||
{
|
||||
soundChannel.Position = pos;
|
||||
|
||||
Reference in New Issue
Block a user