• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: Craig Bakalian <email@hidden>
  • Date: Fri, 25 Mar 2005 05:33:13 -0500

Hi,
In the code below I am getting the current stream description of an input device, getting the stream description for a mixer unit, setting the input of the AUConverter to the input device stream description, and setting the output of the AUConverter to match the mixer unit stream description. If the input device sample rate is below 44100 the sound coming out of the speakers is robotic. I suspected this would be the case, but I thought the AUConverter would sample up, but the input device is still sampling at 22500 or lower... and the AU are wanting 44100, whatever, moving on...

so then I attempted to set all of the units to the to the input device's stream description sample rate of 22500. Yet the AUs will not sample down to 22500, or anything below 44100. What is possible here. Do AUs demand 44100?<x-tad-smaller>


</x-tad-smaller> AudioStreamBasicDescription mixerStreamDescription;
UInt32 streamsize = sizeof(AudioStreamBasicDescription);
inputStreamDescription = [selectedInputDevice getCurrentInputDeviceStreamDescription];
AudioUnit mixerUnit = [(BGAudioTrackListView*)[self superview] mixerUnit];
AudioUnitGetProperty(mixerUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&mixerStreamDescription,
&streamsize);
AudioUnitSetProperty(converterUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&inputStreamDescription,

sizeof(AudioStreamBasicDescription));
AudioUnitSetProperty(converterUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Output,
0,
&mixerStreamDescription,

sizeof(AudioStreamBasicDescription));

Craig Bakalian
 _______________________________________________
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

  • Prev by Date: Re: Allowing a user-space driver to be the default system
  • Next by Date: G4/G5 performance question
  • Previous by thread: Re: Allowing a user-space driver to be the default system
  • Next by thread: G4/G5 performance question
  • Index(es):
    • Date
    • Thread