Logo Search packages:      
Sourcecode: pulseaudio version File versions

pa_channel_map* pa_channel_map_init ( pa_channel_map m  ) 

Initialize the specified channel map and return a pointer to it. The channel map will have a defined state but pa_channel_map_valid() will fail for it.

Definition at line 164 of file channelmap.c.

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

                                                       {
    unsigned c;
    pa_assert(m);

    m->channels = 0;

    for (c = 0; c < PA_CHANNELS_MAX; c++)
        m->map[c] = PA_CHANNEL_POSITION_INVALID;

    return m;
}


Generated by  Doxygen 1.6.0   Back to index