Look to begin the file named ImfLib.h:
There is writed usage. So you don't have to look for documentation. When declaring support programs and functions in the library, you must pay attention to uppercase and lowercase letters in their names, as is common in C, otherwise the program will tell you that the function does not exist in the dynamic library.
You will probably use the QB64 command _MEMNEW in memory to create a block where you will copy a part of the IMF file from the starting position of the music from the hard disk (you have to find it using the link where you have the IMF format layout you put at the beginning of this thread) and to RAM, so you send _OFFSET of this _MEM to the dynamic library. It seems to work because the dynamic link library is reporting an error when sending empty memory instead of music data.
file_music_data_size = 1024 'calculate by file music data size
NewSound
= _MEMNEW(file_music_data_size
)
'place file content to this new mem block here
'.
'.
'.
InitIMFPlayer
You must run it under 32 bit IDE!
Hello
I'm a QB64 beginner and can't do this myself :(
Much things I don't understand... But I really wanted a player in QB64 for imf files.
Is it possible to upload your QB64 code file here that does the following:
- use the IMFLib library in QB64 (code needed to use it)
- load a .IMF file from hard disk: let's say "test.imf"
- plays the file in QB64 using the library
Here is the library:
[ You are not allowed to view this attachment ]
Here is the source code of the library I found online too!
[ You are not allowed to view this attachment ]
I hope you can help!
Jessica