0
0

That’s a pretty dead link if you ask me…

  • You must to post comments
0
0

Ok… Figured it out.

In the declaration of FSOUND_Stream_GetTagField in the FmodManaged.dll, I had to change the “Val” parameter from IntPtr to ref string.

  • You must to post comments
0
0

Hi! ๐Ÿ˜€

New version for FmodManaged:
http://www.goldfix.it/fmodmanaged/fmodmanaged_0600.rar

8)

Version:

0.5.0.0: First Version
0.6.0.0 (this ver.): Add: 3D Function
Add: Documentation XML Code (approximately 40-45%)
Correct: CD Function

  • You must to post comments
0
0

EDIT: posted in the wrong thread :p

I did make a modification to goldfix’s wrapper, though: I changed FSOUND_Stream_SetSubStreamSource from taking a ref int to an int*. You have to use unsafe code, but it’s the only way I could get it to work.

  • You must to post comments
0
0

Hi ! ๐Ÿ˜€

new version… 8)
http://www.goldfix.it/fmodmanaged/fmodmanaged_0700.rar

0.7.0.0
Re-Implement: Enums
Re-Implement: Struct
Re-Implement: Callbacks
Correct: FMUSIC.Function.Control (return value: FMUSIC_StopSong)
Add: Documentation XML Code (approximately 85%)

  • You must to post comments
0
0

I tried the managed 0.7.5 wrapper in visual studio 2005, and everything seems fine included the conversion need from vs 2003. The problem is that when i run the tester program I can’t hear a sound. Is there something else I need to do first? The compilation did go fine. Sorry I’m quite newbie both in C# and programming in general. Thanks

  • You must to post comments
0
0

Micro update… ๐Ÿ˜€

Ver. 0.7.5.0:
Add: Support for FMOD v. 3.73
Add: Documentation XML Code (approximately 90%)

http://www.goldfix.it/fmodmanaged/fmodmanaged_0750.rar

  • You must to post comments
0
0

Hello

I have a qtek 3810 smartphone with windows mobil 5 on it.
I have tried to write a c# (cf2.0) Application with the fmodmanaged_0750 Wrapper.

Unfortunately I don’t hear anything when i run my app.

Any tips?

THX

[code:3e4lcmm5]
public void Play() {
FmodManaged.FSOUND.Function.Initialization.FSOUND_Init(44100, 32, 0);

this.soundHandle = FmodManaged.FSOUND.Function.Stream.FSOUND_Stream_Open(this.currentSoundTrack, FmodManaged.FSOUND.Enums.FSOUND_MODES.FSOUND_NORMAL, 0, 0);

        FmodManaged.FSOUND.Function.Stream.FSOUND_Stream_Play(6, this.soundHandle);
        FmodManaged.FSOUND.Function.Stream.FSOUND_Stream_Stop(this.soundHandle);

FmodManaged.FSOUND.Function.Initialization.FSOUND_Close();
}
[/code:3e4lcmm5]

  • You must to post comments
0
0

Link is dead…

  • You must to post comments
0
0

Hello Goldfix,

After several days of happily using your wrappers I have encountered a problem with creating and turning on a DSP unit.
Actually all works well in the “FSOUND_DSP_Create” function but the actual activation of the DSP unit in the “FSOUND_DSP_SetActive” function causes fmod.dll to crash.

—– code snippet ——

dspCallBack = new FSOUND_DSPCALLBACK(DspCallbackHandler);

FmodManaged.FSOUND.Function.Initialization.FSOUND_SetMixer(FmodManaged.FSOUND.Enums.FSOUND_MIXERTYPES.FSOUND_MIXER_QUALITY _AUTODETECT);

FmodManaged.FSOUND.Function.Initialization.FSOUND_Init(44100, 32, 0);

ptr1 = FmodManaged.FSOUND.Function.DSP.FSOUND_DSP_Create(dspCallBack.Method.MethodHandle.GetFunctionPointer(), FmodManaged.FSOUND.Enums.FSOUND_DSP_PRIORITIES.FSOUND_DSP_DEFAULTPRIORITY_USER, IntPtr.Zero);

FmodManaged.FSOUND.Function.DSP.FSOUND_DSP_SetActive(ptr1, true); // Causes fmod.dll to crash.

—– code snippet ——

With kind regards,

Xipetotec

  • You must to post comments
0
0

Where do I download this? The link doesn’t work.

Thanks.
-Timothy

  • You must to post comments
0
0

hi…

try my fmodmanaged… I do not tested all function… ๐Ÿ˜‰

http://www.goldfix.it/fmodmanaged/fmodmanaged.rar

TNX

  • You must to post comments
0
0

I have this :

// declaration
private IntPtr mStream;
private int mChannel = -1;

public delegate void DelegateStreamDSPCallback(ref IntPtr originalbuffer, ref IntPtr newbuffer, int length, ref IntPtr userdata);

// init
FmodManaged.FSOUND.Function.Initialization.FSOUND_Init(44100, 1024, FmodManaged.FSOUND.Enums.FSOUND_INIT_FLAGS.FSOUND_INIT_STREAM_FROM_MAIN_THREAD);
FmodManaged.FSOUND.Function.Initialization.FSOUND_SetBufferSize(1000 * 4096 / 44100);

// create stream

mStream = FmodManaged.FSOUND.Function.Stream.FSOUND_Stream_Open(pSource, FmodManaged.FSOUND.Enums.FSOUND_MODES.FSOUND_MPEGACCURATE, 0, 0);

IntPtr dsp = FmodManaged.FSOUND.Function.Stream.FSOUND_Stream_CreateDSP(mStream, new DelegateStreamDSPCallback(StreamDSPCallback).Method.MethodHandle.GetFunctionPointer(), 0, IntPtr.Zero);

FmodManaged.FSOUND.Function.DSP.FSOUND_DSP_SetActive(dsp, true);

// play

mChannel = FmodManaged.FSOUND.Function.Stream.FSOUND_Stream_Play((int)FmodManaged.FSOUND.Enums.FSOUND_MISC_VALUES.FSOUND_FREE, mStream);

Now, i want to get the data through the dsp callback… with the function here :

public void StreamDSPCallback(ref IntPtr originalbuffer, ref IntPtr newbuffer, int length, ref IntPtr userdata)
{
byte[] bufferTmp = new byte[length * 2];
System.Runtime.InteropServices.Marshal.Copy(originalbuffer, bufferTmp, 0, length * 2);
}

but the program crashes when it gets to the Marshal Copy…

what am I doing wrong ? and moreover, why is length =~ 200 000 000 …

thanks…

  • You must to post comments
0
0

Hey all,

Based off the .net interface provided here, I have made the "X Sound Engine". You can download it here at [url:26x8uj6s]http://thp.x10hosting.com/downloads/xsoundsystem.zip[/url:26x8uj6s].

This is 0.1 version of it. Features at the moment are:

  • Access to FSound functions
  • Access to FMusic functions
  • Access to Channel functions
  • Access to Sample functions

All the functions are not complete but this has been tested and it works for playing music or sound. Since it has access to FMusic functions, you can now play all modules sound files (Ex. midi, mod, s3m, it, ect.). You will have to put the fmod 3.7.5 dll in the directory of where the application that you want to use this is located for this engine to work. If you find a problem send a private message to me and I’ll get to it when I can. Enjoy!

  • You must to post comments
0
0

How do we use this managed interface in visual studio.net 2003?

  • You must to post comments
0
0

In fact, I’m using FmodEx now, and it’s working perfectly… so If you find my error, that’s cool, I’ll use FMOD 3 too, but it’s not very important :)

  • You must to post comments
0
0

how to use fmod managed??it doesent hawe any samples…Can you maby sent me some examples??

thanks…

  • You must to post comments
0
0

hi…

send me your source code (in PM).

I do not reaply your problem…

Tnx!

ps
sorry for my english… :(

  • You must to post comments
0
0

I got an error using sound wrapper in .net on HP ipaq h1915..When trying to initailaze next error is ocuring…

A managed NullReferenceException occured at form1::.ctor+0x29

Form1:::ctor+0x29
Form1:::Main+0xa

OK to terminate

It seems to be problem with sample rate,buth i change it and it still come with same error..

Please help!!

Thanx.

  • You must to post comments
0
0

Before sending the code (that is really complex, because it is part of a big mess… that works with other decoders, such as FmodEx..), could you tell me how you did use the callback for DSP (you said you tried to reproduce the “bug”..) ?

I don’t know how to set up a callback for the dsp, tu capture the samples while they are read…

thanks

  • You must to post comments
0
0

[quote="dariofmod":3pi1axmw]how to use fmod managed??it doesent hawe any samples…Can you maby sent me some examples??

thanks…[/quote:3pi1axmw]

Hi ๐Ÿ˜€

Sorry. I’m not in my house today. Tomorrow i send sample…

For you error mmm… you can send a sample your code?

tnx

  • You must to post comments
Showing 1 - 20 of 24 results
Your Answer

Please first to submit.