0
0

Hi all,

I would like to play an MP3 file on a smartphone, but unfortunately I dont know how to define FSOUND_SAMPLE in c#.

Of coz

typedef struct FSOUND_SAMPLE FSOUND_SAMPLE;

does not work.

Im sure this is an easy thing to do, but I am new to .NET development.

Thanks in advance!

Best regards,
Balint Toth

  • You must to post comments
0
0

Thanks for the fast reply. Fortunately I found the right pointer type in C#, its IntPtr. But I got other problems. The following source code doesnt work, but I cannot figure out why not:


if (!FSOUND_Init(44100, 32, 0)) {ApplicationEx.Exit(); }
IntPtr a = new IntPtr();
a = FSOUND_Stream_Open(“\Storage\a.mp3”,304,0,0);

int i = FSOUND_Stream_Play(-1,a);

I would like to use it on a Smartphone device.

Any hint?

Thanks a lot,
Bálint Tóth

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.