• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting distorted sound from AU
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Getting distorted sound from AU
      • From: tahome izwah <email@hidden>
References: 
 >Getting distorted sound from AU (From: Jokke Heikkila <email@hidden>)
 >Re: Getting distorted sound from AU (From: tahome izwah <email@hidden>)
 >Re: Getting distorted sound from AU (From: Jokke Heikkila <email@hidden>)

  • Prev by Date: Re: Getting distorted sound from AU
  • Next by Date: Re: Getting distorted sound from AU
  • Previous by thread: Re: Getting distorted sound from AU
  • Next by thread: Re: Getting distorted sound from AU
  • Index(es):
    • Date
    • Thread