From d03d124edbb506930c36ff4a8f11bb3beb67fb07 Mon Sep 17 00:00:00 2001 From: Nick Culbertson Date: Fri, 27 Oct 2023 09:22:45 -0400 Subject: [PATCH] Improve Recorder example --- .../Sources/CookbookCommon/Recipes/MiniApps/Recorder.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cookbook/CookbookCommon/Sources/CookbookCommon/Recipes/MiniApps/Recorder.swift b/Cookbook/CookbookCommon/Sources/CookbookCommon/Recipes/MiniApps/Recorder.swift index 7f28c0d..1d2bf0e 100644 --- a/Cookbook/CookbookCommon/Sources/CookbookCommon/Recipes/MiniApps/Recorder.swift +++ b/Cookbook/CookbookCommon/Sources/CookbookCommon/Recipes/MiniApps/Recorder.swift @@ -30,7 +30,7 @@ class RecorderConductor: ObservableObject, HasAudioEngine { if data.isPlaying { if let file = recorder?.audioFile { - player.file = file + try? player.load(file: file) player.play() } } else {