00001 //------------------------------------------------------------------------------ 00002 // Lamp : Open source game middleware 00003 // Copyright (C) 2004 Junpei Ohtani ( Email : junpee@users.sourceforge.jp ) 00004 // 00005 // This library is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU Lesser General Public 00007 // License as published by the Free Software Foundation; either 00008 // version 2.1 of the License, or (at your option) any later version. 00009 // 00010 // This library is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 // Lesser General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public 00016 // License along with this library; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 //------------------------------------------------------------------------------ 00019 00020 /** @file 00021 * サウンド定義ヘッダ 00022 * @author Junpee 00023 */ 00024 00025 #ifndef SOUND_DEFINITION_H_ 00026 #define SOUND_DEFINITION_H_ 00027 00028 namespace Lamp{ 00029 00030 //------------------------------------------------------------------------------ 00031 /** 00032 * サウンド定義 00033 */ 00034 class SoundDefinition{ 00035 public: 00036 /// デフォルトフォーカス 00037 static const int defaultFocus; 00038 00039 /// ストリームバッファの秒数 00040 static const float streamBufferLength; 00041 00042 /// 距離係数 00043 static const float distanceFactor; 00044 00045 //-------------------------------------------------------------------------- 00046 /// プライマリバッファのビット数(8 or 16) 00047 static const u_int primaryBufferBit = 16;// 8 16 00048 00049 /// プライマリバッファのサンプリングレート 00050 static const u_int primaryBufferRate = 44100;// 22050 44100 00051 00052 /// プライマリバッファはステレオか 00053 static const bool primaryBufferStereo = true; 00054 00055 /// セカンダリバッファのビット数(8 or 16) 00056 static const u_int secondaryBufferBit = 16;// 8 16 00057 00058 /// セカンダリバッファのサンプリングレート 00059 static const u_int secondaryBufferRate = 44100;// 22050 44100 00060 00061 private: 00062 // コンストラクタの隠蔽 00063 SoundDefinition(); 00064 00065 }; 00066 00067 //------------------------------------------------------------------------------ 00068 } // End of namespace Lamp 00069 #endif // End of SOUND_DEFINITION_H_ 00070 //------------------------------------------------------------------------------