Logo Search packages:      
Sourcecode: pulseaudio version File versions

pa_cvolume* pa_sw_cvolume_multiply ( pa_cvolume dest,
const pa_cvolume a,
const pa_cvolume b 

Multiply two per-channel volumes and return the result in *dest. This is only valid for software volumes!

Definition at line 225 of file volume.c.

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

    unsigned i;


    for (i = 0; i < a->channels && i < b->channels && i < PA_CHANNELS_MAX; i++)
        dest->values[i] = pa_sw_volume_multiply(a->values[i], b->values[i]);

    dest->channels = (uint8_t) i;

    return dest;

Generated by  Doxygen 1.6.0   Back to index