Logo Search packages:      
Sourcecode: pulseaudio version File versions

int pa_sample_spec_equal ( const pa_sample_spec a,
const pa_sample_spec b 
)

Return non-zero when the two sample type specifications match

Definition at line 107 of file sample.c.

References pa_sample_spec::channels, pa_sample_spec::format, and pa_sample_spec::rate.

                                                                         {
    pa_assert(a);
    pa_assert(b);

    return
        (a->format == b->format) &&
        (a->rate == b->rate) &&
        (a->channels == b->channels);
}


Generated by  Doxygen 1.6.0   Back to index