Michael Sweet wrote: > Alvin wrote: >> Hello, >> >> Anyone know how to get fl_beep() to use the sounds defined in KDE System >> Notifications or any other desktop environment under Linux? >> >> Looking at the source for fl_beep, it seems like for all >> non-(windows|apple) OSes, fl_beep simply calls XBell(). > > Last time I looked you had to bring in a lot of the corresponding > desktop libraries just to do a beep... We *could* add basic audio > support to the FLTK core - the code is in the blocks and sudoku games > already, and we'd only need to support playing 16-bit (signed) stereo > samples at 8-48kHz. The "extras" library could include code to load > and play audio files... >
Strangely enough, I tried googling for how to initiate the event via KDE and came up with nothing. I made some custom Information, Warning and Error dialogs that I thought having the "system's" sound for the beep would be cool. In the past I used SDL_mixer, but, for this app (an MTP media browser), it doesn't make sense to bring in SDL for that. I will take a look at sudoku and see what I can rip^H^H^Hborrow :). If I am able to abstract the audio code and make it reuseable, perhaps I will submit a libfltk_audio RFE. I'm thinking of something akin to libfltk_images. I can eve imagine seeing a --use-audio swithc in fltk-config. Perhaps I'm just getting ahead of myself here :) Thanks for the pointer. -- Alvin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

