Page 5 of 5 FirstFirst ... 345
Results 41 to 42 of 42

Thread: OpenAL priority "Intelligent Source Manager"

  1. #41
    Here says:

    Invalid Floating Point Operation

    What do I do?

    Break here :
    // calculate how much time would whole sound take to play at current pitch.
    one_frame_ms := buffsize / bits / freq; // 44100 <----------------------------------
    one_frame_ms := one_frame_ms / VirtualSource.Pitch;


  2. #42
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    UK (England, the bigger bit)
    Blog Entries
    what type is one_frame_ms? Integer? You'd need to either:
    one_frame_ms := buffsize div bits div freq
    or you could
    one_framce_ms := trunc(buffsize / bits / freq)

    and you might want to consider using brackets just to be extra sure you don't cause a bug that may be marginally annoying
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

Page 5 of 5 FirstFirst ... 345


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts