root/juggler/branches/2.2/modules/sonix/snx/SoundAPIInfo.h
| Revision 19729, 2.0 kB (checked in by patrick, 2 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | /****************** <SNX heading BEGIN do not edit this line> ***************** |
| 2 | * |
| 3 | * sonix |
| 4 | * |
| 5 | * Original Authors: |
| 6 | * Kevin Meinert, Carolina Cruz-Neira |
| 7 | * |
| 8 | ****************** <SNX heading END do not edit this line> ******************/ |
| 9 | |
| 10 | /*************** <auto-copyright.pl BEGIN do not edit this line> ************** |
| 11 | * |
| 12 | * VR Juggler is (C) Copyright 1998-2007 by Iowa State University |
| 13 | * |
| 14 | * Original Authors: |
| 15 | * Allen Bierbaum, Christopher Just, |
| 16 | * Patrick Hartling, Kevin Meinert, |
| 17 | * Carolina Cruz-Neira, Albert Baker |
| 18 | * |
| 19 | * This library is free software; you can redistribute it and/or |
| 20 | * modify it under the terms of the GNU Library General Public |
| 21 | * License as published by the Free Software Foundation; either |
| 22 | * version 2 of the License, or (at your option) any later version. |
| 23 | * |
| 24 | * This library is distributed in the hope that it will be useful, |
| 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 27 | * Library General Public License for more details. |
| 28 | * |
| 29 | * You should have received a copy of the GNU Library General Public |
| 30 | * License along with this library; if not, write to the |
| 31 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 32 | * Boston, MA 02111-1307, USA. |
| 33 | * |
| 34 | *************** <auto-copyright.pl END do not edit this line> ***************/ |
| 35 | |
| 36 | #ifndef SNX_SOUND_API_INFO |
| 37 | #define SNX_SOUND_API_INFO |
| 38 | |
| 39 | #include <snx/snxConfig.h> |
| 40 | |
| 41 | namespace snx |
| 42 | { |
| 43 | |
| 44 | /** \class SoundAPIInfo SoundAPIInfo.h snx/SoundAPIInfo.h |
| 45 | * |
| 46 | * API-specific sound informational data type. |
| 47 | */ |
| 48 | class SoundAPIInfo |
| 49 | { |
| 50 | public: |
| 51 | SoundAPIInfo() |
| 52 | : voices(65535) |
| 53 | , speakerConfig(STEREO) |
| 54 | , sampleRate(STEREO_22050_KHZ) |
| 55 | {} |
| 56 | |
| 57 | int voices; // 0 - n (hardware limited) |
| 58 | |
| 59 | enum SpeakerConfig |
| 60 | { |
| 61 | MONO, |
| 62 | STEREO, |
| 63 | QUAD, |
| 64 | DOLBY5_1, |
| 65 | OCT |
| 66 | }; |
| 67 | |
| 68 | SpeakerConfig speakerConfig; |
| 69 | |
| 70 | enum SampleRate |
| 71 | { |
| 72 | STEREO_22050_KHZ, |
| 73 | MONO_22050_KHZ, |
| 74 | STEREO_44100_KHZ, |
| 75 | MONO_44100_KHZ |
| 76 | }; |
| 77 | |
| 78 | SampleRate sampleRate; |
| 79 | }; |
| 80 | |
| 81 | } // end namespace |
| 82 | |
| 83 | #endif //SNX_SOUND_API_INFO |
Note: See TracBrowser for help on using the browser.
