Changeset 3414:4c5cb34458dd in roaraudio for libroarpulse


Ignore:
Timestamp:
02/11/10 17:41:38 (10 years ago)
Author:
phi
Branch:
default
Message:

a lot prototypes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/sample.c

    r3413 r3414  
    3939#include <libroarpulse/libroarpulse.h> 
    4040 
     41/** Return the amount of bytes playback of a second of audio with the specified sample type takes */ 
     42size_t pa_bytes_per_second(const pa_sample_spec *spec); 
     43 
     44/** Return the size of a frame with the specific sample type */ 
     45size_t pa_frame_size(const pa_sample_spec *spec); 
     46 
     47/** Return the size of a sample with the specific sample type */ 
     48size_t pa_sample_size(const pa_sample_spec *spec); 
     49 
     50/** Calculate the time the specified bytes take to play with the specified sample type */ 
     51pa_usec_t pa_bytes_to_usec(uint64_t length, const pa_sample_spec *spec); 
     52 
     53/** Calculates the number of bytes that are required for the specified time. \since 0.9 */ 
     54size_t pa_usec_to_bytes(pa_usec_t t, const pa_sample_spec *spec); 
     55 
     56/** Return non-zero when the sample type specification is valid */ 
     57int pa_sample_spec_valid(const pa_sample_spec *spec); 
     58 
     59/** Return non-zero when the two sample type specifications match */ 
     60int pa_sample_spec_equal(const pa_sample_spec*a, const pa_sample_spec*b); 
     61 
     62/** Return a descriptive string for the specified sample format. \since 0.8 */ 
     63const char *pa_sample_format_to_string(pa_sample_format_t f); 
     64 
     65/** Parse a sample format text. Inverse of pa_sample_format_to_string() */ 
     66pa_sample_format_t pa_parse_sample_format(const char *format); 
     67 
     68/** Maximum required string length for pa_sample_spec_snprint() */ 
     69#define PA_SAMPLE_SPEC_SNPRINT_MAX 32 
     70 
     71/** Pretty print a sample type specification to a string */ 
     72char* pa_sample_spec_snprint(char *s, size_t l, const pa_sample_spec *spec); 
     73 
     74/** Pretty print a byte size value. (i.e. "2.5 MiB") */ 
     75char* pa_bytes_snprint(char *s, size_t l, unsigned v); 
     76 
    4177//ll 
Note: See TracChangeset for help on using the changeset viewer.