• 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
3d mixer format error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

3d mixer format error


  • Subject: 3d mixer format error
  • From: Andrew Wulf <email@hidden>
  • Date: Sat, 8 Dec 2007 21:15:06 -0600

I am using the 3dmixer with signed int packed data, but when I set the stream format, I always get -10868 (kAudioUnitErr_FormatNotSupported). The docs of course are not terribly useful, I'm probably missing something obvious.

  AudioStreamBasicDescription desc;
  channel->getFormat( desc );

  

  err = AudioUnitSetProperty( 
    mMixer3d, 
    kAudioUnitProperty_StreamFormat,
    kAudioUnitScope_Input, 
    snd->buffer.channelNumber, 
    &desc, 
    sizeof(AudioStreamBasicDescription));

  

desc is:
  mSampleRate = 32000, 
  mFormatID = 1819304813, 
  mFormatFlags = 12, 
  mBytesPerPacket = 2, 
  mFramesPerPacket = 1, 
  mBytesPerFrame = 2, 
  mChannelsPerFrame = 1, 
  mBitsPerChannel = 16, 
  mReserved = 0

    asbd.mFormatID = kAudioFormatLinearPCM;
    asbd.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;

does the mixer3d not support signed int data? do I have to provide or convert it to the canonical format?

- andrew

 _______________________________________________
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: 3d mixer format error
      • From: Brad Ford <email@hidden>
  • Prev by Date: Re: How to play sound from the byte data
  • Next by Date: Re: 3d mixer format error
  • Previous by thread: Re: How to play sound from the byte data
  • Next by thread: Re: 3d mixer format error
  • Index(es):
    • Date
    • Thread