Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kAudioUnitErr_InvalidPropertyValue



On Jun 17, 2006, at 08:43 , Bruno Degazio wrote:
I keep getting a an error -10851 ( kAudioUnitErr_InvalidPropertyValue ) when calling SetProperty kAudioUnitProperty_ScheduledFileRegion. But the value I'm passing seems to be OK - a pointer to an ScheduledAudioFileRegion structure and the structure size in bytes ( 92) .

Here's what the Scheduled file region structure looks like:

--------------------------------------------------------------------
Audio File Ref: 25251884
LoopCount: 99
StartFrame: 0
Frames to Play: -1  ok

Any ideas on what the invalid property value might be?

You probably didn't call
AudioUnitSetProperty(myAUFilePlayer, kAudioUnitProperty_ScheduledFileIDs, kAudioUnitScope_Global, 0, &myAudioFileID, sizeof(AudioFileID));


to give the file player the list of audio files you wish to be able to play from.

Doug

--
Doug Wyatt
Core Audio, Apple

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >kAudioUnitErr_InvalidPropertyValue (From: Bruno Degazio <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.