0
0

Just landed a job to develop an app on the PocketPC. The first assignement: get an .mp3 playing in a demo under the Smart Device emulator.

Anyone have a complete .NET 2003 project I can use to complete this task? I am registered at Scriptlance and can pay $$ for the help or through PayPal.

I have a whole library of books on the way and will do my best to lose newbie status ASAP.

  • You must to post comments
0
0

BTW, we’ll be getting the FMOD library when we go live with the application next year. It’s in dev for the next 6 months or so.

  • You must to post comments
0
0

Yes, I did get that example working. Gotta have .NET though. Anyone who can provide me with a complete managed code .NET project?

  • You must to post comments
0
0

Here’s where the code crashes right now:

fmod.cs

result = FMOD_System_Create(ref systemraw);

Here’s what’s in my Solution:

audio_01.cs
fmod.cs
fmod_dsp.cs
fmod_errors.cs
fmodex.dll
fmodexp.dll
jack.mp3

  • You must to post comments
0
0

Okay, I figured out I need to have fmodce.cs & fmodce.dll so my Solution now looks like this:

Audio_02.cs
Fmodce.cs
fmodce.dll
jack.mp3

Audio_02.cs has this:

using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
using System.IO;
using System.Text;
using System.Threading;
using System.Runtime.InteropServices;
using Fmodce;

<snip>
public Audio_02()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

String CodePath = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;
CodePath = CodePath.Substring(0, CodePath.LastIndexOf(@”\”));

m_AudioName = CodePath + @”\” + m_AudioName;
Fmodce.F_MODCE.FSOUND_Init(44100, 2, 0);

<snip>

fmodce.cs

[DllImport(“fmodce.dll”)]
public static extern bool FSOUND_Init(int mixrate, int maxsoftwarechannels, FSOUND_INIT_FLAGS flags);

Running it now gives me the error System.MissingMethodException. It looks like the fmodce.dll is not being found by the emulator even though it is clearly imported. Should be putting the .dll elsehwere and how?

Any suggestions?

And, yes I am a complete newbie to PocketPC programming. I’ve raided Amazon.com but the books won’t get here until end of next week. So I am prepared to RTFM.

  • You must to post comments
0
0

>i don’t even know how you got the idea that FMOD Ex supported CE

Windows CE –
Pocket PC /Smartphone. download here (4.37mb)

  • You must to post comments
0
0

Fmodce.cs

<snip>
/// <summary>
/// Initializes the FMOD Sound System.
/// </summary>
[DllImport(“fmodce.dll”)]
public static extern bool FSOUND_Init(int mixrate, int maxsoftwarechannels, FSOUND_INIT_FLAGS flags);

>I can only say if it works in C, then it works, if your C# program doesnt >work, then it’s up to you (or whoever wrote fmodce.cs) to find the problem.

Looks pretty standard to me.

There are a bunch of fmodce.dll’s. Is there one that is supposed to work with the .NET emulator was my question.

  • You must to post comments
0
0

>Yes but that is FMOD 3, I said FMOD Ex (thats where FMOD_System_Create >comes from)

Yes, that is from my original thread before I realized I wasn’t using the software intended for the PocketPC. I am now using coding specifically designed for PocketPC and the fmodce.dll. It scrunches at FSOUND_Init which is in that particular DLL.

I know the type call I am making is correct because I use a similar construct with core.dll to play .wav files. So it seemed to me I was using the wrong version of the fmodce.dll aginst the 2002 emulator.

  • You must to post comments
0
0

Tried both. No dice. Got ‘A managed MissingMethodException’

Is it possible it’s the age of the emulator? Which version are you using? We’re using .NET 2003 right out of the box. The IDE is finding the appropriate code, the . brings up the FSOUND_Init which I filled in with F_MODCE.FSOUND_Init(44100, 1, 0);

If I comment it out and use the core.dll WCE_PlaySound function instead, it works fine.

  • You must to post comments
Showing 8 results
Your Answer

Please first to submit.