Playing mid without sound~~~

#1

My code is as follows:
FMOD::System *system;
FMOD::System_Create(&system);
system->init(64, FMOD_INIT_NORMAL, nullptr);
FMOD::Sound * sound = fsystem->createSound(“xxx.mid”, FMOD_DEFAULT, 0, &sound);
sound->setMode(FMOD_DEFAULT);
FMOD::Channel *channel = 0;
fsystem->playSound(sound, 0, false, &channel);
channel->setVolume(1.0f);

Why is there no sound?
But playing MP3 is normal.

0 Likes

#2

All the FMOD functions return FMOD_RESULT, check all of these to see if something is going wrong.

0 Likes

#3

Thank you for settling it.

0 Likes

#4

Require support for gm.dls file

0 Likes