• 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: 3D Audio Unit Questions #2 -- forget last message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3D Audio Unit Questions #2 -- forget last message


  • Subject: Re: 3D Audio Unit Questions #2 -- forget last message
  • From: Brian Barnes <email@hidden>
  • Date: Fri, 18 Oct 2002 00:29:17 -0400

I found the answer in a bit of sample code. Here's the snippet I came
up with to setup a input to the 3DMixer for mono:

AudioStreamBasicDescription austream;

austream.mSampleRate=44100;
austream.mFormatID=kAudioFormatLinearPCM;
austream.mFormatFlags=kLinearPCMFormatFlagIsFloat|kLinearPCMFormatFlagIs
BigEndian|kLinearPCMFormatFlagIsPacked;
austream.mBytesPerPacket=4;
austream.mFramesPerPacket=1;
austream.mBytesPerFrame=4;
austream.mChannelsPerFrame=1;
austream.mBitsPerChannel=32;

AudioUnitSetProperty(au_mixer,kAudioUnitProperty_StreamFormat,kAudioUnit
Scope_Input,i,(void*)&austream,sizeof(AudioStreamBasicDescription));

OK -- not that I want this question answered -- by why couldn't I find
that definition when I asked PBX to search the frameworks?? Weird ....

Now on to my other problems ....

[>] Brian
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: 3D Audio Unit Questions #2
  • Next by Date: 3D Audio Units -- Solved but mysteries remain
  • Previous by thread: Re: Simple, Intuitive CoreAudio Framework
  • Next by thread: 3D Audio Units -- Solved but mysteries remain
  • Index(es):
    • Date
    • Thread