summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/blip_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libgme/blip_buffer.h')
-rw-r--r--apps/codecs/libgme/blip_buffer.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/codecs/libgme/blip_buffer.h b/apps/codecs/libgme/blip_buffer.h
index d03e1c0998..f9f1f6e969 100644
--- a/apps/codecs/libgme/blip_buffer.h
+++ b/apps/codecs/libgme/blip_buffer.h
@@ -65,12 +65,12 @@ struct Blip_Buffer {
65}; 65};
66 66
67// not documented yet 67// not documented yet
68void Blip_set_modified( struct Blip_Buffer* this ) ICODE_ATTR; 68void Blip_set_modified( struct Blip_Buffer* this );
69int Blip_clear_modified( struct Blip_Buffer* this ) ICODE_ATTR; 69int Blip_clear_modified( struct Blip_Buffer* this );
70void Blip_remove_silence( struct Blip_Buffer* this, long count ) ICODE_ATTR; 70void Blip_remove_silence( struct Blip_Buffer* this, long count );
71blip_resampled_time_t Blip_resampled_duration( struct Blip_Buffer* this, int t ) ICODE_ATTR; 71blip_resampled_time_t Blip_resampled_duration( struct Blip_Buffer* this, int t );
72blip_resampled_time_t Blip_resampled_time( struct Blip_Buffer* this, blip_time_t t ) ICODE_ATTR; 72blip_resampled_time_t Blip_resampled_time( struct Blip_Buffer* this, blip_time_t t );
73blip_resampled_time_t Blip_clock_rate_factor( struct Blip_Buffer* this, long clock_rate ) ICODE_ATTR; 73blip_resampled_time_t Blip_clock_rate_factor( struct Blip_Buffer* this, long clock_rate );
74 74
75// Initializes Blip_Buffer structure 75// Initializes Blip_Buffer structure
76void Blip_init( struct Blip_Buffer* this ); 76void Blip_init( struct Blip_Buffer* this );
@@ -92,13 +92,13 @@ static inline void Blip_set_clock_rate( struct Blip_Buffer* this, long cps )
92// End current time frame of specified duration and make its samples available 92// End current time frame of specified duration and make its samples available
93// (along with any still-unread samples) for reading with read_samples(). Begins 93// (along with any still-unread samples) for reading with read_samples(). Begins
94// a new time frame at the end of the current frame. 94// a new time frame at the end of the current frame.
95void Blip_end_frame( struct Blip_Buffer* this, blip_time_t time ) ICODE_ATTR; 95void Blip_end_frame( struct Blip_Buffer* this, blip_time_t time );
96 96
97// Read at most 'max_samples' out of buffer into 'dest', removing them from from 97// Read at most 'max_samples' out of buffer into 'dest', removing them from from
98// the buffer. Returns number of samples actually read and removed. If stereo is 98// the buffer. Returns number of samples actually read and removed. If stereo is
99// true, increments 'dest' one extra time after writing each sample, to allow 99// true, increments 'dest' one extra time after writing each sample, to allow
100// easy interleving of two channels into a stereo output buffer. 100// easy interleving of two channels into a stereo output buffer.
101long Blip_read_samples( struct Blip_Buffer* this, blip_sample_t* dest, long max_samples, int stereo ) ICODE_ATTR; 101long Blip_read_samples( struct Blip_Buffer* this, blip_sample_t* dest, long max_samples, int stereo );
102 102
103// Additional optional features 103// Additional optional features
104 104
@@ -141,20 +141,20 @@ static inline long Blip_samples_avail( struct Blip_Buffer* this )
141} 141}
142 142
143// Remove 'count' samples from those waiting to be read 143// Remove 'count' samples from those waiting to be read
144void Blip_remove_samples( struct Blip_Buffer* this, long count ) ICODE_ATTR; 144void Blip_remove_samples( struct Blip_Buffer* this, long count );
145 145
146// Experimental features 146// Experimental features
147 147
148// Count number of clocks needed until 'count' samples will be available. 148// Count number of clocks needed until 'count' samples will be available.
149// If buffer can't even hold 'count' samples, returns number of clocks until 149// If buffer can't even hold 'count' samples, returns number of clocks until
150// buffer becomes full. 150// buffer becomes full.
151blip_time_t Blip_count_clocks( struct Blip_Buffer* this, long count ) ICODE_ATTR; 151blip_time_t Blip_count_clocks( struct Blip_Buffer* this, long count );
152 152
153// Number of raw samples that can be mixed within frame of specified duration. 153// Number of raw samples that can be mixed within frame of specified duration.
154long Blip_count_samples( struct Blip_Buffer* this, blip_time_t duration ) ICODE_ATTR; 154long Blip_count_samples( struct Blip_Buffer* this, blip_time_t duration );
155 155
156// Mix 'count' samples from 'buf' into buffer. 156// Mix 'count' samples from 'buf' into buffer.
157void Blip_mix_samples( struct Blip_Buffer* this, blip_sample_t const* buf, long count ) ICODE_ATTR; 157void Blip_mix_samples( struct Blip_Buffer* this, blip_sample_t const* buf, long count );
158 158
159// Range specifies the greatest expected change in amplitude. Calculate it 159// Range specifies the greatest expected change in amplitude. Calculate it
160// by finding the difference between the maximum and minimum expected 160// by finding the difference between the maximum and minimum expected
@@ -170,10 +170,10 @@ struct Blip_Synth {
170void Synth_init( struct Blip_Synth* this ); 170void Synth_init( struct Blip_Synth* this );
171 171
172// Set overall volume of waveform 172// Set overall volume of waveform
173void Synth_volume( struct Blip_Synth* this, int v ) ICODE_ATTR; 173void Synth_volume( struct Blip_Synth* this, int v );
174 174
175// Get/set Blip_Buffer used for output 175// Get/set Blip_Buffer used for output
176const struct Blip_Buffer* Synth_output( struct Blip_Synth* this ) ICODE_ATTR; 176const struct Blip_Buffer* Synth_output( struct Blip_Synth* this );
177 177
178// Low-level interface 178// Low-level interface
179 179