im a newbie with Fmod :), i have now some questions:
- 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 :
result = system->createSound("home/kun/Desktop/sound/media/wave.mp3", FMOD_SOFTWARE | FMOD_2D, 0, &waveSound);
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 😕
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
- kun asked 11 years ago
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.
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,
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.
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.
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
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://126.96.36.199/forum/viewtopic.php?t=7201
- 331Rage answered 11 years ago
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.
Please login first to submit.