changing sound frequency

Discussion in 'Public Game Developers Forum' started by wootbean, Nov 3, 2009.

  1. wootbean

    wootbean Well-Known Member

    Feb 8, 2009
    5,549
    1
    36
    the next whiskey bar
    is there any way to change the pitch of a sound as it's playing?
     
  2. Uptown Arts

    Uptown Arts Well-Known Member

    In OpenAL, there's a source attribute called AL_PITCH that you can modify.
     
  3. wootbean

    wootbean Well-Known Member

    Feb 8, 2009
    5,549
    1
    36
    the next whiskey bar
    I'm using an AVAudioPlayer to play the sound, would you mind elaborating on how I can use AL_PITCH to change the pitch? :eek:
     
  4. Steve Oldmeadow

    May 22, 2009
    23
    0
    0
    You can't change the pitch with AVAudioPlayer, you need to use OpenAL which is a completely different audio API.
     
  5. wootbean

    wootbean Well-Known Member

    Feb 8, 2009
    5,549
    1
    36
    the next whiskey bar
    hmm I see
    I'll go do more research on OpenAL then.
     
  6. Flickitty

    Flickitty Well-Known Member

    Oct 14, 2009
    761
    1
    0
    iPhone Dev
    OpenAL is pretty standard and widely used. You can find a lot of information about it on the internet. I would suggest using that library if it suits you.

    We tried FMOD in the past, but it seemed to be much more of a resource hog and we didn't like the licensing.
     

Share This Page