mirror of
https://github.com/videolan/vlc.git
synced 2024-12-03 14:53:56 +08:00
audio: add test for the new audio device functions
This commit is contained in:
parent
e957152215
commit
d7420aadc6
@ -71,6 +71,13 @@ static void test_audio_video(libvlc_media_player_t *mp)
|
||||
libvlc_video_set_scale(mp, 0.);
|
||||
libvlc_video_set_scale(mp, 0.); /* no-op */
|
||||
assert(libvlc_video_get_scale(mp) == 0.);
|
||||
|
||||
libvlc_audio_output_device_t *aouts = libvlc_audio_output_device_enum(mp);
|
||||
for (libvlc_audio_output_device_t *e = aouts; e != NULL; e = e->p_next)
|
||||
{
|
||||
libvlc_audio_output_device_set( mp, NULL, e->psz_device );
|
||||
}
|
||||
libvlc_audio_output_device_list_release( aouts );
|
||||
}
|
||||
|
||||
static void test_media_player_set_media(const char** argv, int argc)
|
||||
|
Loading…
Reference in New Issue
Block a user