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

size_t pa_bytes_per_second ( const pa_sample_spec spec  ) 

Return the amount of bytes playback of a second of audio with the specified sample type takes

Definition at line 77 of file sample.c.

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

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

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


Generated by  Doxygen 1.6.0   Back to index