Logo Search packages:      
Sourcecode: pulseaudio version File versions

pa_cvolume* pa_cvolume_set ( pa_cvolume a,
unsigned  channels,
pa_volume_t  v 

Set the volume of all channels to the specified parameter

Definition at line 63 of file volume.c.

References pa_cvolume::channels, PA_CHANNELS_MAX, and pa_cvolume::values.

    int i;

    pa_assert(channels > 0);
    pa_assert(channels <= PA_CHANNELS_MAX);

    a->channels = (uint8_t) channels;

    for (i = 0; i < a->channels; i++)
        a->values[i] = v;

    return a;

Generated by  Doxygen 1.6.0   Back to index