working audio
This commit is contained in:
@@ -212,8 +212,7 @@ impl AudioState {
|
|||||||
let out_audio_enc = out_audio_enc.open().unwrap();
|
let out_audio_enc = out_audio_enc.open().unwrap();
|
||||||
let mut in_aframe = FFAFrame::new(
|
let mut in_aframe = FFAFrame::new(
|
||||||
ffmpeg_next::format::Sample::I16(ffmpeg_next::format::sample::Type::Packed),
|
ffmpeg_next::format::Sample::I16(ffmpeg_next::format::sample::Type::Packed),
|
||||||
1024,
|
1024, // Just my choice of buffering rate
|
||||||
//dbg!(in_audio_sample_rate / emu_video_frame_rate) as usize,
|
|
||||||
ffmpeg_next::ChannelLayout::STEREO,
|
ffmpeg_next::ChannelLayout::STEREO,
|
||||||
);
|
);
|
||||||
in_aframe.set_rate(u32::try_from(in_audio_sample_rate).unwrap());
|
in_aframe.set_rate(u32::try_from(in_audio_sample_rate).unwrap());
|
||||||
|
|||||||
Reference in New Issue
Block a user