Logo Search packages:      
Sourcecode: pulseaudio version File versions

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 78 of file sample.c.

References pa_sample_spec::rate.

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

    return spec->rate*pa_frame_size(spec);
}


Generated by  Doxygen 1.6.0   Back to index