[vlc-devel] [PATCH 2/2] libvlc: equalizer: Update test suite for testing VLC & ISO band settings
Ronald Wright
logiconcepts819 at gmail.com
Mon Aug 12 21:11:52 CEST 2013
This patch adds assertion checks for testing VLC and ISO frequency settings.
---
test/libvlc/equalizer.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/test/libvlc/equalizer.c b/test/libvlc/equalizer.c
index e7c5ad5..b590aaf 100644
--- a/test/libvlc/equalizer.c
+++ b/test/libvlc/equalizer.c
@@ -51,11 +51,15 @@ static void test_equalizer (const char ** argv, int argc)
assert (u_bands > 0);
for (unsigned i = 0; i < u_bands; i++)
- assert (-1.0f != libvlc_audio_equalizer_get_band_frequency(i));
+ {
+ assert (-1.0f != libvlc_audio_equalizer_get_band_frequency(i, true));
+ assert (-1.0f != libvlc_audio_equalizer_get_band_frequency(i, false));
+ }
// band out of range
- assert (-1.0f == libvlc_audio_equalizer_get_band_frequency(u_bands));
+ assert (-1.0f == libvlc_audio_equalizer_get_band_frequency(u_bands, true));
+ assert (-1.0f == libvlc_audio_equalizer_get_band_frequency(u_bands, false));
// initialisation
@@ -121,6 +125,14 @@ static void test_equalizer (const char ** argv, int argc)
assert (0.0f == libvlc_audio_equalizer_get_amp_at_index (equalizer, u_bands));
assert (-1 == libvlc_audio_equalizer_set_amp_at_index (equalizer, 19.9f, u_bands));
+ // use of VLC and ISO frequency settings
+
+ log ("Testing equalizer use of VLC and ISO frequency settings\n");
+
+ assert (false != libvlc_audio_equalizer_is_using_vlc_frequencies (equalizer));
+ assert (0 == libvlc_audio_equalizer_set_using_vlc_frequencies (equalizer, false));
+ assert (false == libvlc_audio_equalizer_is_using_vlc_frequencies (equalizer));
+
// no equalizer
log ("Testing release NULL\n");
--
1.7.10.4
More information about the vlc-devel
mailing list