Re: Can anyone help me in Fade In...?
Re: Can anyone help me in Fade In...?
- Subject: Re: Can anyone help me in Fade In...?
- From: Alejandro <email@hidden>
- Date: Fri, 17 Jul 2009 15:28:01 +0200
Anshul,
Two questions:
1. I suppose that "length" and "size" have the same value, OK? I
suggest using a single variable for both. Also if size is not float
write: float factor = ((float) i / (float) size);
2. I also suppose that "buffer" is a vector of floats, OK? Otherwise
write: buffer[i] = (float) buffer[i] * factor;
Alejandro
|
_______________________________________________
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