User Tag List

Results 1 to 7 of 7

Thread: SamplePosition("Sample") - Not working?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SamplePosition("Sample") - Not working?

    Can anyone confirm this? I'm using the latest MMF2 Developer and iOS builds.

    I have a string which always displays text from the following expression:
    Code:
    Str$(SamplePosition(CurrentSample))+"/"+Str$(SampleDuration(CurrentSample))
    *CurrentSample is a global string.

    It works on the exe, but not on the XCode iPhone simulator.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    The duration expression works for both MP3 and WAV, but the position expression works only for MP3... I checks, it is written in the documentation, in the Distributing your applications / Differences page...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm actually using MP3's :/

    Could I send you my source to look at?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have any advice on this? The project that I need this for is on a fast approaching deadline

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Hello,

    Can you make just a simple application with the get duration and get position expressions that shows the problem and send it to me? It will be a lot easier than sending the whole project...
    Btw : using MP3s to make sound effects is not recommended. There is only one hardware decoder, and they do slow down the application. You should use WAV for sound effects, and only one MP3 for the background music.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks - I've sent you the application. Would the slowdown appear on the simulator, or just on the iOS device?

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    It will certainly be more apparent on the devices, specially if they are old (slower processors).

Similar Threads

  1. [BUG] Ini object interferes with "Play sample from file" events
    By Strife in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 3rd September 2013, 03:21 PM
  2. ""Play sample file~" is effective.
    By kusa in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 26th September 2012, 04:46 PM
  3. Beta 6: SamplePosition("<samplename") > X not work
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 9th December 2010, 10:15 PM
  4. No "sounds over frames" & "Stop sample" crash
    By Giovanni_Cardona in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 5th November 2010, 01:48 PM
  5. "Play sample File on a Specific Channel" bugs.
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd December 2008, 02:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •