diff options
author | Wincent Balin <wincent@rockbox.org> | 2010-07-05 01:35:04 +0000 |
---|---|---|
committer | Wincent Balin <wincent@rockbox.org> | 2010-07-05 01:35:04 +0000 |
commit | 38fe596cd520e791de69558bc8d4d6c15a38110c (patch) | |
tree | e188601d293408683026b239b47f2121013a8d11 /apps/plugins/pdbox | |
parent | d5342fd129b9a1c4a8849930b37d01698b3214be (diff) | |
download | rockbox-38fe596cd520e791de69558bc8d4d6c15a38110c.tar.gz rockbox-38fe596cd520e791de69558bc8d4d6c15a38110c.tar.bz2 rockbox-38fe596cd520e791de69558bc8d4d6c15a38110c.zip |
pdbox: Optimizations in the audio output code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27288 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/s_audio_rockbox.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/pdbox/PDa/src/s_audio_rockbox.c b/apps/plugins/pdbox/PDa/src/s_audio_rockbox.c index e12e00484c..76a50fa075 100644 --- a/apps/plugins/pdbox/PDa/src/s_audio_rockbox.c +++ b/apps/plugins/pdbox/PDa/src/s_audio_rockbox.c @@ -25,6 +25,10 @@ #include "m_pd.h" #include "s_stuff.h" +/* Declare functions that go to IRAM. */ +void pdbox_get_more(unsigned char** start, size_t* size) ICODE_ATTR; +int rockbox_send_dacs(void) ICODE_ATTR; + /* Extern variables. */ extern float sys_dacsr; extern t_sample *sys_soundout; @@ -125,7 +129,7 @@ int rockbox_send_dacs(void) t_sample* right = sys_soundout + DEFDACBLKSIZE*1; unsigned int samples_out = 0; int16_t* out; - int sample; + register int sample; /* Cancel if whole buffer filled. */ if(outbuf_fill >= OUTBUFSIZE-1) |