audio: add test for the new audio device functions

This commit is contained in:
Rémi Denis-Courmont 2014-05-15 21:47:35 +08:00
parent e957152215
commit d7420aadc6

View File

@ -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)