New Player API 13-Nov-2009 12:08 PM
Edit FancyEdit New New Blog Upload All Recent Home Logout

MikModEngine

  1. Starts its own thread.
  2. "xxx" is a notification sent out.

API: [mod Init] // 1. setup drivers and such // 2. "Mod Ready"

    [mod Load:(NSString *)song]             // loads a song.
    //      1. [self Stop];
    //      2. load song
    //      3. "Mod Started Loading"
    //      4. [self SeekTo:0.0];
    //      5. "Mod Finished Loading"
    //         "Mod Finished Loading With Error"

    [mod Play]                              // plays the song from the current position (also "unpause")
    //      1. start player
    //      2. "Mod Started Playing"

    [mod Stop]                              // stops the current song (also "pause")
    //      1. stop player
    //      2. mute output
    //      3. "Mod Stopped Playing"

    [mod SeekTo:(float)percent]             // scrubber
    //      1. seek

    [mod Advance]                           // goes to next pattern
    //      1. seek

    [mod Prevance]                          // goes to previous pattern
    //      1. seek


    ( In the play loop )
    //      check for song loop,
    //              "Mod Restared Playing"

    //      check for song finished
    //              "Mod Finished Playing"