Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions UnityProject/Assets/EasyRhythm/Scripts/EasyRhythmAudioManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ void Start()
// Passes the EventReference so EasyEvent can create the FMOD Event instance
// Passes an array of listeners through (IEasyListener) so the audio event knows which objects want to listen to the callbacks
myAudioEvent = new EasyEvent(myEventPath, myEventListeners);
myAudioEvent.start();
//myAudioEvent.start();
}

public void Update()
{
// Press space bar to start and stop the audio event
if (Input.GetKeyDown(KeyCode.Space))
/*if (Input.GetKeyDown(KeyCode.Space))
{
if (!myAudioEvent.IsPlaying())
{
Expand All @@ -38,6 +38,12 @@ public void Update()
myAudioEvent.stop();
}

}*/

if (Input.GetKeyDown(KeyCode.Return))
{
myAudioEvent.start();

}
}

Expand Down
Binary file modified UnityProject/Assets/FMOD/.cache/buildrecords/Desktop/Master.br
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file modified UnityProject/Assets/FMOD/Build/Desktop/Master.bank
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
</relationship>
<relationship name="markerTracks">
<destination>{242d72bc-f049-4af8-81fa-8aa6bd32b343}</destination>
<destination>{6ec4f1ab-71e3-40c3-9549-6d782b603ca9}</destination>
</relationship>
<relationship name="groupTracks">
<destination>{ce5584cd-dce0-464b-9f1f-1b702fec5553}</destination>
Expand Down Expand Up @@ -58,6 +59,7 @@
</object>
<object class="EventAutomatableProperties" id="{640323f4-f3a0-48c7-a63a-20f513e843ce}" />
<object class="MarkerTrack" id="{242d72bc-f049-4af8-81fa-8aa6bd32b343}" />
<object class="MarkerTrack" id="{6ec4f1ab-71e3-40c3-9549-6d782b603ca9}" />
<object class="GroupTrack" id="{ce5584cd-dce0-464b-9f1f-1b702fec5553}">
<relationship name="modules">
<destination>{b107d6f1-5f99-4331-a15e-1d76623df075}</destination>
Expand All @@ -72,6 +74,7 @@
</relationship>
<relationship name="markers">
<destination>{ff225c16-4fad-4fa7-93ca-f38f733f96ab}</destination>
<destination>{6089229d-a3f9-4b17-9df6-0d46fa7bddc4}</destination>
</relationship>
</object>
<object class="EventMixerMaster" id="{541c25bf-5356-40f9-aef7-993e06f5f46b}">
Expand Down Expand Up @@ -124,6 +127,20 @@
<destination>{242d72bc-f049-4af8-81fa-8aa6bd32b343}</destination>
</relationship>
</object>
<object class="LoopRegion" id="{6089229d-a3f9-4b17-9df6-0d46fa7bddc4}">
<property name="position">
<value>0</value>
</property>
<property name="length">
<value>88</value>
</property>
<relationship name="timeline">
<destination>{b7a997c1-cc09-4a97-a6c0-5ce074b19e59}</destination>
</relationship>
<relationship name="markerTrack">
<destination>{6ec4f1ab-71e3-40c3-9549-6d782b603ca9}</destination>
</relationship>
</object>
<object class="MixerBusEffectChain" id="{7d741745-19b8-4327-8905-8838b08fd857}">
<relationship name="effects">
<destination>{f098e37b-c9c8-457a-ab20-13834f4e0d30}</destination>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ MonoBehaviour:
Path: Assets/FMOD/Build/Desktop/Master.bank
Name: Master
StudioPath: bank:/Master
lastModified: 638767954274226252
lastModified: 638768733132477686
FileSizes:
- Name: Desktop
Value: 7279392
Value: 7279520
Exists: 1
--- !u!114 &-1308961276341546955
MonoBehaviour:
Expand Down Expand Up @@ -180,7 +180,7 @@ MonoBehaviour:
- {fileID: -1401637302299783264}
StringsBanks:
- {fileID: 8641842500893547333}
cacheTime: 638767954276651800
cacheTime: 638768733132487944
cacheVersion: 131622
--- !u!114 &2072186320137544863
MonoBehaviour:
Expand Down Expand Up @@ -285,7 +285,7 @@ MonoBehaviour:
- {fileID: -1401637302299783264}
IsStream: 1
Is3D: 0
IsOneShot: 1
IsOneShot: 0
Parameters: []
MinDistance: 1
MaxDistance: 20
Expand Down Expand Up @@ -356,7 +356,7 @@ MonoBehaviour:
Path: Assets/FMOD/Build/Desktop/Master.strings.bank
Name: Master.strings
StudioPath: bank:/Master.strings
lastModified: 638767954274247009
lastModified: 638768733132487944
FileSizes:
- Name: Desktop
Value: 1234
Expand Down