From bed8043ef2ae6f8fe461ce85c5ce4c12cc354f6e Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 6 Dec 2005 18:59:21 +0000 Subject: [PATCH] Add sound design notes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/sudoku.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/sudoku.cxx b/test/sudoku.cxx index 925c3da2d..840b49a46 100644 --- a/test/sudoku.cxx +++ b/test/sudoku.cxx @@ -69,7 +69,18 @@ # define MENU_OFFSET 25 #endif // __APPLE__ -// Sound class +// Sound class for Sudoku... +// +// There are MANY ways to implement sound in a FLTK application. +// The approach we are using here is to conditionally compile OS- +// specific code into the application - CoreAudio for MacOS X, the +// standard Win32 API stuff for Windows, ALSA or X11 for Linux, and +// X11 for all others. We have to support ALSA on Linux because the +// current Xorg releases no longer support XBell() or the PC speaker. +// +// There are several good cross-platform audio libraries we could also +// use, such as OpenAL, PortAudio, and SDL, however they were not chosen +// for this application because of our limited use of sound. class SudokuSound { // Private, OS-specific data... #ifdef __APPLE__