summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/gbs_emu.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libgme/gbs_emu.h')
-rw-r--r--apps/codecs/libgme/gbs_emu.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/codecs/libgme/gbs_emu.h b/apps/codecs/libgme/gbs_emu.h
index 5a4ac2dfd9..b73f106d8f 100644
--- a/apps/codecs/libgme/gbs_emu.h
+++ b/apps/codecs/libgme/gbs_emu.h
@@ -126,7 +126,7 @@ blargg_err_t Gbs_start_track( struct Gbs_Emu* this, int );
126 126
127// Generate 'count' samples info 'buf'. Output is in stereo. Any emulation 127// Generate 'count' samples info 'buf'. Output is in stereo. Any emulation
128// errors set warning string, and major errors also end track. 128// errors set warning string, and major errors also end track.
129blargg_err_t Gbs_play( struct Gbs_Emu* this, long count, sample_t* buf ) ICODE_ATTR; 129blargg_err_t Gbs_play( struct Gbs_Emu* this, long count, sample_t* buf );
130 130
131// Track status/control 131// Track status/control
132// Number of milliseconds (1000 msec = 1 second) played since beginning of track 132// Number of milliseconds (1000 msec = 1 second) played since beginning of track
@@ -178,16 +178,16 @@ static inline void Sound_set_gain( struct Gbs_Emu* this, int g )
178 178
179// Emulation (You shouldn't touch these) 179// Emulation (You shouldn't touch these)
180 180
181blargg_err_t Run_clocks( struct Gbs_Emu* this, blip_time_t duration ) ICODE_ATTR; 181blargg_err_t Run_clocks( struct Gbs_Emu* this, blip_time_t duration );
182void Set_bank( struct Gbs_Emu* this, int ) ICODE_ATTR; 182void Set_bank( struct Gbs_Emu* this, int );
183void Update_timer( struct Gbs_Emu* this ) ICODE_ATTR; 183void Update_timer( struct Gbs_Emu* this );
184 184
185// Runs CPU until time becomes >= 0 185// Runs CPU until time becomes >= 0
186void Run_cpu( struct Gbs_Emu* this ) ICODE_ATTR; 186void Run_cpu( struct Gbs_Emu* this );
187 187
188// Reads/writes memory and I/O 188// Reads/writes memory and I/O
189int Read_mem( struct Gbs_Emu* this, addr_t addr ) ICODE_ATTR; 189int Read_mem( struct Gbs_Emu* this, addr_t addr );
190void Write_mem( struct Gbs_Emu* this, addr_t addr, int data ) ICODE_ATTR; 190void Write_mem( struct Gbs_Emu* this, addr_t addr, int data );
191 191
192// Current time 192// Current time
193static inline blip_time_t Time( struct Gbs_Emu* this ) 193static inline blip_time_t Time( struct Gbs_Emu* this )
@@ -195,10 +195,10 @@ static inline blip_time_t Time( struct Gbs_Emu* this )
195 return Cpu_time( &this->cpu ) + this->end_time; 195 return Cpu_time( &this->cpu ) + this->end_time;
196} 196}
197 197
198void Jsr_then_stop( struct Gbs_Emu* this, byte const [] ) ICODE_ATTR; 198void Jsr_then_stop( struct Gbs_Emu* this, byte const [] );
199void Write_io_inline( struct Gbs_Emu* this, int offset, int data, int base ) ICODE_ATTR; 199void Write_io_inline( struct Gbs_Emu* this, int offset, int data, int base );
200void Write_io_( struct Gbs_Emu* this, int offset, int data ) ICODE_ATTR; 200void Write_io_( struct Gbs_Emu* this, int offset, int data );
201int Read_io( struct Gbs_Emu* this, int offset ) ICODE_ATTR; 201int Read_io( struct Gbs_Emu* this, int offset );
202void Write_io( struct Gbs_Emu* this, int offset, int data ) ICODE_ATTR; 202void Write_io( struct Gbs_Emu* this, int offset, int data );
203 203
204#endif 204#endif