|
1 | 1 | use std::{collections::BTreeMap, path::PathBuf, sync::Arc, time::Duration};
|
2 | 2 |
|
3 | 3 | use hisui::{
|
4 |
| - audio::{AudioData, AudioDataReceiver, AudioDataSyncSender, AudioFormat, SAMPLE_RATE}, |
5 |
| - channel, |
| 4 | + audio::{AudioData, AudioFormat, SAMPLE_RATE}, |
6 | 5 | layout::{AggregatedSourceInfo, AssignedSource, Layout, Resolution},
|
7 | 6 | layout_region::{Grid, Region},
|
8 | 7 | media::{MediaSample, MediaStreamId},
|
9 | 8 | metadata::{SourceId, SourceInfo},
|
10 | 9 | processor::{MediaProcessor, MediaProcessorInput, MediaProcessorOutput},
|
11 | 10 | types::{CodecName, EvenUsize, PixelPosition},
|
12 |
| - video::{FrameRate, VideoFormat, VideoFrame, VideoFrameReceiver, VideoFrameSyncSender}, |
| 11 | + video::{FrameRate, VideoFormat, VideoFrame}, |
13 | 12 | writer_mp4::Mp4Writer,
|
14 | 13 | };
|
15 | 14 | use orfail::OrFail;
|
@@ -328,16 +327,6 @@ fn source(id: usize, start_timestamp: Duration, stop_timestamp: Duration) -> Sou
|
328 | 327 | }
|
329 | 328 | }
|
330 | 329 |
|
331 |
| -fn channels() -> ( |
332 |
| - (AudioDataSyncSender, AudioDataReceiver), |
333 |
| - (VideoFrameSyncSender, VideoFrameReceiver), |
334 |
| -) { |
335 |
| - ( |
336 |
| - channel::sync_channel_with_bound(1000), |
337 |
| - channel::sync_channel_with_bound(1000), |
338 |
| - ) |
339 |
| -} |
340 |
| - |
341 | 330 | fn audio_data(source: &SourceInfo, i: usize, duration: Duration) -> AudioData {
|
342 | 331 | AudioData {
|
343 | 332 | source_id: Some(source.id.clone()),
|
|
0 commit comments