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 | |
parent | d5342fd129b9a1c4a8849930b37d01698b3214be (diff) | |
download | rockbox-38fe596cd520e791de69558bc8d4d6c15a38110c.tar.gz 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')
-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 @@ | |||
25 | #include "m_pd.h" | 25 | #include "m_pd.h" |
26 | #include "s_stuff.h" | 26 | #include "s_stuff.h" |
27 | 27 | ||
28 | /* Declare functions that go to IRAM. */ | ||
29 | void pdbox_get_more(unsigned char** start, size_t* size) ICODE_ATTR; | ||
30 | int rockbox_send_dacs(void) ICODE_ATTR; | ||
31 | |||
28 | /* Extern variables. */ | 32 | /* Extern variables. */ |
29 | extern float sys_dacsr; | 33 | extern float sys_dacsr; |
30 | extern t_sample *sys_soundout; | 34 | extern t_sample *sys_soundout; |
@@ -125,7 +129,7 @@ int rockbox_send_dacs(void) | |||
125 | t_sample* right = sys_soundout + DEFDACBLKSIZE*1; | 129 | t_sample* right = sys_soundout + DEFDACBLKSIZE*1; |
126 | unsigned int samples_out = 0; | 130 | unsigned int samples_out = 0; |
127 | int16_t* out; | 131 | int16_t* out; |
128 | int sample; | 132 | register int sample; |
129 | 133 | ||
130 | /* Cancel if whole buffer filled. */ | 134 | /* Cancel if whole buffer filled. */ |
131 | if(outbuf_fill >= OUTBUFSIZE-1) | 135 | if(outbuf_fill >= OUTBUFSIZE-1) |