diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-12-06 18:59:21 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-12-06 18:59:21 +0000 |
| commit | bed8043ef2ae6f8fe461ce85c5ce4c12cc354f6e (patch) | |
| tree | 742b4c2c9e43754c4a75d132896e71759efb8c70 /test | |
| parent | 887698cb8570aff1a2d0eaecdb148fe61a64d91b (diff) | |
Add sound design notes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
| -rw-r--r-- | test/sudoku.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
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__ |
