ramp parameter of output au
ramp parameter of output au
- Subject: ramp parameter of output au
- From: "thomas rettich" <email@hidden>
- Date: Fri, 06 Jan 2006 00:28:55 +0100
hi,
I am using the default output AU and I want to ramp the
kHALOutputParam_Volume from 0.0 to 1.0. and I want this ramp to last for
100000 frames.
the following code causes a segmentation fault. can anybody tell me what I
am doing wrong:
struct AudioUnitParameterEvent paramEvent;
paramEvent.scope= kAudioUnitScope_Global;
paramEvent.element=0;
paramEvent.parameter= kHALOutputParam_Volume;
paramEvent.eventType=kParameterEvent_Ramped;
paramEvent.eventValues.ramp.startBufferOffset=0;
paramEvent.eventValues.ramp.durationInFrames= 44000;
paramEvent.eventValues.ramp.startValue = 0.0;
paramEvent.eventValues.ramp.endValue= 1.0;
AudioUnitScheduleParameters(
outputAU,
¶mEvent,
0); // i am not sure what value to pass for inNumParamEvents, as I don't
know the buf
// size aufileplayer uses
any help would be highly appreciated,
thanks,
thomas
_________________________________________________________________
Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen Sie gleichzeitig
im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu! http://desktop.msn.de/
Jetzt gratis downloaden!
_______________________________________________
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