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.zip rockbox-451dd48adc2ef29fd2f900693393cc9b9b4a849b.tar.gz rockbox-451dd48adc2ef29fd2f900693393cc9b9b4a849b.tar.bz2 rockbox-451dd48adc2ef29fd2f900693393cc9b9b4a849b.tar.xz | |
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 3755018..30ecfc7 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -43,6 +43,7 @@ #include "id3.h" #include "mpeg.h" #include "mp3_playback.h" +#include "pcm_playback.h" #include "settings.h" #include "thread.h" #include "playlist.h" @@ -317,11 +318,13 @@ struct plugin_api { #if CONFIG_KEYPAD == IRIVER_H100_PAD bool (*button_hold)(void); #endif -#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) +#if (CONFIG_HWCODEC == MASNONE) void (*pcm_play_data)(const unsigned char *start, int size, void (*get_more)(unsigned char** start, long*size)); - void (*pcm_play_stop)(void); + void (*pcm_play_stop)(void); + void (*pcm_set_frequency)(unsigned int frequency); bool (*pcm_is_playing)(void); + void (*pcm_set_volume)(int volume); #endif }; |