forked from len0rd/rockbox
Initial implementation of audio support (44.1KHz only, mp2 or mp3, mono/stereo, any bitrate) and .mpg file (MPEG program stream) parsing for mpegplayer - .m2v files are no longer supported. .mpg parser based on patch #6366 from Mathieu Favreaux. Currently limited to only playing files smaller than the available buffer RAM (it will play longer files, but never refills the buffer when it runs empty). There is also no a/v sync implemented, and still no seeking support. Coldfire (iriver H3x0 and iaudio X5) users can use the optimisations provided in patch #5995 to increase the framerate, and PortalPlayer (ipods and iriver H10) users will want to use kernel_on_cop_6.diff from FS#5755 which enables mpegplayer to run the video thread on the second CPU core - video on the second core with audio on the first core runs at the same speed as the old mpegplayer did with no audio.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11877 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
718ffdeada
commit
4b801b2d3a
7 changed files with 715 additions and 79 deletions
|
|
@ -110,7 +110,7 @@
|
|||
#define PLUGIN_MAGIC 0x526F634B /* RocK */
|
||||
|
||||
/* increase this every time the api struct changes */
|
||||
#define PLUGIN_API_VERSION 39
|
||||
#define PLUGIN_API_VERSION 40
|
||||
|
||||
/* update this to latest version if a change to the api struct breaks
|
||||
backwards compatibility (and please take the opportunity to sort in any
|
||||
|
|
@ -602,6 +602,11 @@ struct plugin_api {
|
|||
int (*sound_default)(int setting);
|
||||
void (*pcm_record_more)(void *start, size_t size);
|
||||
#endif
|
||||
|
||||
struct thread_entry*(*create_thread_on_core)(
|
||||
unsigned int core, void (*function)(void),
|
||||
void* stack, int stack_size,
|
||||
const char *name IF_PRIO(, int priority));
|
||||
};
|
||||
|
||||
/* plugin header */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue