00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef OSDL_AUDIO_COMMON_H_
00028 #define OSDL_AUDIO_COMMON_H_
00029
00030
00031
00032 #include "OSDLException.h"
00033
00034
00035
00036
00037 namespace OSDL
00038 {
00039
00040
00041 namespace Audio
00042 {
00043
00044
00045
00047 class OSDL_DLL AudioException: public OSDL::Exception
00048 {
00049
00050 public:
00051
00052
00053 AudioException( const std::string & reason ) :
00054 OSDL::Exception( reason )
00055 {
00056
00057 } ;
00058
00059
00060 virtual ~AudioException() throw()
00061 {
00062
00063 }
00064
00065 } ;
00066
00067
00068
00070 typedef Ceylan::Uint32 BufferSize ;
00071
00072
00073
00082 typedef Ceylan::Uint16 SampleFormat ;
00083
00084
00085
00097 typedef Ceylan::Uint16 ChannelFormat ;
00098
00099
00100
00109 typedef Ceylan::Uint16 ChannelNumber ;
00110
00111
00112
00117 typedef Ceylan::Uint32 ChunkSize ;
00118
00119
00120
00127 typedef Ceylan::Uint8 ListenerDistance ;
00128
00129
00130
00142 typedef Ceylan::Sint16 ListenerAngle ;
00143
00144
00145
00152 typedef Ceylan::Uint8 Volume ;
00153
00154
00155
00157 enum FadingStatus
00158 {
00159
00160 In,
00161 Out,
00162 None
00163
00164 } ;
00165
00166
00167 }
00168
00169 }
00170
00171
00172
00173 #endif // OSDL_AUDIO_COMMON_H_
00174