0
0

Hi, I have only just started working with fmod,

I have events working etc. but when i try to load in a Cue it doesn’t work.

I am using the latest stable version of fmod

[code:1bajhtc9]
ERRCHECK(FMOD::EventSystem_Create(&eventsystem));
ERRCHECK(eventsystem->init(64, FMOD_INIT_NORMAL, 0, FMOD_EVENT_INIT_NORMAL));
ERRCHECK(eventsystem->getMusicSystem(&musicsystem));
ERRCHECK(eventsystem->setMediaPath((char *)".\res\sound\"));
ERRCHECK(eventsystem->load("Chopsticks.fev", 0, 0));
ERRCHECK(musicsystem->prepareCue(9, &bgMusic));
ERRCHECK(bgMusic->begin());
[/code:1bajhtc9]

this is pretty much the code i use to setup the system and load in the cue, i got the number 9 from the text file

[quote:1bajhtc9]
#

Music Cues

#

Name : Start
Id : MUSICCUE_CHOPSTICKS_START = 9
[/quote:1bajhtc9]
[/quote][/code]

  • You must to post comments
0
0

Hi,

Have you tried using the FMOD Music Player to test out your .fev? You should be able to find the app in your FMOD install directory.

If the same problem occurs in the music player there maybe something awry in your project. A common problem is not marking any start segments within a theme.

raymond.

  • You must to post comments
0
0

I have already tried that and it worked.

I also tried loading the demo file "examples.fev" in and it didn’t work either, somehow it is a part of my code. I have tried looking for example code to compare and find out what I might be missing but never found anything. (am i not initializing something??)

[code:2bx6xfkz]
musicsystem->getMute(&mute);
printf("mute is %d\n", mute);
musicsystem->getPaused(&mute);
printf("paused is %d\n", mute);
musicsystem->getVolume(&stuff);
printf("volume is %f\n", stuff);
ERRCHECK(bgMusic->isActive(&active));
if(active)
{
printf("Working..");
}else
{
printf("not working..");
}
[/code:2bx6xfkz]

I also have these values printing everything out and everything seems fine mute is false, paused is false, volume is 1.0 and active is true…

  • You must to post comments
0
0

Just a quick thought. Are you calling EventSystem::update() from your main loop? For simple events you’ll get away without this call, not so for the music system.

If you could send an isolated example to support@fmod.org we’d be happy to help figure this one out.

Cheers,
raymond.

  • You must to post comments
0
0

I’m having this problem exactly. I was under the impression that loadSoundData needed to be called before prepareCue, but that actually crashes the system with a Data Storage Exception (Wii). Was this issue ever resolved?

  • You must to post comments
0
0

[quote="sean.smith":1e59uta7]I’m having this problem exactly. I was under the impression that loadSoundData needed to be called before prepareCue, but that actually crashes the system with a Data Storage Exception (Wii). Was this issue ever resolved?[/quote:1e59uta7]

I had the same issue. The music player can play my project, but in my code it doesn’t work. All the result return FMOD_OK, but nothing is played. It doesn’t matter if I call loadSoundData() or not.

After a few tries, I found that examples.fev works with my codes. So there must be something in my data being wrong. First I tried to use example music (state-race-start.ogg), but it doesn’t play even in the Fmod Designer, the "Length in sec" is just 0.00. Then, I found that the problem might be the path name is too long. (like, C:\Program Files\FMOD SoundSystem\FMOD Programmers API Win32\fmoddesignerapi\examples\media\music) I copied it to anthoer shorter folder and linked my segment to that copy, then it worked (both in music player and my codes).

It will be great if the Fmod Designer can tell or warn user more about the path limit. Also, I am still not sure if I can build the project and move the fev to another place? Does the music path has anything to do with the project build path? The music data was not built in project data, right? None of my fsb files grow up after I added music.

The second thing I found is: fmod will load the WHOLE MUSIC DATA into memory. That is why my data doesn’t work because my memory was set to smaller value. Can we stream the music, pleeeeeeease?? Otherwise it will never work on consoles. Again, musicsystem doesn’t return any error message…

The music system is cool, but I need more to make it work with our project…

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.