Code: Select all
These days I am starting a small audio game with the FMOD library, and I was trying to load sounds from memory, previously copied to a matrix from a file, but since I don't know if the file is copied correctly to memory or not, I don't know why I can't get it to reproduce the sound.
This is what I have.
dim array (1 to 3635) as zstring ptr
Open "tono.ogg" For Binary As #1
Get #1, , array
Close #1
sonido_recarga = FSOUND_Sample_Load( 2, @array(1), FSOUND_2D, 0, 3635 )
Perhaps there are things that I do not fully understand about the language, but as much as I have changed it many times I have not been able to make it work.
Please could you help me with this?
That they go very well.