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

pa_sample_spec* pa_sample_spec_init ( pa_sample_spec spec  ) 

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

Since:
0.9.13

Definition at line 98 of file sample.c.

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

                                                          {
    pa_assert(spec);

    spec->format = PA_SAMPLE_INVALID;
    spec->rate = 0;
    spec->channels = 0;

    return spec;
}


Generated by  Doxygen 1.6.0   Back to index