Logo Search packages:      
Sourcecode: pulseaudio version File versions

int pa_channel_map_compatible ( const pa_channel_map map,
const pa_sample_spec ss 
)

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

Since:
0.9.12

Definition at line 568 of file channelmap.c.

References pa_sample_spec::channels, and pa_channel_map::channels.

                                                                                   {
    pa_assert(map);
    pa_assert(ss);

    if (!pa_channel_map_valid(map))
        return 0;

    if (!pa_sample_spec_valid(ss))
        return 0;

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


Generated by  Doxygen 1.6.0   Back to index