fmod // openal

Discussion in 'C++' started by ahso, Jun 12, 2012.

  1. ahso

    ahso Guest

    Hi
    pPsi is the heading angle in degrees. I set soundpositions:

    float hdgPv = fmod(pPsi + 180, 360);//front
    float hdgPh = fmod(pPsi, 360);//back

    now attenuation is fine for back but for front I get a interruption
    when angle goes from 360 - 0. Any
    idea on how to fix that? I was also looking for AL_DIRECTION but
    couldn't find any solution.
    Many thanks
    Michael
     
    ahso, Jun 12, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shewy du 80 !!

    fmod et Pause du MP3

    Shewy du 80 !!, Jun 14, 2004, in forum: C++
    Replies:
    1
    Views:
    675
    Pete C.
    Jun 14, 2004
  2. seia0106

    atan2() and fmod()

    seia0106, Jul 28, 2004, in forum: C++
    Replies:
    8
    Views:
    757
    John Harrison
    Jul 29, 2004
  3. stau

    fmod?

    stau, Dec 28, 2003, in forum: C Programming
    Replies:
    6
    Views:
    660
  4. Zunbeltz Izaola

    fmod and %

    Zunbeltz Izaola, Apr 21, 2004, in forum: Python
    Replies:
    2
    Views:
    703
    Terry Reedy
    Apr 21, 2004
  5. Tim Chase

    State of Python+OpenAL?

    Tim Chase, Mar 6, 2012, in forum: Python
    Replies:
    0
    Views:
    639
    Tim Chase
    Mar 6, 2012
Loading...

Share This Page