11 void visual_audio_free (
VisAudio *
self)
16 void visual_audio_input (
VisAudio *
self,
18 VisAudioSampleRateType rate,
19 VisAudioSampleFormatType format,
20 VisAudioSampleChannelType channeltype)
22 visual_return_if_fail (
self !=
nullptr);
23 visual_return_if_fail (buffer !=
nullptr);
25 self->input (
LV::BufferPtr (buffer), rate, format, channeltype);
28 void visual_audio_input_channel (
VisAudio *
self,
30 VisAudioSampleRateType rate,
31 VisAudioSampleFormatType format,
32 const char *channelid)
34 visual_return_if_fail (
self !=
nullptr);
35 visual_return_if_fail (buffer !=
nullptr);
37 self->input (
LV::BufferPtr (buffer), rate, format, channelid);
40 int visual_audio_get_sample (
VisAudio *
self,
VisBuffer *buffer,
const char *channel_name)
42 visual_return_val_if_fail (
self !=
nullptr, FALSE);
43 visual_return_val_if_fail (buffer !=
nullptr, FALSE);
45 return self->get_sample (
LV::BufferPtr (buffer), channel_name);
48 void visual_audio_get_sample_mixed_simple (
VisAudio *
self,
VisBuffer *buffer,
unsigned int channels, ...)
50 visual_return_if_fail (
self !=
nullptr);
51 visual_return_if_fail (buffer !=
nullptr);
55 va_start (args, channels);
56 self->get_sample_mixed_simple (
LV::BufferPtr (buffer), channels, args);
60 void visual_audio_get_sample_mixed (
VisAudio *
self,
VisBuffer *buffer,
int divide,
unsigned int channels, ...)
62 visual_return_if_fail (
self !=
nullptr);
63 visual_return_if_fail (buffer !=
nullptr);
67 va_start (args, channels);
68 self->get_sample_mixed (
LV::BufferPtr (buffer), divide, channels, args);
72 void visual_audio_get_spectrum (
VisAudio *
self,
VisBuffer *buffer,
int samplelen,
const char *channel_name,
int normalised)
74 visual_return_if_fail (
self !=
nullptr);
75 visual_return_if_fail (buffer !=
nullptr);
77 self->get_spectrum (
LV::BufferPtr (buffer), samplelen, channel_name, normalised);
80 void visual_audio_get_spectrum_multiplied (
VisAudio *
self,
VisBuffer *buffer,
int samplelen,
const char *channel_name,
int normalised,
float multiplier)
82 visual_return_if_fail (
self !=
nullptr);
83 visual_return_if_fail (buffer !=
nullptr);
85 self->get_spectrum (
LV::BufferPtr (buffer), samplelen, channel_name, normalised, multiplier);
88 void visual_audio_get_spectrum_for_sample (
VisBuffer *buffer,
VisBuffer *sample,
int normalised)
90 visual_return_if_fail (buffer !=
nullptr);
91 visual_return_if_fail (sample !=
nullptr);
96 void visual_audio_get_spectrum_for_sample_multiplied (
VisBuffer *buffer,
VisBuffer *sample,
int normalised,
float multiplier)
98 visual_return_if_fail (buffer !=
nullptr);
99 visual_return_if_fail (sample !=
nullptr);
104 void visual_audio_normalise_spectrum (
VisBuffer *buffer)
106 visual_return_if_fail (buffer !=
nullptr);