From 4793cbd87fed50678215b5dc1ba8e708fd4c9b58 Mon Sep 17 00:00:00 2001 From: Michal Ratajsky Date: Fri, 4 Jul 2014 14:31:56 +0200 Subject: Rename MateMixerProfile to MateMixerDeviceProfile and add number of streams in a profile --- examples/monitor.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'examples') diff --git a/examples/monitor.c b/examples/monitor.c index ba0458d..e3ab0d6 100644 --- a/examples/monitor.c +++ b/examples/monitor.c @@ -79,10 +79,10 @@ create_volume_bar (MateMixerStream *stream, double *percent) static void print_devices (void) { - const GList *devices; - const GList *ports; - const GList *profiles; - MateMixerProfile *active_profile; + const GList *devices; + const GList *ports; + const GList *profiles; + MateMixerDeviceProfile *active_profile; devices = mate_mixer_control_list_devices (control); @@ -117,17 +117,21 @@ print_devices (void) active_profile = mate_mixer_device_get_active_profile (device); while (profiles) { - MateMixerProfile *profile = MATE_MIXER_PROFILE (profiles->data); + MateMixerDeviceProfile *profile = MATE_MIXER_DEVICE_PROFILE (profiles->data); g_print (" |%c| Profile %s\n" " |-| Description : %s\n" - " |-| Priority : %lu\n\n", + " |-| Priority : %u\n" + " |-| Inputs : %u\n" + " |-| Outputs : %u\n\n", (profile == active_profile) ? 'A' : '-', - mate_mixer_profile_get_name (profile), - mate_mixer_profile_get_description (profile), - mate_mixer_profile_get_priority (profile)); + mate_mixer_device_profile_get_name (profile), + mate_mixer_device_profile_get_description (profile), + mate_mixer_device_profile_get_priority (profile), + mate_mixer_device_profile_get_num_input_streams (profile), + mate_mixer_device_profile_get_num_output_streams (profile)); profiles = profiles->next; } -- cgit v1.2.1