I am using FMOD on Ubuntu and i think that now the sound must be heared, but I dont hear sound.
#include "FMOD/inc/fmod.hpp" //fmod c++ header
FMOD_SYSTEM *system; //handle to FMOD engine
FMOD_SOUND *sound1, *sound2; //sound that will be loaded and played
using namespace std;
result = FMOD_System_Create(&system);
unsigned int version;
result = FMOD_System_Init(system, 1, FMOD_INIT_NORMAL, NULL);
result = FMOD_System_CreateSound(system, "Media/NMG.mp3", FMOD_CREATESAMPLE, 0, &sound1);
result = FMOD_System_CreateChannelGroup(system,"canal",&channels);
result = FMOD_System_PlaySound(system, sound1,channels, 1, NULL);
I think that its correct and must play sound, but I dont hear nothing( and I have the computer volume turn on and works). Its there any other method that I need to use?
I also use FMOD_System_Update() in every frame.
And tried to put
Inside the initSystem methor but it doesnt work.
PS: I dont know if this is the correct forum to put this (FMOD 4) but tell me if I am wrong.