0
0

Hi all,
im a newbie with Fmod :), i have now some questions:

  1. i have always that problem: File not found , when i change the path "home/kun/Desktop/sound/media/wave.mp3" to "../media/wave.mp3",
    though i have copied this folder media to :
    /home/kun/Desktop/sound/
    and
    /home/kun/Desktop/sound/src/ ….

my code:
…..

result = system->createSound("home/kun/Desktop/sound/media/wave.mp3", FMOD_SOFTWARE | FMOD_2D, 0, &waveSound);
ERRCHECK(result);
waveSound->setLoopCount(tmploop);

….

  1. How can i play a Sound with Fmod, when a other MediaProgramm runs (VLC, ..).
    Problems: when a MediaProgram as VLC, MusicPlayer … is running, i cant use my project with sound in Fmod ๐Ÿ˜•

  2. i cant play a file with .MID ( MIDI play back or sequenz)
    Problems: A resource that the plugin requires cannot be found. (ie the DLS file for MIDI playback).
    ?????
    FMOD support for MIDI playback (in documentation) too.

I use now Kdevelop 3, Fmod Ex in Ubuntu 6.10 Edgy Eft

Help me please :roll:

  • You must to post comments
0
0

The following should resolve issue 1:

[quote="bluemonkmn":2tno6wjc]You should probably supply a complete path to sound.wav since it’s hard to predict what the current directory will be at runtime (remember to prefix the string with an at symbol ("@") before the first double-quote if you’re using C# so that you don’t have to double the backslashes in the path. In Microsoft Visual Studio, the current directory will probably be the debug or release folder where your application is compiled and not the folder where all your source files are.[/quote:2tno6wjc]

quoted from: http://52.88.2.202/forum/viewtopic.php?t=7201

  • You must to post comments
0
0

According to the documentation of FMOD_CREATESOUNDEXINFO (a structure that you can pass to createSound), you need to make sure you have windows\system32\drivers\gm.dls in order to play a midi file (or you need to provide an alternate DLS file in this structure). If you don’t pass this structure to createSound, it defaults to that DLS file. If that doesn’t exist, I presume you get the error you’re seeing.

  • You must to post comments
0
0

thanks to bluemonkmn and 331Rage for your answers.

:) but I program a small Project (a small Game) with Fmod Ex in Linux (version Ubuntu 10 Edgy Eft ) ( Kdevelop 3, C++).
In this Project I use more than 20 Soundfiles, and this application should be easy to install.
When i want to run this application in a other PC, i must always change the path in Sound class,
for me there isn’t problem, but for other ๐Ÿ˜ฎ , for example my girlfriend :) , she doesn’t know , what’s Fmod, what’s Cpp.

if someone knows my problems , please help me. :roll:

P/s: 1. problem and 2. problem is important.
3. problem with MIDI playback is now unimportant , :) it is no problem for me to use with wav and mp3 sound.
( 10MB or 2MB is no problem ).

Have a nice day,
Kun.

  • You must to post comments
0
0

Surely Linux has a way to retrieve the full path to the current executable (the path from which the current program was launched). Once you have that you can just replace the executable filename with the sound file name to provide FMOD with a valid path. Then you can put all your files in one directory, and your application should be able to run.

  • You must to post comments
0
0

Thank you very much,
there isn’t problem , when I run it in console ๐Ÿ˜€ .
1. problem is finished.
3. problem is unimportant.

Now i need your help for 2. problem. :)

Problems:
if a other Music Player is running, then that application with Fmod cant run more. That error is : FMOD error! (56) Error initializing output device.
if my application with Fmod is running, when i start a other Music Player , then there isn’t sound more for that Music Player.

Is that problem because of system in Fmod ? When Fmod is running, it takes output Device and doesn’t let other Program run ?
what should i do? though running of Fmod, other Player still can run

  • You must to post comments
0
0

What kind of FMOD_OUTPUTTYPE do you use? Ive got in mind that e.g. alsa
locks the device. I’m not very familiar with esd but you can give it a try.

  • You must to post comments
0
0

thank you very much Voidberg.
I have changed that FMOD_OUTPUTTYPE to FMOD_OUTPUTTYPE_ALSA and ๐Ÿ˜€ , there wasn’t problem. ( but the Volume is a little lower, otherwise it runs very good).
Thanks again,
Kun.

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.