summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-01-01 12:59:32 +0000
committerDave Chapman <dave@dchapman.com>2007-01-01 12:59:32 +0000
commit4b801b2d3a45db8df38d02b3c634b0b257290a9b (patch)
treeb7fbacd310a053d1fb9e69533ec7ee8cf8c10431 /apps/plugin.h
parent718ffdeadaea1c03d562201990ae699a87df526a (diff)
downloadrockbox-4b801b2d3a45db8df38d02b3c634b0b257290a9b.tar.gz
rockbox-4b801b2d3a45db8df38d02b3c634b0b257290a9b.zip
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
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 6fad78edd7..6e9a1316d5 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -110,7 +110,7 @@
110#define PLUGIN_MAGIC 0x526F634B /* RocK */ 110#define PLUGIN_MAGIC 0x526F634B /* RocK */
111 111
112/* increase this every time the api struct changes */ 112/* increase this every time the api struct changes */
113#define PLUGIN_API_VERSION 39 113#define PLUGIN_API_VERSION 40
114 114
115/* update this to latest version if a change to the api struct breaks 115/* update this to latest version if a change to the api struct breaks
116 backwards compatibility (and please take the opportunity to sort in any 116 backwards compatibility (and please take the opportunity to sort in any
@@ -602,6 +602,11 @@ struct plugin_api {
602 int (*sound_default)(int setting); 602 int (*sound_default)(int setting);
603 void (*pcm_record_more)(void *start, size_t size); 603 void (*pcm_record_more)(void *start, size_t size);
604#endif 604#endif
605
606 struct thread_entry*(*create_thread_on_core)(
607 unsigned int core, void (*function)(void),
608 void* stack, int stack_size,
609 const char *name IF_PRIO(, int priority));
605}; 610};
606 611
607/* plugin header */ 612/* plugin header */