summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/nes_apu.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libgme/nes_apu.h')
-rw-r--r--apps/codecs/libgme/nes_apu.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/codecs/libgme/nes_apu.h b/apps/codecs/libgme/nes_apu.h
index eb85a03f13..11f1f26cc7 100644
--- a/apps/codecs/libgme/nes_apu.h
+++ b/apps/codecs/libgme/nes_apu.h
@@ -48,22 +48,22 @@ struct Nes_Apu {
48void Apu_init( struct Nes_Apu* this ); 48void Apu_init( struct Nes_Apu* this );
49 49
50// Set buffer to generate all sound into, or disable sound if NULL 50// Set buffer to generate all sound into, or disable sound if NULL
51void Apu_output( struct Nes_Apu* this, struct Blip_Buffer* ) ICODE_ATTR; 51void Apu_output( struct Nes_Apu* this, struct Blip_Buffer* );
52 52
53// All time values are the number of cpu clock cycles relative to the 53// All time values are the number of cpu clock cycles relative to the
54// beginning of the current time frame. Before resetting the cpu clock 54// beginning of the current time frame. Before resetting the cpu clock
55// count, call end_frame( last_cpu_time ). 55// count, call end_frame( last_cpu_time ).
56 56
57// Write to register (0x4000-0x4017, except 0x4014 and 0x4016) 57// Write to register (0x4000-0x4017, except 0x4014 and 0x4016)
58void Apu_write_register( struct Nes_Apu* this, nes_time_t, addr_t, int data ) ICODE_ATTR; 58void Apu_write_register( struct Nes_Apu* this, nes_time_t, addr_t, int data );
59 59
60// Read from status register at 0x4015 60// Read from status register at 0x4015
61int Apu_read_status( struct Nes_Apu* this, nes_time_t ) ICODE_ATTR; 61int Apu_read_status( struct Nes_Apu* this, nes_time_t );
62 62
63// Run all oscillators up to specified time, end current time frame, then 63// Run all oscillators up to specified time, end current time frame, then
64// start a new time frame at time 0. Time frames have no effect on emulation 64// start a new time frame at time 0. Time frames have no effect on emulation
65// and each can be whatever length is convenient. 65// and each can be whatever length is convenient.
66void Apu_end_frame( struct Nes_Apu* this, nes_time_t ) ICODE_ATTR; 66void Apu_end_frame( struct Nes_Apu* this, nes_time_t );
67 67
68// Additional optional features (can be ignored without any problem) 68// Additional optional features (can be ignored without any problem)
69 69
@@ -81,7 +81,7 @@ void Apu_volume( struct Nes_Apu* this, int );
81 81
82// Run DMC until specified time, so that any DMC memory reads can be 82// Run DMC until specified time, so that any DMC memory reads can be
83// accounted for (i.e. inserting cpu wait states). 83// accounted for (i.e. inserting cpu wait states).
84void Apu_run_until( struct Nes_Apu* this, nes_time_t ) ICODE_ATTR; 84void Apu_run_until( struct Nes_Apu* this, nes_time_t );
85 85
86// Set sound output of specific oscillator to buffer. If buffer is NULL, 86// Set sound output of specific oscillator to buffer. If buffer is NULL,
87// the specified oscillator is muted and emulation accuracy is reduced. 87// the specified oscillator is muted and emulation accuracy is reduced.
@@ -129,6 +129,6 @@ static inline nes_time_t Dmc_next_read_time( struct Nes_Dmc* this )
129 129
130// Time when next DMC memory read will occur 130// Time when next DMC memory read will occur
131static inline nes_time_t Apu_next_dmc_read_time( struct Nes_Apu* this ) { return Dmc_next_read_time( &this->dmc ); } 131static inline nes_time_t Apu_next_dmc_read_time( struct Nes_Apu* this ) { return Dmc_next_read_time( &this->dmc ); }
132void Apu_irq_changed( struct Nes_Apu* this ) ICODE_ATTR; 132void Apu_irq_changed( struct Nes_Apu* this );
133 133
134#endif 134#endif