FMOD and the device

Discussion in 'Questions (Windows Mobile)' started by sloopa, May 19, 2007.

  1. sloopa

    sloopa Member Licensed User

    Hi Erel,

    do you know your example for fmod on the PPC.

    It don't work on the PPC (with V4.05 it does) -

    V5 says:
    An error occured on sub btnload_click

    Line number: 20

    Error description:

    Here is the source:

    'Add an FMOD object named fmod first, and a ProgressBar named bar
    Sub Globals
    dim pause,file
    End Sub

    Sub App_Start
    Timer1.Interval = 1000
    End Sub

    Sub Timer1_Tick
    bar.Value = 100 * fmod.Position/fmod.Length1
    Label1.Text = bar.Value & "%"
    if bar.Value = 100 then 'end of song
    Timer1.Enabled = false
    form1.Text = "MP3 Player"
    end if
    End Sub

    Sub btnLoad_Click
    if OpenDialog1.Show <> cCancel then
    file = OpenDialog1.File
    form1.Text = StrReplace(FileName(OpenDialog1.File),".mp3","")
    Timer1.Enabled = true
    btnPause.Text = "Pause"
    end if
    End Sub

    Sub btnPause_Click
    if btnPause.Text = "Pause" then
    pause = fmod.Position
    btnPause.Text = "Resume"
    Timer1.Enabled = false
    else 'Resume
    fmod.Play( file)
    fmod.Position = pause
    btnPause.Text = "Pause"
    timer1.Enabled = true
    end if
    End Sub
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. sloopa

    sloopa Member Licensed User

    You are right... (the bug is in front of the PPC)


    the fmodce.dll wasn't in the basic4ppc-program-directory (only in the source-directory)

    Last edited: May 19, 2007
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice