Skip to main content
gamedev.net
🔒 Locked

Direct Sound

Started by Scooter 2 replies 2.3k views
Original Post
Scooter
Scooter
When i try to get direct sound up and running using what comes with the SDK documentation i''m getting: dxguid.lib(dxguid.obj) : error LNK2005: _DS3DALG_HRTF_LIGHT already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _DS3DALG_HRTF_FULL already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _DS3DALG_NO_VIRTUALIZATION already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IKsPropertySet already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectSoundNotify already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectSoundCaptureBuffer already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectSoundCapture already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectSound3DBuffer already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectSound3DListener already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectSoundBuffer already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectSound already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _CLSID_DirectSoundCapture already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _CLSID_DirectSound already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectDrawGammaControl already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectDrawColorControl already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectDrawClipper already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectDrawPalette already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectDrawSurface7 already defined in playsound.obj already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectDrawSurface already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectDraw7 already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _IID_IDirectDraw already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _CLSID_DirectDrawClipper already defined in playsound.obj dxguid.lib(dxguid.obj) : error LNK2005: _CLSID_DirectDraw7 already defined in playsound.obj playsound.obj : error LNK2001: unresolved external symbol "void __cdecl OnEnablePlayUI(struct HWND__ *,int)" (?OnEnablePlayUI@@YAXPAUHWND__@@H@Z) playsound.obj : error LNK2001: unresolved external symbol "void __cdecl SetFileUI(struct HWND__ *,char *)" (?SetFileUI@@YAXPAUHWND__@@PAD@Z) Debug/MyProgram.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. sorry for that but HELP ?
We are here just like this,It really doesn't matter why.The world is here like it is,'We could laugh we could cry.Is it good or is it bad,Wright or maybe wrong?There's no use of being sad,Without a purpose within a song.
DisKordCoder
DisKordCoder
It looks like you''ve included a header file twice.

Playsound.h/cpp must have a:
#include

aswell as somewhere else.

Scooter
Scooter
oh yeah, i seeeeee. Wasn''t paying attention, boy i feel dumb. Thanks!
We are here just like this,It really doesn't matter why.The world is here like it is,'We could laugh we could cry.Is it good or is it bad,Wright or maybe wrong?There's no use of being sad,Without a purpose within a song.
furby100
furby100
If you are adding dxguid.lib to your project, you shouldn''t #define INITGUID or include objbase.h in your project. And vice-versa.

------------------------------
#pragma twice


sharewaregames.20m.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.