Do not internationalize plugin-loader
[projects/chimara/chimara.git] / tests / soundtest.c
index 55759dc27b249d4ac5b32d22d7b4b1744a5add2f..5540624ad564da77b58481b81af23cbdb9cbe6a0 100644 (file)
@@ -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;
@@ -109,11 +101,11 @@ glk_main(void)
                                        glk_put_string("Ramping volume to ");
                                        if(ramp == 0) {
                                                glk_put_string("HALF.\n");
-                                               glk_schannel_set_volume_ext(sc[0], 0x8000, 1000, 42);
+                                               glk_schannel_set_volume_ext(sc[0], 0x8000, 3000, 42);
                                                ramp = 1;
                                        } else if(ramp == 1) {
                                                glk_put_string("FULL.\n");
-                                               glk_schannel_set_volume_ext(sc[0], 0x10000, 1000, 69);
+                                               glk_schannel_set_volume_ext(sc[0], 0x10000, 3000, 69);
                                                ramp = 0;
                                        }
                                } else if(strcmp(buffer, "multi") == 0) {