<div>Thanks Gary. I tried the following:<br></div><div><br></div><div>g++ -Wall -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -o crtsine crtsine.cpp /usr/local/src/RtAudio.cpp -lpthread -lasound -lrt -lstk -I/usr/include/stk<br><br>
</div><div>And my output is still: </div><div><br></div><div>iain@musicbox:~/audio/stk/tutorials/crtsine$ ./crtsine<br><br>Playing ... press <enter> to quit.<br>Segmentation fault<br><br></div><div>I'm mucking about to see if I can spot what's different between playsaw and crtsine on this system.</div>
<div><br></div><div>iain</div><br><div class="gmail_quote">On Sun, Sep 11, 2011 at 6:50 AM, Gary Scavone <span dir="ltr"><<a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Iain,<br>
<br>
You might try compiling for the ALSA API (instead of Jack) to see if you have the same problem. I just ran both programs (rtsine and crtsine) on OS-X without any apparent problems.<br>
<br>
--gary<br>
<div><div class="h5"><br>
On 2011-09-10, at 10:23 PM, Iain Duncan wrote:<br>
<br>
> I am getting a segfault when running the crtsinetutorial, wondering where to start figuring that out. As mentioned in a different email, I was able to compile and play the playsaw.cpp test from RtAudio package, so I know RtAudio is working ok.<br>
><br>
> Works ok:<br>
><br>
> g++ -Wall -D__UNIX_JACK__ -D__LITTLE_ENDIAN__ -o playsaw playsaw.cpp ../RtAudio.cpp -lpthread -ljack -lrt<br>
><br>
> Doesn't work:<br>
><br>
> iain@musicbox:~/audio/stk/tutorials/crtsine$ g++ -Wall -D__UNIX_JACK__ -D__LITTLE_ENDIAN__ -o crtsine crtsine.cpp RtAudio.cpp -lpthread -ljack -lrt -lstk -I/usr/include/stk<br>
><br>
> iain@musicbox:~/audio/stk/tutorials/crtsine$ ./crtsine<br>
> SSE2 detected<br>
> SSE2 detected<br>
> SSE2 detected<br>
><br>
> Playing ... press <enter> to quit.<br>
> Segmentation fault<br>
><br>
> Thanks<br>
> Iain<br>
><br>
</div></div>> _______________________________________________<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>