summaryrefslogtreecommitdiff
path: root/examples/monitor.c
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-07-04 14:31:56 +0200
committerMichal Ratajsky <[email protected]>2014-07-04 14:31:56 +0200
commit4793cbd87fed50678215b5dc1ba8e708fd4c9b58 (patch)
treeb1a34657c1606fdea3ce14036c5f6fff9a3168ed /examples/monitor.c
parentb81d9ed11fae7bee59b67b1aee9927e417666875 (diff)
downloadlibmatemixer-4793cbd87fed50678215b5dc1ba8e708fd4c9b58.tar.bz2
libmatemixer-4793cbd87fed50678215b5dc1ba8e708fd4c9b58.tar.xz
Rename MateMixerProfile to MateMixerDeviceProfile and add number of streams in a profile
Diffstat (limited to 'examples/monitor.c')
-rw-r--r--examples/monitor.c22
1 files changed, 13 insertions, 9 deletions
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;
}