Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

int pa_cvolume_channels_equal_to ( const pa_cvolume a,
pa_volume_t  v 
)

Return non-zero if the volume of all channels is equal to the specified value

Definition at line 382 of file volume.c.

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

                                                                     {
    unsigned c;
    pa_assert(a);

    pa_return_val_if_fail(pa_cvolume_valid(a), 0);
    pa_return_val_if_fail(v != PA_VOLUME_INVALID, 0);

    for (c = 0; c < a->channels; c++)
        if (a->values[c] != v)
            return 0;

    return 1;
}


Generated by  Doxygen 1.6.0   Back to index