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

size_t pa_sample_size ( const pa_sample_spec spec  ) 

Return the size of a sample with the specific sample type

Definition at line 62 of file sample.c.

References pa_sample_spec::format.

                                                  {

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

    return size_table[spec->format];
}


Generated by  Doxygen 1.6.0   Back to index