sio_sine

Translated from C to D

Members

Static functions

main
int main(int argc, char** argv)
Undocumented in source. Be warned that the author may not have intended to support it.
underflow_callback
void underflow_callback(SoundIoOutStream* outstream)
Undocumented in source. Be warned that the author may not have intended to support it.
usage
int usage(char* exe)
Undocumented in source. Be warned that the author may not have intended to support it.
write_callback
void write_callback(SoundIoOutStream* outstream, int frame_count_min, int frame_count_max)
Undocumented in source. Be warned that the author may not have intended to support it.
write_sample_float32ne
void write_sample_float32ne(char* ptr, double sample)
Undocumented in source. Be warned that the author may not have intended to support it.
write_sample_float64ne
void write_sample_float64ne(char* ptr, double sample)
Undocumented in source. Be warned that the author may not have intended to support it.
write_sample_s16ne
void write_sample_s16ne(char* ptr, double sample)
Undocumented in source. Be warned that the author may not have intended to support it.
write_sample_s32ne
void write_sample_s32ne(char* ptr, double sample)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

PI
const(double) PI;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
seconds_offset
double seconds_offset;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sineAmplitude
enum sineAmplitude;

Note: the original C example assumes an amplitude of 1, but that is really loud, so I added this constant to make the sound less annoying

want_pause
bool want_pause;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
write_sample
void function(char* ptr, double sample) write_sample;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta