Skip to content

Commit

Permalink
use sidecar for audio decode
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Sep 11, 2024
1 parent 673e2a9 commit 0a91770
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/desktop/src-tauri/src/editor_instance.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::playback::{self, PlaybackHandle};
use crate::project_recordings::ProjectRecordings;
use crate::{editor, AudioData};
use cap_ffmpeg::FFmpeg;
use cap_project::{ProjectConfiguration, RecordingMeta};
use cap_rendering::decoder::AsyncVideoDecoder;
use cap_rendering::{ProjectUniforms, RecordingDecoders, RenderOptions, RenderVideoConstants};
Expand Down Expand Up @@ -78,7 +79,8 @@ impl EditorInstance {
let audio_path = project_path.join(&meta.path);

// TODO: Use ffmpeg crate instead of command line
let stdout = Command::new("ffmpeg")
let stdout = FFmpeg::new()
.command
.arg("-i")
.arg(audio_path)
.args(["-f", "f64le", "-acodec", "pcm_f64le"])
Expand Down

1 comment on commit 0a91770

@vercel
Copy link

@vercel vercel bot commented on 0a91770 Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.