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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Trying to use dsp_set_timestretch in plugin
« previous next »
  • Print
Pages: [1]

Author Topic: Trying to use dsp_set_timestretch in plugin  (Read 1494 times)

Offline sidnancy

  • Member
  • *
  • Posts: 5
Trying to use dsp_set_timestretch in plugin
« on: August 23, 2012, 05:43:16 PM »
Hello, when I attempt to use rb->dsp_set_timestretch in a plugin, I get:

error: ‘const struct plugin_api’ has no member named ‘dsp_set_timestretch’

when trying to compile for the Emulator.

I was able to use timestretch in the emulator through the standard 'Now Playing' context menu, so I know the code works in general in the emulator.

Any suggestions?
Has anyone been able to get dsp_set_timestretch working in a plugin?
« Last Edit: August 26, 2012, 03:28:36 AM by sidnancy »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Trying to use dsp_set_timestretch in plugin
« Reply #1 on: August 23, 2012, 05:51:07 PM »
The plugin API probably doesn't export that function, although there is no reason it shouldn't.  You can add it to the plugin_api struct in plugin.c/.h.
Logged

Offline sidnancy

  • Member
  • *
  • Posts: 5
Re: Trying to use dsp_set_timestretch in plugin
« Reply #2 on: August 23, 2012, 06:32:24 PM »
It looks like it does export it.

Checking the API, I see that there is already this:

 #ifdef HAVE_PITCHCONTROL
    void (*dsp_set_timestretch)(int32_t percent);
#endif

in plugin.h and this:

#ifdef HAVE_PITCHCONTROL
    dsp_set_timestretch,
#endif

in plugin.c

I've tried removing the ifdefs  or defining HAVE_PITCHCONTROL as 1 or true and  the whole plugin crashes with this error on startup:

SDL_WaitEvent() error
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  4 (X_DestroyWindow)
  Resource id in failed request:  0x2023c
  Serial number of failed request:  121
  Current serial number in output stream:  121

On the target (ipod mini)
it dies at plugin start up with error message:

Undefined instruction a
bt pc: 0x000CF364, sp:
bt end


Any suggestions would be appreciated.
« Last Edit: August 26, 2012, 11:08:47 AM by sidnancy »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Trying to use dsp_set_timestretch in plugin
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.062 seconds with 15 queries.