Re: Getting distorted sound from AU
Re: Getting distorted sound from AU
- Subject: Re: Getting distorted sound from AU
- From: tahome izwah <email@hidden>
- Date: Mon, 26 Jul 2010 11:53:58 +0200
Of course - you didn't put the fmod statement where I told you
(*inside* the for loop, not right after the loop!).
HTH
--th
2010/7/26 Jokke Heikkila <email@hidden>:
> 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
>
_______________________________________________
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