mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
player: add audio drop/duplicate mode
Not very robust in the moment.
This commit is contained in:
@@ -528,6 +528,7 @@ const m_option_t mp_opts[] = {
|
||||
{"display-resample", VS_DISP_RESAMPLE},
|
||||
{"display-resample-vdrop", VS_DISP_RESAMPLE_VDROP},
|
||||
{"display-resample-desync", VS_DISP_RESAMPLE_NONE},
|
||||
{"display-adrop", VS_DISP_ADROP},
|
||||
{"display-vdrop", VS_DISP_VDROP},
|
||||
{"display-desync", VS_DISP_NONE},
|
||||
{"desync", VS_NONE})),
|
||||
@@ -535,6 +536,8 @@ const m_option_t mp_opts[] = {
|
||||
M_OPT_MIN, .min = 0),
|
||||
OPT_DOUBLE("video-sync-max-audio-change", sync_max_audio_change,
|
||||
M_OPT_MIN | M_OPT_MAX, .min = 0, .max = 1),
|
||||
OPT_DOUBLE("video-sync-adrop-size", sync_audio_drop_size,
|
||||
M_OPT_MIN | M_OPT_MAX, .min = 0, .max = 1),
|
||||
OPT_CHOICE("hr-seek", hr_seek, 0,
|
||||
({"no", -1}, {"absolute", 0}, {"yes", 1}, {"always", 1})),
|
||||
OPT_FLOAT("hr-seek-demuxer-offset", hr_seek_demuxer_offset, 0),
|
||||
@@ -728,6 +731,7 @@ const struct MPOpts mp_default_opts = {
|
||||
.hr_seek_framedrop = 1,
|
||||
.sync_max_video_change = 1,
|
||||
.sync_max_audio_change = 0.125,
|
||||
.sync_audio_drop_size = 0.020,
|
||||
.load_config = 1,
|
||||
.position_resume = 1,
|
||||
.stream_cache = {
|
||||
|
||||
@@ -148,6 +148,7 @@ typedef struct MPOpts {
|
||||
int video_sync;
|
||||
double sync_max_video_change;
|
||||
double sync_max_audio_change;
|
||||
double sync_audio_drop_size;
|
||||
int hr_seek;
|
||||
float hr_seek_demuxer_offset;
|
||||
int hr_seek_framedrop;
|
||||
|
||||
Reference in New Issue
Block a user