Re: 3D Audio Unit Questions #2 -- forget last message
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.