[Stk] Trouble with samples

Jeff Farr moogah at gmail.com
Tue Mar 29 16:10:07 PST 2005


I'm having trouble wrapping all thats needed to play a sample into a
class.  In particular I'm having trouble moving some of the steps into
seperate functions.  In the attached file if the function loadFile()
is used the .exe crashes (windows console) but if the code in the main
function is used it works fine.  The same is true of the initization
of the RtAudio object.  In a function it causes a crash (windows
reports that the .exe has encountered a problem and must shut down.)
while in the main() it works fine.  Perhaps I'm not handling my
pointers correctly?  I'm very sure of my project settings and included
files, but I won't rule that out completely.  Any  help is
appreciated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.cpp
Type: text/x-cpp
Size: 5526 bytes
Desc: not available
URL: <https://cm-mail.stanford.edu/pipermail/stk/attachments/20050329/969b75b0/attachment.bin>


More information about the Stk mailing list