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

size_t pa_frame_size ( const pa_sample_spec spec  ) 

Return the size of a frame with the specific sample type

Definition at line 70 of file sample.c.

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

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

    return size_table[spec->format] * spec->channels;
}


Generated by  Doxygen 1.6.0   Back to index