win-dshow: Fix audio output mode not showing up
parent
1c37200549
commit
7328c2e2d7
|
@ -1800,8 +1800,6 @@ static obs_properties_t *GetDShowProperties(void *obj)
|
|||
/* audio settings */
|
||||
|
||||
Device::EnumAudioDevices(data->audioDevices);
|
||||
if (!data->audioDevices.size())
|
||||
return ppts;
|
||||
|
||||
p = obs_properties_add_list(ppts, AUDIO_OUTPUT_MODE, TEXT_AUDIO_MODE,
|
||||
OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_INT);
|
||||
|
@ -1812,6 +1810,9 @@ static obs_properties_t *GetDShowProperties(void *obj)
|
|||
obs_property_list_add_int(p, TEXT_MODE_WAVEOUT,
|
||||
(int64_t)AudioMode::WaveOut);
|
||||
|
||||
if (!data->audioDevices.size())
|
||||
return ppts;
|
||||
|
||||
p = obs_properties_add_bool(ppts, USE_CUSTOM_AUDIO, TEXT_CUSTOM_AUDIO);
|
||||
|
||||
obs_property_set_modified_callback(p, CustomAudioClicked);
|
||||
|
|
Loading…
Reference in New Issue