0
FMOD_RESULT result;
FMOD::System *system;
result = FMOD::System_Create(&system);
if (result != FMOD_OK)
{
printf("FMOD error! (%d) %s\n", result, FMOD_ErrorString(result));
}
result = system->init(100, FMOD_INIT_NORMAL, 0);
if (result != FMOD_OK)
{
printf("FMOD error! (%d) %s\n", result, FMOD_ErrorString(result));
}
FMOD::Sound *sound;
result = system->createSound("01.mp3", FMOD_DEFAULT, 0, &sound); // FMOD_DEFAULT uses the defaults. These are the same as FMOD_LOOP_OFF | FMOD_2D | FMOD_HARDWARE.
ERRCHECK(result);
FMOD::Channel *channel;
result = system->playSound(FMOD_CHANNEL_FREE, sound, false, &channel);
ERRCHECK(result);
위의 코드를 추적했지만 오류/경고가 표시되지 않지만 01.mp3
이 재생되지 않습니다. 이유가 무엇입니까?왜 playSound는 Windows에서 FMOD를 사용하는 사운드를 실제로 출력하지 않습니까?
는 해결 방법이 있습니까? – ieplugin
@iep : 추가되었습니다. 응용 프로그램에 대한 자세한 내용은 훨씬 더 좋은 방법 일 수 있습니다. –