fix: incorrect resample response (#67)

This commit is contained in:
Théo Monnom
2023-05-13 01:02:12 +02:00
committed by GitHub
parent 7c8878502e
commit 76210c9f67
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ message RemixAndResampleRequest {
} }
message RemixAndResampleResponse { message RemixAndResampleResponse {
FFIHandleId buffer_handle = 1; AudioFrameBufferInfo buffer = 1;
} }
/// ///
+2 -1
View File
@@ -679,10 +679,11 @@ impl FfiServer {
}; };
let handle_id = self.next_id() as FfiHandleId; let handle_id = self.next_id() as FfiHandleId;
let buffer_info = proto::AudioFrameBufferInfo::from(handle_id, &frame);
self.ffi_handles.insert(handle_id, Box::new(frame)); self.ffi_handles.insert(handle_id, Box::new(frame));
Ok(proto::RemixAndResampleResponse { Ok(proto::RemixAndResampleResponse {
buffer_handle: Some(handle_id.into()), buffer: Some(buffer_info),
}) })
} }