[Gambas-user] Playing MIDI file by using gb.SDL2.audio - BIS
Ru Vuott
vuott at ...325...
Wed Dec 31 00:52:46 CET 2014
Hello,
here attached a screenshot of header file /SDL2/SDL_Mixer, where it's possible to see the function Mix_SetSoundFonts(const char * paths);
Regards
vuott
--------------------------------------------
Mar 30/12/14, Benoît Minisini <gambas at ...1...> ha scritto:
Oggetto: Re: [Gambas-user] Playing MIDI file by using gb.SDL2.audio
A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Data: Martedì 30 dicembre 2014, 23:12
Le 30/12/2014 20:21, Ru
Vuott a écrit :
> Hi,
> with rev. 6779 I saw the new resource to
play audio files.
>
>
Well, I would point out that, we can allow the execution
also Midi files, but it is necessary to implement the Class
"Music" function
>
> Mix_SetSoundFonts
(const char * paths);
>
> (from file header: SDL_mixer.h)
>
>
* Next set ... SoundFonts paths to use by MIDI
supported backends * /
>
extern int declspec SDLCALL Mix_SetSoundFonts
(const char * paths);
>
>
>
>
In substance, the argument of the function provides the path
where soundbank file " .sf2 " is stored.
>
> Regards
> vuott
>
>
> P.S: I have already
done work in Gambas with external SDL2 functions declared by
using "Extern" !
> It works.
>
I
don't see that function in the SDL2_mixer
documentation... Where does
it come
from?
--
Benoît Minisini
------------------------------------------------------------------------------
Dive into the World of Parallel Programming!
The Go Parallel Website,
sponsored by Intel
and developed in partnership with Slashdot Media, is your
hub for all things parallel software
development, from weekly thought
leadership
blogs to news, videos, case studies, tutorials and more.
Take a
look and join the conversation now.
http://goparallel.sourceforge.net
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SDL_Mixer.png
Type: image/png
Size: 137427 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20141230/71a0354d/attachment.png>
More information about the User
mailing list