• 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
InputScope negotiation / MusicDevice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InputScope negotiation / MusicDevice


  • Subject: InputScope negotiation / MusicDevice
  • From: Urs Heckmann <email@hidden>
  • Date: Mon, 27 Oct 2003 07:20:18 +0100

Hi all,

I managed to get an input / side chain work with a MusicDevice AU in LAP 6.3.1. Works (almost) beautifully (except missing stereo support), but AUValidation asks me to solve a problem.

The AU publishes following possible ChannelInfos:

{ 2, 2}, { 1, 2 }, { 0, 2 }

hence always 2-channel output, 0-2 channel input.

But AUV says:

FORMAT TESTS:

Input/Output Channel Handling:
1-1 1-2 1-4 1-5 2-2 2-4 2-5 4-4 4-5 5-5 5-2 6-6 8-8
X X
ERROR: -1 IN CALL Cant get format on input scope
ERROR: -1 IN CALL Cant get format on input scope
ERROR: Uninitialized re-opened unit reports it cannot support default channel configuration: in:0, out:0

* * FAIL
--------------------------------------------------
RENDER TESTS:
ERROR: Format errors. Cannot perform render tests


* * FAIL

with following code:

bool SynthAU::StreamFormatWritable( AudioUnitScope scope, AudioUnitElement element)
{
if ( scope == kAudioUnitScope_Input && element == 0 );
{
AUInputElement *theInput = GetInput(0);

if ( theInput != NULL )
{
AudioBufferList &inBuffer = theInput->GetBufferList();

int numInChannels = inBuffer.mNumberBuffers;

if ( numInChannels > 2 ) return false;
}
}

if ( scope == kAudioUnitScope_Output && element == 0 )
{
AUOutputElement *theOutput = GetOutput(0);

if ( theOutput != NULL )
{
AudioBufferList &outBuffer = theOutput->GetBufferList();

int numOutChannels = outBuffer.mNumberBuffers;

if ( numOutChannels > 2 ) return false;
}
}

return true;
}

What's wrong here?

This is the only place I do anything about negotiations. Am I missing something?!?

Is there another place I have to change anything / overwrite a function for Inputs in MusicDevices?

Cheers,

;) Urs
_______________________________________________
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.

  • Follow-Ups:
    • Re: InputScope negotiation / MusicDevice
      • From: Urs Heckmann <email@hidden>
  • Prev by Date: kAudioHardwareIllegalOperationError
  • Next by Date: AUValidation tool availability for the rest of us?
  • Previous by thread: Re: kAudioHardwareIllegalOperationError
  • Next by thread: Re: InputScope negotiation / MusicDevice
  • Index(es):
    • Date
    • Thread