Skip to content

MT2D Audio Core

ibm5155 edited this page Sep 3, 2018 · 1 revision

MT2D Audio core is a basic sound and music handler, it provides basic support to audio playback, limited by the supported framework that's loaded with MT2D (for now, only SDL Mixer).

Right now, out of the box, the Audio Core doesn't make any sound output, you'll need one of the following APIs together with MT2D:

  • SDL_Mixer

You'll not get special audio processing effects, either volume control, but the enough for making something nice, see the following functions below:

  • MT2D_Audio_Init: Starts the Audio system
  • MT2D_Audio_Close: Turn off the Audio system
  • MT2D_Play_Audio: Plays a sound effect by the given path string
  • MT2D_Play_Music: Plays a music by the given path string

LIMITATIONS

  • You can only play one music at the same time.
  • You can only have eight sound files being played at the same time (MT2D will decide which file should be played)

FUTURE DEVELOPMENT

  • MT2D_Play_Audio_Container: Plays a sound effect from a container by the given name
  • MT2D_Play_Music_Container: Plays a music from a container by the given name
Clone this wiki locally