Support screen capture on MacOS

This commit is contained in:
dijunkun
2023-12-01 16:54:17 +08:00
parent 97bed80088
commit 5febe99bc2
12 changed files with 689 additions and 111 deletions

View File

@@ -85,7 +85,7 @@ static std::atomic<bool> audio_buffer_fresh = false;
static uint32_t last_ts = 0;
char *out = "audio_old.pcm";
// FILE *outfile = fopen(out, "wb+");
FILE *outfile = fopen(out, "wb+");
int64_t src_ch_layout = AV_CH_LAYOUT_MONO;
int src_rate = 48000;