[Stk] RtWvIn and WvIn
Gary Scavone
gary@ccrma.Stanford.EDU
Thu, 31 Oct 2002 09:20:00 -0800 (PST)
Hi Paul,
That should work. We do the same thing in utilities.cpp, in the demo
project. You might need some sort of explicit cast.
--gary
On Thu, 31 Oct 2002, P.J.Leonard wrote:
>>Hi,
>>
>> Trying to compile my code with the latest stk
>>
>> In older versions of STK it was possible to do something like
>>
>>
>> WvIn *in;
>>
>>
>> switch() {
>> case 1: in = new RtWvIn();
>>
>> case 2: in = new WavWvIn();
>> }
>>
>> Now this appears to be no longer possible because RtWvIn uses
>>protected inheritance.
>>
>> The old scheme was nice because you could switch from real time input
>>to reading from a file. I have not looked at the 4.0 release in detail
>>so I may missing something.
>>
>>
>> cheers Paul.