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

size_t pa_usec_to_bytes ( pa_usec_t  t,
const pa_sample_spec spec 
)

Calculates the number of bytes that are required for the specified time.

Since:
0.9

Definition at line 76 of file sample.c.

References pa_sample_spec::rate.

                                                                 {
    pa_assert(spec);

    return (size_t) (((double) t * spec->rate / 1000000))*pa_frame_size(spec);
}


Generated by  Doxygen 1.6.0   Back to index