• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Reflector Driver Again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reflector Driver Again


  • Subject: Reflector Driver Again
  • From: Kevin Kicklighter <email@hidden>
  • Date: Tue, 6 Dec 2005 17:34:05 -0500

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
To: CoreAudio API <email@hidden>
Message-ID: <email@hidden">email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Reflector Driver Again (From: Kevin Kicklighter <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: AudioOuputUnitStop
  • Previous by thread: Reflector Driver Again
  • Next by thread: Re: Reflector Driver Again
  • Index(es):
    • Date
    • Thread