diff options
author | Michiel Van Der Kolk <not.valid@email.address> | 2005-03-28 00:00:24 +0000 |
---|---|---|
committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-03-28 00:00:24 +0000 |
commit | 451dd48adc2ef29fd2f900693393cc9b9b4a849b (patch) | |
tree | e15d20e602261866617210bde007966ce9b19293 /apps/plugin.h | |
parent | 853bc3dcf85aa1284a0e5b550277c40beb7697a9 (diff) | |
download | rockbox-451dd48adc2ef29fd2f900693393cc9b9b4a849b.tar.gz rockbox-451dd48adc2ef29fd2f900693393cc9b9b4a849b.zip |
Sound api improvements, rockboy sound, contributed by xshock.
Playback of sound currently only works in boost mode, needs fixing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6226 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 3755018d6d..30ecfc7963 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -43,6 +43,7 @@ | |||
43 | #include "id3.h" | 43 | #include "id3.h" |
44 | #include "mpeg.h" | 44 | #include "mpeg.h" |
45 | #include "mp3_playback.h" | 45 | #include "mp3_playback.h" |
46 | #include "pcm_playback.h" | ||
46 | #include "settings.h" | 47 | #include "settings.h" |
47 | #include "thread.h" | 48 | #include "thread.h" |
48 | #include "playlist.h" | 49 | #include "playlist.h" |
@@ -317,11 +318,13 @@ struct plugin_api { | |||
317 | #if CONFIG_KEYPAD == IRIVER_H100_PAD | 318 | #if CONFIG_KEYPAD == IRIVER_H100_PAD |
318 | bool (*button_hold)(void); | 319 | bool (*button_hold)(void); |
319 | #endif | 320 | #endif |
320 | #if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) | 321 | #if (CONFIG_HWCODEC == MASNONE) |
321 | void (*pcm_play_data)(const unsigned char *start, int size, | 322 | void (*pcm_play_data)(const unsigned char *start, int size, |
322 | void (*get_more)(unsigned char** start, long*size)); | 323 | void (*get_more)(unsigned char** start, long*size)); |
323 | void (*pcm_play_stop)(void); | 324 | void (*pcm_play_stop)(void); |
325 | void (*pcm_set_frequency)(unsigned int frequency); | ||
324 | bool (*pcm_is_playing)(void); | 326 | bool (*pcm_is_playing)(void); |
327 | void (*pcm_set_volume)(int volume); | ||
325 | #endif | 328 | #endif |
326 | }; | 329 | }; |
327 | 330 | ||