path: root/apps/rbcodecplatform.h
AgeCommit message (Collapse)AuthorFilesLines
2012-05-07rbcodec: abstract tdspeed buffer allocationNils Wallménius1-0/+4
Move code dealing with rockbox specific buflib allocations into a rockbox specific file and implement buffer allocation with malloc/free for warble/stand alone lib. Based on patch by Sean Bartell. Change-Id: I8cb85dad5890fbd34c1bb26abbb89c0b0f6b55cf Reviewed-on: Tested-by: Nils Wallménius <> Reviewed-by: Michael Sevakis <> Reviewed-by: Nils Wallménius <>
2012-05-03Add rbcodecplatform.h and rbcodecconfig.h.Sean Bartell1-0/+35
librbcodec users must provide these two files when the library is built. rbcodecconfig.h provides configuration #defines and basic types, and will be included by public librbcodec headers, so it must not conflict with the user's code. rbcodecplatform.h provides various OS functions, and will only be included by source files and private headers. This system is intended to provide maximum flexibility for use on embedded systems, where no operating system headers are included. Unix systems can just copy rbcodecconfig-example.h and rbcodecplatform-unix.h with minimal changes. Change-Id: I350a2274d173da391fd1ca00c4202e9760d91def Reviewed-on: Reviewed-by: Nils Wallménius <> Tested-by: Nils Wallménius <>