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

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

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

                                                                         {

    pa_assert(v);
    pa_assert(ss);

    pa_return_val_if_fail(pa_cvolume_valid(v), 0);
    pa_return_val_if_fail(pa_sample_spec_valid(ss), 0);

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

Generated by  Doxygen 1.6.0   Back to index