Logo Search packages:      
Sourcecode: pulseaudio version File versions

pa_cvolume* pa_cvolume_init ( pa_cvolume a  ) 

Initialize the specified volume and return a pointer to it. The sample spec will have a defined state but pa_cvolume_valid() will fail for it.

Since:
0.9.13

Definition at line 50 of file volume.c.

References pa_cvolume::channels, PA_CHANNELS_MAX, pa_volume_t, and pa_cvolume::values.

                                           {
    unsigned c;

    pa_assert(a);

    a->channels = 0;

    for (c = 0; c < PA_CHANNELS_MAX; c++)
        a->values[c] = (pa_volume_t) -1;

    return a;
}


Generated by  Doxygen 1.6.0   Back to index