Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  execute seek function when track starts
« previous next »
  • Print
Pages: [1]

Author Topic: execute seek function when track starts  (Read 1000 times)

Offline ohm3141

  • Member
  • *
  • Posts: 1
execute seek function when track starts
« on: December 04, 2018, 11:53:10 AM »
Hello,

Where do I need to be adding code to randomly seek into a track when it starts? I have successfully added a setting in the playback menu ("Jump Into"), and now I want to check the state of that setting every time a new track starts. If on, then randomly jump to somewhere in the middle of the track. If not, start play normally.

1. What function should I be calling to perform that seek? I've tried "audio_on_ff_rewind(long time)", but either that's not the right function, or I'm not calling it in the right spot.

2. Where do I need to call that seek function (or whichever function I should be calling if someone wants to correct me on #1)?

Thank you all for what you've done with Rockbox...it's great!

Greg
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  execute seek function when track starts
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.018 seconds with 18 queries.