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

int pa_channel_map_equal ( const pa_channel_map a,
const pa_channel_map b 
)

Compare two channel maps. Return 1 if both match.

Definition at line 415 of file channelmap.c.

References pa_channel_map::channels, and pa_channel_map::map.

                                                                           {
    unsigned c;

    pa_assert(a);
    pa_assert(b);

    if (a->channels != b->channels)
        return 0;

    for (c = 0; c < a->channels; c++)
        if (a->map[c] != b->map[c])
            return 0;

    return 1;
}


Generated by  Doxygen 1.6.0   Back to index