mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-30 20:58:57 +00:00
Add option to select audio source
Pass --audio-source=mic to capture the microphone instead of the device audio output.
This commit is contained in:
parent
360f2fea1e
commit
ff5ffc892f
14 changed files with 125 additions and 7 deletions
|
@ -44,6 +44,11 @@ enum sc_codec {
|
|||
SC_CODEC_RAW,
|
||||
};
|
||||
|
||||
enum sc_audio_source {
|
||||
SC_AUDIO_SOURCE_OUTPUT,
|
||||
SC_AUDIO_SOURCE_MIC,
|
||||
};
|
||||
|
||||
enum sc_lock_video_orientation {
|
||||
SC_LOCK_VIDEO_ORIENTATION_UNLOCKED = -1,
|
||||
// lock the current orientation when scrcpy starts
|
||||
|
@ -115,6 +120,7 @@ struct scrcpy_options {
|
|||
enum sc_log_level log_level;
|
||||
enum sc_codec video_codec;
|
||||
enum sc_codec audio_codec;
|
||||
enum sc_audio_source audio_source;
|
||||
enum sc_record_format record_format;
|
||||
enum sc_keyboard_input_mode keyboard_input_mode;
|
||||
enum sc_mouse_input_mode mouse_input_mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue