1
Freebasic / Re: Syncing With UFMod
« on: October 18, 2012 »
I just tryed what Hellfire explained and got stuck:
As soon as i try to access the orderlist the compiler complains that on the left side of "orderlist" should be a pointer to a generic class/struct/union. It seems that VS2012 doesnt know the structure of the FMUSIC_MODULE type. I thought it could be solved by including:
but after that the compiler complains that FSOUND_BufferSize was redefined in sound.h (179) and tells to look at sound.h(168). The funny thing is that there is no redefinition. Line 179 defines FSOUND_BufferSize while line 169 defines FSOUND_BufferSizeMS. Any clue what might be wrong?
Thanks in advance.
You can now fetch the playing pattern-number from the order-list (stored in FMUSIC_MODULE):Code: [Select]int patnum= mod->orderlist[order];
As soon as i try to access the orderlist the compiler complains that on the left side of "orderlist" should be a pointer to a generic class/struct/union. It seems that VS2012 doesnt know the structure of the FMUSIC_MODULE type. I thought it could be solved by including:
Code: [Select]
#include "minifmod/music.h"
but after that the compiler complains that FSOUND_BufferSize was redefined in sound.h (179) and tells to look at sound.h(168). The funny thing is that there is no redefinition. Line 179 defines FSOUND_BufferSize while line 169 defines FSOUND_BufferSizeMS. Any clue what might be wrong?
Thanks in advance.