0
0

Hello,

I’m develope a Information service with dynamically generated voice-files for each Infozone and visitor under .Net Compact Framework C#. PDA devices are Compaq 3970, MDA, MDAII, MDA III, MDA IV and MDA compact. The generated mp3-files have 16000Hz Mono and 24Kbits. I wrote a wrapper class that give .Net the ability to handle unmanaged code. Everything just works fine, until I start to Play mp3-Files. I got the StreamHandle, correct return values from FSOUND_Stream_SetBufferSize and FSOUND_Init. But everytime I start to Play mp3 I’ll get as return value -1. I try diffrent fmodce.dll’s, but no success. Any suggestion, cause I don’t want to handle this via processes and WindowsMediaPlayer? In my opinion this is not a alpha solution (processes) and should use as fallback.

I put my code for review in this Post.

Best regards,
Daniel

<Code>——————————————————————–
const int FSOUND_FREE=-1;
bool re=FMod.FSOUND_Stream_SetBufferSize(200);
bool res=FMod.FSOUND_Init(16000,24,0);
IntPtr filehandle=IntPtr.Zero;
filehandle=FMod.FSOUND_Stream_Open(URL,(uint)FSOUND_MODES.FSOUND_NORMAL | (uint)FSOUND_MODES.FSOUND_NONBLOCKING | (uint)FSOUND_MODES.FSOUND_SIGNED,0,0);
int pos=FMod.FSOUND_Stream_Play(FSOUND_FREE,filehandle);
FMod.FSOUND_Close();
<Code>——————————————————————–

  • You must to post comments
0
0

Hello brett,

I know the features of non blocking flags. If I use FMod.FSOUND_Stream_GetOpenState(filehandle) I always get -3.
If I disable non blocking flags I don’t get a valid stream- or filehandle. I tried many combinations of flags, but without success. Do FMOD not support http redirects? Did I do something completly wrong?

Best regards,
Daniel

  • You must to post comments
0
0

Hello brett,

you wrote in a other topic:

theoretically we could probably just enable the win32 netstreaming code in winCE. It should work, i think i was just worried about the size.

edit: actually it wont work because we havent set up the fixed point mp3 and ogg decoders to use internet streaming. maybe it can be done with a bit of tweaking but we’re concentrating a lot more on fmod ex right now.. for fmod 3.75 i might try and sneak it in only if it is possible


Brett Paterson
Firelight Technologies
FMOD SoundSystem

Did you fix it or it is still not supported by FMODCE?

Best regards,
Daniel

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.