Author Topic: Problem with seek in custom plugin  (Read 988 times)

vdxp

  • Posts: 8
Problem with seek in custom plugin
« on: 18 Aug '14 - 15:58 »
Hi,

I created my own custom input plugin for an audio format using the 'flac' example from the XmPlay SDK. The files play normally, but there is no seek slider, and I can't figure out how to make it appear. I implemented all of the functions that are in the example, including GetFileInfo and SetPosition. But SetPosition is called only once, when file has finished playing, with the 0 argument. How do I make the seek slider work?

Ian @ un4seen

  • Administrator
  • Posts: 20401
Re: Problem with seek in custom plugin
« Reply #1 on: 18 Aug '14 - 16:09 »
Are you calling the XMPFUNC_IN SetLength function with seekable=true? If not, doing that in your plugin's Open function should get seeking working.

vdxp

  • Posts: 8
Re: Problem with seek in custom plugin
« Reply #2 on: 18 Aug '14 - 16:22 »
Thank you very much for the quick answer! That's exactly the solution I needed!
The XmPlay SDK is really neat and easy-to-use!

Ian @ un4seen

  • Administrator
  • Posts: 20401
Re: Problem with seek in custom plugin
« Reply #3 on: 19 Aug '14 - 13:13 »
Good to hear that it's working now. Don't forget to submit your new plugin when it's done :)