File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed
sdk/runanywhere-swift/Sources/RunAnywhere/CRACommons/include Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ final class PlaygroundViewModel {
7070 transcription = " "
7171
7272 do {
73+ // AudioCaptureManager dispatches this callback on DispatchQueue.main
7374 try audioCapture. startRecording { [ weak self] data in
7475 MainActor . assumeIsolated {
7576 guard let self else { return }
Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ final class FlowSessionManager: ObservableObject {
158158
159159 // Start AVAudioEngine while foregrounded
160160 do {
161+ // AudioCaptureManager dispatches this callback on DispatchQueue.main
161162 try audioCapture. startRecording { [ weak self] data in
162163 MainActor . assumeIsolated {
163164 guard let self else { return }
Original file line number Diff line number Diff line change @@ -106,10 +106,9 @@ struct YapRunApp: App {
106106 showFlowActivation = true
107107 Task { await flowSession. handleStartFlow ( ) }
108108 case " kill " :
109- logger. info ( " Received kill deep link — killing session and terminating " )
109+ logger. info ( " Received kill deep link — killing session " )
110110 Task {
111111 await flowSession. killSession ( )
112- exit ( 0 )
113112 }
114113 case " playground " :
115114 logger. info ( " Received playground deep link " )
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ final class MacDictationService {
165165 elapsedSeconds = 0
166166
167167 do {
168+ // AudioCaptureManager dispatches this callback on DispatchQueue.main
168169 try audioCapture. startRecording { [ weak self] data in
169170 MainActor . assumeIsolated {
170171 guard let self else { return }
Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ typedef struct rac_expected_model_files {
8080 * Mirrors Swift's ModelFileDescriptor struct.
8181 */
8282typedef struct rac_model_file_descriptor {
83- /** Full URL to download this file from */
84- const char * url ;
83+ /** Relative path from base URL to this file */
84+ const char * relative_path ;
8585
86- /** Filename to save as (e.g., " model.gguf") */
87- const char * filename ;
86+ /** Destination path relative to model folder */
87+ const char * destination_path ;
8888
8989 /** Whether this file is required (vs optional) */
9090 rac_bool_t is_required ;
You can’t perform that action at this time.
0 commit comments