• 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
RE: avfoundation “error -10868”
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: avfoundation “error -10868”


  • Subject: RE: avfoundation “error -10868”
  • From: Waverly Edwards <email@hidden>
  • Date: Tue, 14 Apr 2015 20:23:12 +0000
  • Thread-topic: avfoundation “error -10868”

Understood.

 

I’ve been looking at this for issue for a couple of days and while I hope I am wrong, it appears to not be possible.  So far by trial and error I found that the only format accepted by the mixer is 32 bit floats, 2 channel, non-interleaved. If I change anyone of the attributes, I get an error.  I can create the buffer using integer data but I can’t use the mixer.  The point of the mixer for me was for prototyping as my original program did not use it, however I am now concerned because I wish to add effects that I did not have before, I would be forced to use float data. 

 

I started searching for anything relating to my issue and I found this

 

 

http://lists.apple.com/archives/coreaudio-api/2006/Jan/msg00034.html

 

“The Stereo Mixer will take an input that is either mono or stereo, linear pcm and Float 32. Float32 is the canonical format that all AUs accept and many (most) will *only* accept samples that are Float32. It will not accept inputs where the sample format is integer. The Output Unit will accept integer sample formats (as it provides conversion services).”

 

It appears I need to rethink my processes unless someone has a solution.

 

I’m still bouncing this around but I’m getting closer to my second request

 

My second question is how do I access the buffer directly or more specifically the stereo channels.  When I was using CoreAudio APIs (pre-Swift), I understood but now I’m lost.  In coreaudio, I previously used an interleaved buffer.  Would someone be kind enough to show me how I could access the channels in both interleaved and non-interleaved.

 

Thank you any assistance offered,

 

 

W.

 

 

From: Steven Clark [mailto:email@hidden]
Sent: Tuesday, April 14, 2015 2:26 PM
To: Waverly Edwards; email@hidden
Subject: RE: avfoundation “error -10868”

 

-10868 is kAudioUnitErr_FormatNotSupported

 

Found this in my notes, I don’t know if it came from documentation or perusing Apple’s .h files.  The macerror command doesn’t seem to know about it.

 

Steven J. Clark

VGo Communications

 

 _______________________________________________
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: 
 >avfoundation “error -10868” (From: Waverly Edwards <email@hidden>)
 >RE: avfoundation “error -10868” (From: Steven Clark <email@hidden>)

  • Prev by Date: RE: avfoundation “error -10868”
  • Next by Date: Re: avfoundation “error -10868”
  • Previous by thread: RE: avfoundation “error -10868”
  • Next by thread: Re: avfoundation “error -10868”
  • Index(es):
    • Date
    • Thread