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
| | |-+  buffer_alloc in plugin app?
« previous next »
  • Print
Pages: [1]

Author Topic: buffer_alloc in plugin app?  (Read 2003 times)

Offline pablito

  • Member
  • *
  • Posts: 5
buffer_alloc in plugin app?
« on: August 12, 2009, 05:37:15 PM »
Hi,
I'm writing some synth-like app for rockbox. I'm using static array for the sample memory at the moment, but I want to have the sample memory size of configurable size.
The docs say, that I should use the buffer_alloc before the playback starts, but if I use that function (from "buffer.h") then RB says that buffer_alloc is undefined symbol.

What could be wrong? Why is the symbol not present?

Currently I'm working with iRiver H3x0 simulator. RockBox 3.3.
cheers
p.f.
« Last Edit: August 12, 2009, 07:09:17 PM by pablito »
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: buffer_alloc in plugin app?
« Reply #1 on: August 12, 2009, 07:54:00 PM »
you cant use buffer_alloc() once playback has been initialised... which means definetly not in plugins...
you have 2 options to get ram...
(going from memory so function names might be slightly off)...
get_plugin_buffer() and audio_steal_buffer().. the first gets the spare ram that was set aside for the plugin but not used (512KB on most targets, so minus the plugin size and a bit more...), the second stops playback and steals the ram it would use (anywhere from 1MB to 63~MB)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline pablito

  • Member
  • *
  • Posts: 5
Re: buffer_alloc in plugin app?
« Reply #2 on: August 13, 2009, 05:36:56 AM »
Thanx,
as I see it now I'll stay with the static buffer maximized for particular target.

Cheers
Pavel
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  buffer_alloc in plugin app?
 

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

Page created in 0.116 seconds with 22 queries.