RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
irrKlang.h
Go to the documentation of this file.
1 /* irrKlang.h -- interface of the 'irrKlang' library
2 
3  Copyright (C) 2002-2014 Nikolaus Gebhardt
4 
5  This software is provided 'as-is', without any express or implied
6  warranty. In no event will the authors be held liable for any damages
7  arising from the use of this software.
8 */
9 
10 #ifndef __IRR_KLANG_H_INCLUDED__
11 #define __IRR_KLANG_H_INCLUDED__
12 
13 #include "ik_irrKlangTypes.h"
14 #include "ik_vec3d.h"
15 
16 #include "ik_IRefCounted.h"
17 #include "ik_IVirtualRefCounted.h"
18 
19 #include "ik_ESoundOutputDrivers.h"
20 #include "ik_ESoundEngineOptions.h"
21 #include "ik_EStreamModes.h"
22 #include "ik_SAudioStreamFormat.h"
23 #include "ik_ISoundEngine.h"
24 #include "ik_ISoundSource.h"
25 #include "ik_ISound.h"
26 #include "ik_IAudioStream.h"
27 #include "ik_IAudioStreamLoader.h"
28 #include "ik_ISoundEffectControl.h"
30 #include "ik_IFileFactory.h"
31 #include "ik_IFileReader.h"
32 #include "ik_ISoundDeviceList.h"
33 #include "ik_IAudioRecorder.h"
35 
37 #define IRR_KLANG_VERSION "1.5.0"
38 
912 #if defined(IRRKLANG_STATIC)
913  #define IRRKLANG_API
914 #else
915  #if (defined(WIN32) || defined(WIN64) || defined(_MSC_VER))
916  #ifdef IRRKLANG_EXPORTS
917  #define IRRKLANG_API __declspec(dllexport)
918  #else
919  #define IRRKLANG_API __declspec(dllimport)
920  #endif // IRRKLANG_EXPORT
921  #else
922  #define IRRKLANG_API __attribute__((visibility("default")))
923  #endif // defined(WIN32) || defined(WIN64)
924 #endif // IRRKLANG_STATIC
925 
926 #if defined(_STDCALL_SUPPORTED)
927 #define IRRKLANGCALLCONV __stdcall // Declare the calling convention.
928 #else
929 #define IRRKLANGCALLCONV
930 #endif // STDCALL_SUPPORTED
931 
933 namespace irrklang
934 {
936 
954  int options = ESEO_DEFAULT_OPTIONS,
955  const char* deviceID = 0,
956  const char* sdk_version_do_not_use = IRR_KLANG_VERSION);
957 
958 
960 
973  const char* sdk_version_do_not_use = IRR_KLANG_VERSION);
974 
975 
977 
996  ISoundEngine* irrKlangDeviceForPlayback,
998  const char* deviceID = 0,
999  const char* sdk_version_do_not_use = IRR_KLANG_VERSION);
1000 
1002 
1014  const char* sdk_version_do_not_use = IRR_KLANG_VERSION);
1015 
1016 
1018 
1029  const wchar_t* pInputString, char* pOutputBuffer, int outputBufferSize);
1030 
1031 
1032 } // end namespace irrklang
1033 
1034 
1039 #endif
1040 
IRRKLANG_API ISoundEngine *IRRKLANGCALLCONV createIrrKlangDevice(E_SOUND_OUTPUT_DRIVER driver=ESOD_AUTO_DETECT, int options=ESEO_DEFAULT_OPTIONS, const char *deviceID=0, const char *sdk_version_do_not_use=IRR_KLANG_VERSION)
Creates an irrKlang device. The irrKlang device is the root object for using the sound engine...
#define IRRKLANGCALLCONV
Definition: irrKlang.h:929
Everything in the irrKlang Sound Engine can be found in this namespace.
#define IRR_KLANG_VERSION
irrKlang Version
Definition: irrKlang.h:37
E_SOUND_OUTPUT_DRIVER
An enumeration for all types of supported sound drivers.
IRRKLANG_API bool IRRKLANGCALLCONV makeUTF8fromUTF16string(const wchar_t *pInputString, char *pOutputBuffer, int outputBufferSize)
Converts a wchar_t string to an utf8 string, useful when using Windows in unicode mode...
IRRKLANG_API ISoundDeviceList *IRRKLANGCALLCONV createSoundDeviceList(E_SOUND_OUTPUT_DRIVER driver=ESOD_AUTO_DETECT, const char *sdk_version_do_not_use=IRR_KLANG_VERSION)
Creates a list of available sound devices for the driver type.
IRRKLANG_API ISoundDeviceList *IRRKLANGCALLCONV createAudioRecorderDeviceList(E_SOUND_OUTPUT_DRIVER driver=ESOD_AUTO_DETECT, const char *sdk_version_do_not_use=IRR_KLANG_VERSION)
Creates a list of available recording devices for the driver type.
Default parameters when starting up the engine.
Autodetects the best sound driver for the system.
IRRKLANG_API IAudioRecorder *IRRKLANGCALLCONV createIrrKlangAudioRecorder(ISoundEngine *irrKlangDeviceForPlayback, E_SOUND_OUTPUT_DRIVER driver=ESOD_AUTO_DETECT, const char *deviceID=0, const char *sdk_version_do_not_use=IRR_KLANG_VERSION)
Creates an irrKlang audio recording device. The IAudioRecorder is the root object for recording audio...
#define IRRKLANG_API
Definition: irrKlang.h:922