Skip to content

Commit

Permalink
Update PlayerControls.swift to read file format
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCulbertson authored Oct 20, 2023
1 parent 07e6ed3 commit 3f1250e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ struct PlayerControls: View {
Log("failed to load sample", filename)
return
}
conductor.player.file = try? AVAudioFile(forReading: url)
conductor.player.isLooping = true
conductor.player.buffer = buffer

Expand All @@ -99,6 +100,7 @@ struct PlayerControls: View {
Log("failed to load sample", url.deletingPathExtension().lastPathComponent)
return
}
conductor.player.file = try? AVAudioFile(forReading: url)
conductor.player.isLooping = true
conductor.player.buffer = buffer

Expand Down

0 comments on commit 3f1250e

Please sign in to comment.