summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/multi_buffer.h
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-13 16:41:14 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-13 16:41:14 +0000
commita1145a1d040dd52b2b5d0e7fe965b6507475bbe2 (patch)
tree988f845d688974dd7db1950243ef09cc39ed443c /apps/codecs/libgme/multi_buffer.h
parent724a2d2514578297a7fe21dc4c17a7b51a25758d (diff)
downloadrockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.tar.gz
rockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.zip
Remove all IRAM attributes from libGME to be able to restart the IRAM optimization on a clean code base. As first step move the sample buffers to IRAM which results in a 1-5% speedup for all codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30284 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libgme/multi_buffer.h')
-rw-r--r--apps/codecs/libgme/multi_buffer.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libgme/multi_buffer.h b/apps/codecs/libgme/multi_buffer.h
index 26f302380c..cfdae4f077 100644
--- a/apps/codecs/libgme/multi_buffer.h
+++ b/apps/codecs/libgme/multi_buffer.h
@@ -38,18 +38,18 @@ void Buffer_clock_rate( struct Stereo_Buffer* this, long );
38void Buffer_bass_freq( struct Stereo_Buffer* this, int ); 38void Buffer_bass_freq( struct Stereo_Buffer* this, int );
39void Buffer_clear( struct Stereo_Buffer* this ); 39void Buffer_clear( struct Stereo_Buffer* this );
40struct channel_t Buffer_channel( struct Stereo_Buffer* this ); 40struct channel_t Buffer_channel( struct Stereo_Buffer* this );
41void Buffer_end_frame( struct Stereo_Buffer* this, blip_time_t ) ICODE_ATTR; 41void Buffer_end_frame( struct Stereo_Buffer* this, blip_time_t );
42 42
43long Buffer_read_samples( struct Stereo_Buffer* this, blip_sample_t*, long ) ICODE_ATTR; 43long Buffer_read_samples( struct Stereo_Buffer* this, blip_sample_t*, long );
44 44
45// Count of changes to channel configuration. Incremented whenever 45// Count of changes to channel configuration. Incremented whenever
46// a change is made to any of the Blip_Buffers for any channel. 46// a change is made to any of the Blip_Buffers for any channel.
47unsigned Buffer_channels_changed_count( struct Stereo_Buffer* this ) ICODE_ATTR; 47unsigned Buffer_channels_changed_count( struct Stereo_Buffer* this );
48void Buffer_channels_changed( struct Stereo_Buffer* this ) ICODE_ATTR; 48void Buffer_channels_changed( struct Stereo_Buffer* this );
49 49
50void Buffer_mix_stereo_no_center( struct Stereo_Buffer* this, blip_sample_t*, blargg_long ) ICODE_ATTR; 50void Buffer_mix_stereo_no_center( struct Stereo_Buffer* this, blip_sample_t*, blargg_long );
51void Buffer_mix_stereo( struct Stereo_Buffer* this, blip_sample_t*, blargg_long ) ICODE_ATTR; 51void Buffer_mix_stereo( struct Stereo_Buffer* this, blip_sample_t*, blargg_long );
52void Buffer_mix_mono( struct Stereo_Buffer* this, blip_sample_t*, blargg_long ) ICODE_ATTR; 52void Buffer_mix_mono( struct Stereo_Buffer* this, blip_sample_t*, blargg_long );
53 53
54// Number of samples per output frame (1 = mono, 2 = stereo) 54// Number of samples per output frame (1 = mono, 2 = stereo)
55static inline int Buffer_samples_per_frame( struct Stereo_Buffer* this ) 55static inline int Buffer_samples_per_frame( struct Stereo_Buffer* this )