0
0

Hi all!
How can i use this FMOD Function?
There was a dll and a Example, but i don’t know how to use the fuction.
There are any Tutorials or something?
cu

  • You must to post comments
0
0

You must use FSOUND_Stream_OpenFile to open a mp3.

In my sample it’s a mid file, but u can change that easily ^^

  • You must to post comments
0
0

Yay it works.
But I have 2 Questions to the code, but i saw u have your ICQ UIN here.
Ich will add u soon, thats better ok???
cu

  • You must to post comments
0
0

waiting for your request ^^

  • You must to post comments
0
0

do you use Visual Basic ? Visual C++ ? Delphi ? another ?

  • You must to post comments
0
0

Hi!
ich have Vc++, i saw on the news that there is a docu.
I hope it will help me, but ich have downlaod the “FMOD 3.5 media player ” and there is no Headerfile.
Wenn i go to “Setinngs”->Linker and there i write “fmod.dll”, my compiler says “Invalid File or the Size of File is 0”.
Where is the Problem?
cu

  • You must to post comments
0
0

Enter the path of fmod.dll with the file browser (the “…” button right the text).

And put fmod.dll in your windows path.

[quote:x1h6aq83]Ich[/quote:x1h6aq83] -> Deutsch ? 😆

  • You must to post comments
0
0

uuuuppps ja g deutsch, ich hoffe du auch, ne fRage an dich hast du schon mal den Code verwendet zum öffnen eines mp3 Files?
mfg

  • You must to post comments
0
0

ooooops :p

Ich könte nicht güt Deutsch sprechen, ich spreche french 😉
But I’m Swiss, then I know a bit of Deutsch 😆 Könnten wir English sprechen ?

I kann English speaken a bit better than Deutsh 😳

What do you want to know exactly ? Open a MP3 file ?

  • You must to post comments
0
0

oh, i thought u can speak german =)
Also i want to know if u had open a mp3 file with FMOD.
Do u have?
I tried it with FSOUND_STREAM * F_API FSOUND_Stream_OpenFile, but that doesnt work!!
Can u help me?
cu

  • You must to post comments
0
0

Yes, I have, but it seems that JUST using Open() or Play() isn’t much.

This code is much, but I think it’s the minimum:
[code:31olieno]

include <stdio.h>

ifdef _WIN32

#include <conio.h>
#include <windows.h>

elif defined(linux)

#include "wincompat.h"

endif

include <math.h>

include "C:\temp\source\simple\fmod.h"

include "fmod_errors.h" /* optional */

FSOUND_STREAM *stream;

int main()
{
FMUSIC_MODULE *mod = 0;
FSOUND_SAMPLE *samp1 = 0, *samp2 = 0, *samp3 = 0;
int key;

if (FSOUND_GetVersion() &lt; FMOD_VERSION)
{
    printf(&quot;Error : You are using the wrong DLL version!  You should be using FMOD %.02f\n&quot;, FMOD_VERSION);
    return 1;
} 

FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);

FSOUND_SetDriver(0);
if (!FSOUND_Init(44100, 32, FSOUND_INIT_USEDEFAULTMIDISYNTH))
{
    printf(&quot;Error!\n&quot;);
    printf(&quot;%s\n&quot;, FMOD_ErrorString(FSOUND_GetError()));
    return 1;
}


switch ('3')
{
    case '1' :  mod = FMUSIC_LoadSong(&quot;D:/sonata arctica(heavy-speed)/Sonata Arctica - Still Loving You.mp3&quot;); //FMUSIC_LoadSong(&quot;../../media/invtro94.s3m&quot;);
                break;
    case '2' :  mod = FMUSIC_LoadSong(&quot;D:/sonata arctica(heavy-speed)/Sonata Arctica - Still Loving You.mp3&quot;); //mod = FMUSIC_LoadSong(&quot;../../media/canyon.mid&quot;);
                break;
    case '3' :  stream = FSOUND_Stream_OpenFile(&quot;D:/ANIMES - dossier secondaire/amg.mid&quot;, FSOUND_NORMAL | FSOUND_LOOP_NORMAL, 0); FSOUND_Stream_Play(FSOUND_FREE, stream); break; //Ok !

    default :   return 1;
}

do
{
    key = 0;


    if (kbhit())
    {
        key = getch();

    }

    Sleep(10);

} while (key != 27);

printf(&quot;\n&quot;);

FSOUND_Stream_Close(stream);

FSOUND_Close();

return 0;

}[/code:31olieno]

But I use FMod with ADA95 then I havent already access to ALL the function , then I don’t know ALL thoses.
If you want this code in ADA95 I can make a copy/paste of my program ^^

  • You must to post comments
0
0

Thank you, i try the Code later (11p.m.), ich write u back if the code work or i i need help, also please look next day in this topic again.
cu

  • You must to post comments
Showing 11 results
Your Answer

Please first to submit.