Confirm that audio IRQ works (used for Geiger counter)
authorAndreas Eversberg <jolly@eversberg.eu>
Sat, 5 May 2018 20:55:08 +0000 (22:55 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Sat, 5 May 2018 20:55:08 +0000 (22:55 +0200)
src/libsound/sound.c
src/mercenary/main.c

index 4073d8c..d1d05eb 100644 (file)
@@ -91,7 +91,7 @@ static void do_irq(int __attribute__((unused)) c, struct audio_channel *chan)
 #ifdef DEBUG_SOUND
                printf("Audio channel %d: IRQ is triggered\n", c);
 #endif
-               print_info("Audio channel %d: IRQ is triggered, please report to author!\n", c);
+               /* IRQ is used for geiger counter */
                sound_irq();
        }
 }
index 3dce713..260fd6f 100644 (file)
@@ -1270,6 +1270,7 @@ void audio_sdl(float *data, int length)
        sound_buffer_readp =(sound_buffer_readp + length) % sound_buffer_size;
 }
 
+/* used for geier counter */
 void sound_irq(void)
 {
        /* trigger and execute IRQ 4 = sound */