Logo Search packages:      
Sourcecode: pulseaudio version File versions

int pa_cvolume_compatible ( const pa_cvolume v,
const pa_sample_spec ss 
)

Return non-zero if the specified volume is compatible with the specified sample spec.

Since:
0.9.13

Definition at line 355 of file volume.c.

References pa_sample_spec::channels, and pa_cvolume::channels.

                                                                         {

    pa_assert(v);
    pa_assert(ss);

    if (!pa_cvolume_valid(v))
        return 0;

    if (!pa_sample_spec_valid(ss))
        return 0;

    return v->channels == ss->channels;
}


Generated by  Doxygen 1.6.0   Back to index