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 143 of file volume.c.

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

    unsigned c;

    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