0
0

Invalid memory access if FMOD_ACCURATETIME is used

Purebasic testcode

[code:2x2dvx42]
FMOD_System_Create(@system)
FMOD_System_Init(system, 32, #FMOD_INIT_NORMAL , #FMOD_OUTPUTTYPE_AUTODETECT)
File.s="file.mp3"
FMOD_System_CreateSound (system, @File.s, #FMOD_SOFTWARE | #FMOD_LOOP_OFF|#FMOD_2D|#FMOD_CREATESTREAM|#FMOD_ACCURATETIME ,0, @sound)
FMOD_System_PlaySound(system, #FMOD_CHANNEL_FREE, sound, 0, @Channel)
[/code:2x2dvx42]

  • You must to post comments
0
0
  1. Use a full absoulte path

  2. Check return values. E.g. if Createsound fails, you shouldn’t use playsound afterwards.

  3. Ensure constants are allright (and your import libraries are matching fmodex version)
    Debug #FMOD_ACCURATETIME should return
    $4000 / 16384. I personally use $80C8 in vb and it works fine

  4. I sometimes have strange errors after certain fmod calls. Maybe a GetLastError_() or SetLastError_(0) helps. However, it seems I’m the only one encountering such errors, and I’m using a custom vb6 methode to handle cannot be ported to PureBasic.

  5. Try a second selfripped mp3 file… just to be sure :)

  • You must to post comments
0
0

Hi Controller

i use Version 4.03.10

Only mp3 + FMOD_ACCURATETIME crashes,orther Formats works fine.

  • You must to post comments
0
0

works fine now ,thx 😀

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.