
It`s uses only OpenAL. I plan to improve it in few days for playing vorbis ogg files and maybe deeply integrate with ORGE.
Here is code:http://tool.hotbox.ru/SoundManager.zip(plugin+demo)
I hope this will be useful for someone...
Code: Select all
--------------------Configuration: Plugin_SoundManager - Win32 Release--------------------
Linking...
Creating library ..\bin\Release/plugin_SoundManager.lib and object ..\bin\Release/plugin_SoundManager.exp
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alListenerfv
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alDopplerVelocity
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alDopplerFactor
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alListenerf
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alGetError
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alGetError
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alcMakeContextCurrent
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alcCreateContext
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alcOpenDevice
SoundManager.obj : error LNK2001: unresolved external symbol _alutExit
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alcCloseDevice
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alcDestroyContext
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alcGetContextsDevice
SoundManager.obj : error LNK2001: unresolved external symbol __imp__alcGetCurrentContext
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alDeleteBuffers
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alDeleteSources
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alSourceStopv
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alSourceStop
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alSourcei
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alSourcef
SoundObject.obj : error LNK2001: unresolved external symbol _alutUnloadWAV
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alBufferData
SoundObject.obj : error LNK2001: unresolved external symbol _alutLoadWAVFile
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alGenSources
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alGenBuffers
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alSourcePlay
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alSourcefv
SoundObject.obj : error LNK2001: unresolved external symbol __imp__alIsSource
..\bin\Release/plugin_SoundManager.dll : fatal error LNK1120: 27 unresolved externals
Error executing link.exe.
plugin_SoundManager.dll - 29 error(s), 0 warning(s)
Code: Select all
--------------------Configuration: Demo_Sound - Win32 Release--------------------
Compiling...
Sound.cpp
Linking...
Sound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall CSoundObject::Play(void)" (__imp_?Play@CSoundObject@@QAEXXZ)
Sound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall CSoundObject::AttachToObject(class Ogre::SceneNode *)" (__imp_?AttachToObject@CSoundObject@@QAEXPAVSceneNode@Ogre@@@Z)
Sound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class CSoundObject * __cdecl CSoundManager::CreateSound(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,boo
l)" (__imp_?CreateSound@CSoundManager@@SAPAVCSoundObject@@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@_N@Z)
Sound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall CSoundManager::SetListener(class Ogre::Camera *)" (__imp_?SetListener@CSoundManager@@QAEXPAVCamera@Ogre@@@Z)
Sound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class CSoundManager & __cdecl CSoundManager::getSingleton(void)" (__imp_?getSingleton@CSoundManager@@SAAAV1@XZ)
Sound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall CSoundManager::Update(void)" (__imp_?Update@CSoundManager@@QAEXXZ)
../../Common/Bin/Release/Demo_Sound.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
Demo_Sound.exe - 7 error(s), 0 warning(s)
Yes! It`s just for my needs of course =) I but in this state it wil be fine for my project and such 'deeply' integration is not neededpjcast wrote:However, when you say deeply integrate with OGRE, don't expect the OGRE team to accept any patches that add audio to the engine, they want to keep it clean, and only have graphics rendering in it.
Cant seem to locate the 'alut.lib' anywhere. Was I supposed to compile some 3rd party thing before this? :OLINK : fatal error LNK1181: cannot open input file 'alut.lib'
I imagine I am missing something obvious again.Error #: 10
Function: SoundObject::LoadOgg():217
Description: Ogg Vorbis extension not available!