Skip to content

Commit 99eb0c2

Browse files
committed
Mod length
1 parent f7727c4 commit 99eb0c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Experiments/Sound/Sound.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ public class Sound : MonoBehaviour
88
// Use this for initialization
99
void Start()
1010
{
11-
int length = 600;
11+
int length = 600 * 100;
1212
var se = gameObject.AddComponent<AudioSource>();
1313
(se.clip = AudioClip.Create("test",length, 1, 44100, false))
14-
.SetData(Enumerable.Range(0, length).Select(t => Mathf.Sin(t * 0.2f)).ToArray(), 0);
14+
.SetData(Enumerable.Range(0, length).Select(t => Mathf.Sin(t * 0.05f)).ToArray(), 0);
1515
se.loop = true;
1616
se.Play();
1717
}

0 commit comments

Comments
 (0)