From 6f7ca2daf591a9cc427e8174daf4a07f3e7728ab Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Sat, 16 Jul 2011 21:40:43 +0200 Subject: [PATCH] Now we can claim to implement the whole gestalt_Sound2 suite --- libchimara/gestalt.c | 5 ++--- tests/soundtest.c | 10 +--------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/libchimara/gestalt.c b/libchimara/gestalt.c index 2b6c29c..46e640d 100644 --- a/libchimara/gestalt.c +++ b/libchimara/gestalt.c @@ -130,6 +130,7 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen) case gestalt_SoundVolume: case gestalt_SoundNotify: case gestalt_SoundMusic: + case gestalt_Sound2: #ifdef GSTREAMER_SOUND return 1; #else @@ -137,9 +138,7 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen) #endif /* Unsupported capabilities */ - /* We do not support the entire new sound suite yet */ - case gestalt_Sound2: - return 0; + /* none! */ /* Selector not supported */ default: diff --git a/tests/soundtest.c b/tests/soundtest.c index b0a3800..5540624 100644 --- a/tests/soundtest.c +++ b/tests/soundtest.c @@ -8,18 +8,10 @@ void glk_main(void) { - if(!glk_gestalt(gestalt_Sound, 0)) { + if(!glk_gestalt(gestalt_Sound2, 0)) { fprintf(stderr, "Sound not supported.\n"); return; } - if(!glk_gestalt(gestalt_SoundVolume, 0)) { - fprintf(stderr, "Sound volume not supported.\n"); - return; - } - if(!glk_gestalt(gestalt_SoundNotify, 0)) { - fprintf(stderr, "Sound notification not supported.\n"); - return; - } schanid_t sc[NUM_CHANNELS]; int count; -- 2.30.2