diff --git a/Runtime/Util/VelVoicePlayer.cs b/Runtime/Util/VelVoicePlayer.cs index a1566a2..3b32fed 100644 --- a/Runtime/Util/VelVoicePlayer.cs +++ b/Runtime/Util/VelVoicePlayer.cs @@ -29,7 +29,6 @@ namespace VelNet } } - // Start is called before the first frame update void Start() { @@ -77,7 +76,7 @@ namespace VelNet if ((offset > 1000) || (Time.time - delayStartTime) > .1f) //this seems to make the quality better { var temp = Mathf.Max(0, offset - 2000); - source.pitch = 1 + temp / 18000.0f; //okay to behind by 2000, but speed up real quick if by 170000 + source.pitch = Mathf.Min(2,1 + temp / 18000.0f); //okay to behind by 2000. These numbers correspond to about 2x speed at a seconds behind if (!source.isPlaying) diff --git a/Samples~/ExampleVelVoice/Prefabs/PlayerPrefab.prefab b/Samples~/ExampleVelVoice/Prefabs/PlayerPrefab.prefab index c966287..aa3f17d 100644 --- a/Samples~/ExampleVelVoice/Prefabs/PlayerPrefab.prefab +++ b/Samples~/ExampleVelVoice/Prefabs/PlayerPrefab.prefab @@ -259,6 +259,8 @@ MonoBehaviour: networkObject: {fileID: 9102273340480352682} voiceSystem: {fileID: 0} source: {fileID: 7756407589087806652} + bufferedAmount: 0 + playedAmount: 0 --- !u!82 &7756407589087806652 AudioSource: m_ObjectHideFlags: 0 @@ -387,7 +389,7 @@ AudioSource: m_Curve: - serializedVersion: 3 time: 0 - value: 1 + value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 diff --git a/package.json b/package.json index 0461fa9..29f1a62 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "edu.uga.engr.vel.velnet", "displayName": "VelNet", - "version": "1.1.2", + "version": "1.1.3", "unity": "2019.1", "description": "A custom networking library for Unity.", "keywords": [