10 #ifndef __IRR_KLANG_H_INCLUDED__
11 #define __IRR_KLANG_H_INCLUDED__
37 #define IRR_KLANG_VERSION "1.5.0"
912 #if defined(IRRKLANG_STATIC)
915 #if (defined(WIN32) || defined(WIN64) || defined(_MSC_VER))
916 #ifdef IRRKLANG_EXPORTS
917 #define IRRKLANG_API __declspec(dllexport)
919 #define IRRKLANG_API __declspec(dllimport)
920 #endif // IRRKLANG_EXPORT
922 #define IRRKLANG_API __attribute__((visibility("default")))
923 #endif // defined(WIN32) || defined(WIN64)
924 #endif // IRRKLANG_STATIC
926 #if defined(_STDCALL_SUPPORTED)
927 #define IRRKLANGCALLCONV __stdcall // Declare the calling convention.
929 #define IRRKLANGCALLCONV
930 #endif // STDCALL_SUPPORTED
955 const char* deviceID = 0,
996 ISoundEngine* irrKlangDeviceForPlayback,
998 const char* deviceID = 0,
1029 const wchar_t* pInputString,
char* pOutputBuffer,
int outputBufferSize);
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...
Everything in the irrKlang Sound Engine can be found in this namespace.
#define IRR_KLANG_VERSION
irrKlang Version
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...