Though I think that high-quality sound output is already better served by other 
libraries (OSS, ESound, ALSA, Arts) I think it's reasonable to include limited 
sound support in PicoGUI. Through Driver Messages PicoGUI already supports key-
click and beep sounds. It is easy to add more sounds by adding lines to 
constants.h. The beep sound is already used for terminal emulation. The 
keyclick sound can be turned on and off in the configuration file, but 
currently no driver implements it.

The one snag I can think of that's involved with adding simple sound support 
via Driver Messages is: where do you put the sound driver code? So far, sound 
driver messages are only implemented in the sdlfb and serial40x4 drivers. Both 
of these drivers are mainly for video, but can also handle sound. On an 
embedded system though, it's a harder choice. fbdev is a great generic device 
that works on nearly any embedded system, but sound hardware varies greatly. 
Often embedded systems will all require a specialized input driver, so the 
sound could be integrated with that. But this isn't really a clean solution. 
The code for implementing input drivers really isn't specific to input- maybe 
PicoGUI could have video drivers and generic drivers, rather than video drivers 
and input drivers. This way systems with fbdev video and some sort of standard 
input could still have yet another driver for power management.

Quoting Pascal Bauermeister <[EMAIL PROTECTED]>:

> Hello Micah,
> 
> we'd like to add sound playing to the theme system. In short, we'd like
> to:
> - play a beep/click/melody upon various GUI events
> - provide applications with a library of named sounds
>    (e.g. phon ringing, low battery, etc.)
> 
> The theme system is a great place to manage and customize sounds.
> Currently we want to play simple beep (freq+duration) sequences (but no
> doubt someone will want to play high quality sound some day ...)
> 
> Can you explain me in details (or give pointers to) the current and
> foreseen (if any, so far) state of sound integration ?
> 
> Many thanks,
> 
>    Pascal.
> 
> 
> 
> 
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel
> 



--
Only you can prevent creeping featurism!

_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to