Thanks for the response Jeff.
Issue #1:
I am using IOLog in the clipOutputSamples() and my complete sample data does not get printed out.
My Code:
for (int i=0;i<theNumberSamples;i++) {
IOLog("%x ",theTargetBuffer[theFirstSample + i]);
}
This is called under the inFormat->fBitWidth of 32 case on the switch, each time through, it is in LE format which.
Issue #2:
Can you please verify that my understanding is correct in the following:
I should be able to play music, via iTunes, NSSound (Cocoa) classes, DVD Player or whatever to the ARDevice (as selected by the system preferences sound option), and the AudioReflector logic takes this output (then calls clipOutputSamples) and reproduces it as an input for other programs to read. Some portion of the AudioEngine takes theTargetBuffer from clipOutputSamples and feeds it into the convertInputSamples()
I've set up my ComplexPlayThru to read from the ARDevice (input and my ARDevice does show up in the drop downs) and play it to the output device of "Built-in Audio". Should I be able to hear the audio? I don't and think that I should.
Issue #3:
I'm wondering if this isn't all related to my AudioReflectorDriver not compiling originally.
Back on November 21 I sent an email to the list about it not compiling, below is text from the error.
ARTimeStampGenerator.cpp at line 80, the statement clock_get_uptime
((AbsoluteTime*)&mStartTime); should not have the argument casted,
removing the cast fixes it.
I got it to compile, it would run, I would see log messages in the system.log but the device would not show up in the System Preferences Sound option. So after poking around found that the difference in the PhantomAudioDriver and the AudioReflectorDriver was that the AudioReflectorDriver's Info.plist did not have 2 fields NumBlocks and BlockSize, which I set to 32 and 512 respectively, and then it showed up in the DeviceList. It's weird b/c it should have worked in AREngine::init(). I didn't debug it.
Thanks a ton, if you can give me a clue.
Kevin.
Subject: Re: ReflectorDriver
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed