Skip to content
Open
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class MusicController : MonoBehaviour {
public string sfzPath;

private void Start() {
player.Sfizz.Load(sfzPath);
player.Sfizz.LoadFile(sfzPath);
}

private void Update() {
Expand All @@ -78,7 +78,7 @@ At a high level, the **sfizz** engine tracks audio events - when a note has star
Use the [StreamingAssets folder](https://docs.unity3d.com/Manual/StreamingAssets.html). Put your sfz file in `Assets/StreamingAssets/.../instrument.sfz`. In your controller script, pass in a global path.
```
string path = Path.GetFullPath(Path.Combine(Application.streamingAssetsPath, ".../instrument.sfz"));
sfizzPlayer.Sfizz.Load(path);
sfizzPlayer.Sfizz.LoadFile(path);
```

#### My sfz files are downloaded
Expand Down