Logo Search packages:      
Sourcecode: pulseaudio version File versions

pa_volume_t pa_cvolume_max ( const pa_cvolume a  ) 

Return the maximum volume of all channels.

Since:
0.9.12

Definition at line 91 of file volume.c.

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

                                                {
    pa_volume_t m = 0;
    int i;
    pa_assert(a);

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

    return m;
}


Generated by  Doxygen 1.6.0   Back to index