• 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
How to transmit customized data to IOAudioFamily
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to transmit customized data to IOAudioFamily


  • Subject: How to transmit customized data to IOAudioFamily
  • From: "David Tan" <email@hidden>
  • Date: Mon, 5 Jan 2009 19:12:20 +0800

Hi Apple,

 

Now I’m working on an applet which can transmit customized samples data to my KEXT audio driver.

I found useful source code from AudioFileTools provided at /Developer/Examples/CoreAudio/Services/AudioFileTools. It seems that “afplay” is similar to what I expect.

After examining the source code, I thought I can replace the actual audio data from audio file with my customized data at CAAudioFilePlayer::InputProc(). There’s a parameter “AudioBufferList* ioData” of this callback function.

As I understood, actual audio data will be filled into ioData and then CAAudioFilePlayer will transfer them to KEXT audio driver via CoreAudio.

 

However, after I implemented the replacement, I cannot hear anything from the headphone. So I put a breakpoint at IOAudioEngine::clipOutputSample() in my kernel-driver, and found that the samples in mixbuf are always zero.

That means I cannot get customized audio data from my applet.

 

Is there anything I misunderstood or missed? Any advice and suggestion will be much appreciated. Thanks a lot!

 

Sincerely yours,

David Tan

Dextrys Co., Ltd

 _______________________________________________
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

  • Follow-Ups:
    • Re: How to transmit customized data to IOAudioFamily
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Using AudioQueueOfflineRender...
  • Next by Date: Re: AudioQueueStart result code: -308
  • Previous by thread: Using AudioQueueOfflineRender...
  • Next by thread: Re: How to transmit customized data to IOAudioFamily
  • Index(es):
    • Date
    • Thread