<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi Joseph,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks that was helpful and it now works.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Now I have a different question. When I create a pure sine wave with the sine example in the projects folder, I noticed that the frequency that when playing it back throught he dac-&gt; tick, I get a slightly different frequency that is played back than when it is played back through the Windows Media player as a wave file. Could it be that somehow the sampling frequency information is not being correctly put into the wave file?&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>It is noticable, the dac-&gt;tick plays the A 440 (at 48 KHz sampling) a whole tone lower than the A 440 which plays back through Windows Media player when I generate the wave file.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any ideas what I'm doing wrong?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Nick<BR>--- On <B>Thu, 3/10/11, Joseph Cooper <I>&lt;josephcooper@gmail.com&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Joseph Cooper &lt;josephcooper@gmail.com&gt;<BR>Subject: Re: [Stk] DirectSound on Windows 7?<BR>To: "Nick" &lt;caprice24@yahoo.com&gt;<BR>Cc: stk@ccrma.stanford.edu<BR>Date: Thursday, March 10, 2011, 8:06 AM<BR><BR>
<DIV id=yiv241185010>It sounds like you're just not telling the compiler to link the right thing.&nbsp; 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.&nbsp; Open properties for the project and go to<BR>Configuration Properties &gt; Linker &gt; 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 &lt;dsound.h&gt; and consequently the function signature doesn't match the one found in dsound.lib.<BR><BR>jc<BR><BR>
<DIV class=yiv241185010gmail_quote>On Thu, Mar 10, 2011 at 12:06 AM, Nick <SPAN dir=ltr>&lt;<A href="http://us.mc1614.mail.yahoo.com/mc/compose?to=caprice24@yahoo.com" rel=nofollow target=_blank ymailto="mailto:caprice24@yahoo.com">caprice24@yahoo.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=yiv241185010gmail_quote>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD 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>&nbsp;</DIV>
<DIV>which I understand make use of DirectSound API in Windows.&nbsp;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>&nbsp;</DIV>
<DIV>I do have the preprocessor directive _WINDOWS_DS_&nbsp;&nbsp; specified on the C++ command line build argument with Visual Studio 2010.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Errors from the compile are shown below.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Nick</DIV>
<DIV>&nbsp;</DIV><FONT size=1 face=Consolas><FONT size=1 face=Consolas>
<DIV>1&gt;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&gt;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&gt;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&gt;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&gt;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&gt;RtWvOut.obj : error LNK2001: unresolved external symbol "public: void __thiscall stk::Mutex::unlock(void)" (?unlock@Mutex@stk@@QAEXXZ)</DIV>
<DIV>1&gt;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&gt;RtWvOut.obj : error LNK2001: unresolved external symbol "public: void __thiscall stk::Mutex::lock(void)" (?lock@Mutex@stk@@QAEXXZ)</DIV>
<DIV>1&gt;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&gt;RtWvOut.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall stk::Mutex::~Mutex(void)" (??1Mutex@stk@@UAE@XZ)</DIV>
<DIV>1&gt;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&gt;RtWvOut.obj : error LNK2001: unresolved external symbol "public: __thiscall stk::Mutex::Mutex(void)" (??0Mutex@stk@@QAE@XZ)</DIV>
<DIV>1&gt;.\sine.exe : fatal error LNK1120: 8 unresolved externals</DIV>
<DIV>1&gt;</DIV>
<DIV>1&gt;Build FAILED.</DIV>
<DIV>1&gt;</DIV>
<DIV>1&gt;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="http://us.mc1614.mail.yahoo.com/mc/compose?to=Stk@ccrma.stanford.edu" rel=nofollow target=_blank ymailto="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</A><BR><A href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" rel=nofollow target=_blank>http://ccrma-mail.stanford.edu/mailman/listinfo/stk</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></td></tr></table><br>