Re: Getting distorted sound from AU
Re: Getting distorted sound from AU
- Subject: Re: Getting distorted sound from AU
- From: Jokke Heikkila <email@hidden>
- Date: Mon, 26 Jul 2010 12:42:24 +0300
On 26 July 2010 09:42, tahome izwah <email@hidden> wrote:
> render callback:
>
> (1) I believe your phaseIncrement value should be 2 * M_PI * freq / sr
> (2) It sounds like you're resetting your phase at the wrong time. Try
> adding phase = fmod(phase, 2.*M_PI); after line 12 and remove lines
> 15-17
> (3) sinSignal is redundant and can be removed.
I tried those changes and the callback is like this
http://pastie.org/1060113 now (made little change also to my struct
carrying freq value and sample rate). The end result is still the same
(http://dl.dropbox.com/u/1295470/sinewave_v2.mov) so there must be
still something else wonky.
jokke
_______________________________________________
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