Logo Search packages:      
Sourcecode: pulseaudio version File versions

size_t pa_sample_size ( const pa_sample_spec spec  ) 

Return the size of a sample with the specific sample type

Definition at line 63 of file sample.c.

References pa_sample_spec::format.

                                                  {

    pa_assert(spec);
    pa_return_val_if_fail(pa_sample_spec_valid(spec), 0);

    return pa_sample_size_of_format(spec->format);
}


Generated by  Doxygen 1.6.0   Back to index