[Stk] delete instrument then reuse
Dan Riley
dpriley at ucla.edu
Sun Mar 2 15:23:37 PST 2003
Hi, I'm trying to play an instrument and then switch to a different type of instrument and play it.
So basically I have an m_instrument object and an m_output object. At the beginning they are set to a BeeThree and an RTWavOut(1) respectively and it works fine I get some sound. Then when I want to switch the instrument, I do something like:
delete m_instrument;
m_instrument = new WhateverInstrument();
however when I go back to play it I get no sound. Do I need to delete and reallocate the output object as well?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/stk/attachments/20030302/23a60766/attachment.html>
More information about the Stk
mailing list