It sounds like you're just not telling the compiler to link the right thing. If it were a matter of the library not being supported, you would be told that the library wasn't there, or you'd get an error before linking. Open properties for the project and go to<br>
Configuration Properties > Linker > Input and make sure that Dsound.lib is there.<br>If it is already there, then perhaps, somehow, your WinDef.h is confused and so the WINAPI macro is defined wrong when you include <dsound.h> and consequently the function signature doesn't match the one found in dsound.lib.<br>
<br>jc<br><br><div class="gmail_quote">On Thu, Mar 10, 2011 at 12:06 AM, Nick <span dir="ltr"><<a href="mailto:caprice24@yahoo.com">caprice24@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top"><div>Hi,</div>
<div>I'm having trouble with the following cpp files:</div>
<div>RtAudio</div>
<div>RTMidi</div>
<div>RtWvIn</div>
<div>RtWvOut</div>
<div> </div>
<div>which I understand make use of DirectSound API in Windows. Since I'm running Windows 7 on a 64 bit laptop, I'm wondering if the reason these files are failing to link is because DirectSound is no longer supported on Win 7?</div>
<div> </div>
<div>I do have the preprocessor directive _WINDOWS_DS_ specified on the C++ command line build argument with Visual Studio 2010.</div>
<div> </div>
<div>Errors from the compile are shown below.</div>
<div> </div>
<div>Thanks,</div>
<div>Nick</div>
<div> </div><font face="Consolas" size="1"><font face="Consolas" size="1">
<div>1>RtAudio.obj : error LNK2019: unresolved external symbol _DirectSoundCaptureEnumerateA@8 referenced in function "public: virtual unsigned int __thiscall RtApiDs::getDeviceCount(void)" (?getDeviceCount@RtApiDs@@UAEIXZ)</div>
<div>1>RtAudio.obj : error LNK2019: unresolved external symbol _DirectSoundEnumerateA@8 referenced in function "public: virtual unsigned int __thiscall RtApiDs::getDeviceCount(void)" (?getDeviceCount@RtApiDs@@UAEIXZ)</div>
<div>1>RtAudio.obj : error LNK2019: unresolved external symbol _DirectSoundCaptureCreate@12 referenced in function "public: virtual struct RtAudio::DeviceInfo __thiscall RtApiDs::getDeviceInfo(unsigned int)" (?getDeviceInfo@RtApiDs@@UAE?AUDeviceInfo@RtAudio@@I@Z)</div>
<div>1>RtAudio.obj : error LNK2019: unresolved external symbol _DirectSoundCreate@12 referenced in function "public: virtual struct RtAudio::DeviceInfo __thiscall RtApiDs::getDeviceInfo(unsigned int)" (?getDeviceInfo@RtApiDs@@UAE?AUDeviceInfo@RtAudio@@I@Z)</div>
<div>1>RtWvIn.obj : error LNK2019: unresolved external symbol "public: void __thiscall stk::Mutex::unlock(void)" (?unlock@Mutex@stk@@QAEXXZ) referenced in function "public: void __thiscall stk::RtWvIn::fillBuffer(void *,unsigned int)" (?fillBuffer@RtWvIn@stk@@QAEXPAXI@Z)</div>
<div>1>RtWvOut.obj : error LNK2001: unresolved external symbol "public: void __thiscall stk::Mutex::unlock(void)" (?unlock@Mutex@stk@@QAEXXZ)</div>
<div>1>RtWvIn.obj : error LNK2019: unresolved external symbol "public: void __thiscall stk::Mutex::lock(void)" (?lock@Mutex@stk@@QAEXXZ) referenced in function "public: void __thiscall stk::RtWvIn::fillBuffer(void *,unsigned int)" (?fillBuffer@RtWvIn@stk@@QAEXPAXI@Z)</div>
<div>1>RtWvOut.obj : error LNK2001: unresolved external symbol "public: void __thiscall stk::Mutex::lock(void)" (?lock@Mutex@stk@@QAEXXZ)</div>
<div>1>RtWvIn.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall stk::Mutex::~Mutex(void)" (??1Mutex@stk@@UAE@XZ) referenced in function "public: virtual __thiscall stk::RtWvIn::~RtWvIn(void)" (??1RtWvIn@stk@@UAE@XZ)</div>
<div>1>RtWvOut.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall stk::Mutex::~Mutex(void)" (??1Mutex@stk@@UAE@XZ)</div>
<div>1>RtWvIn.obj : error LNK2019: unresolved external symbol "public: __thiscall stk::Mutex::Mutex(void)" (??0Mutex@stk@@QAE@XZ) referenced in function "public: __thiscall stk::RtWvIn::RtWvIn(unsigned int,double,int,int,int)" (??0RtWvIn@stk@@QAE@INHHH@Z)</div>
<div>1>RtWvOut.obj : error LNK2001: unresolved external symbol "public: __thiscall stk::Mutex::Mutex(void)" (??0Mutex@stk@@QAE@XZ)</div>
<div>1>.\sine.exe : fatal error LNK1120: 8 unresolved externals</div>
<div>1></div>
<div>1>Build FAILED.</div>
<div>1></div>
<div>1>Time Elapsed 00:00:10.83</div>
<div>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</div></font></font></td></tr></tbody></table><br>
<br>_______________________________________________<br>
Stk mailing list<br>
<a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
<a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>
<br></blockquote></div><br>