#include "cslmain.h"
#include "cslconfig.h"
#include "cslprivate.h"
#include "cslutils.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
Compounds | |
struct | DriverEntry |
Functions | |
const char ** | csl_list_drivers (unsigned int *n_backends_p) |
Return list of drivers. More... | |
CslErrorType | csl_driver_init_mutex (const char *driver_name, CslDriverCaps required_caps, CslMutex *mutex, CslDriver **driver_p) |
Initialize the CSL library. More... | |
CslErrorType | csl_driver_init (const char *driver_name, CslDriver **driver_p) |
Initialize the CSL library. More... | |
void | csl_driver_shutdown (CslDriver *driver) |
Shutdown driver. More... | |
const char * | csl_strerror (CslErrorType error_type) |
Return error description. More... | |
void | csl_options_parse (CslOptions *options, int *argc_p, char **argv_p[]) |
Parse command line options. More... | |
char * | csl_options_describe (unsigned int indent) |
Describe command line options. More... | |
char * | csl_options_dump (CslOptions *options) |
Dump CSL options. More... | |
char * | csl_describe_pcm_format (unsigned int format) |
Describe a PCM format. More... |
|
Describe a PCM format. Given a PCM format value, return a string describing the selected format (e.g. "16bit, little-endian, signed")
|
|
Initialize the CSL library. Call this function to initialize the CSL library. You need to call this to obtain a handle to a driver before performing any driver functions. For multithreaded applications you should use csl_driver_init_mutex instead.
|
|
Initialize the CSL library. Call this function to initialize the CSL library. You need to call this to obtain a handle to a driver before performing any driver functions. For non-multithreaded applications you can use csl_driver_init instead.
|
|
Shutdown driver. Shutdown a driver and release any resources associated with it. There is no way of determining if the call was successful. Be sure to close any PCM streams associated with the driver first.
|
|
Return list of drivers. Return a list of the available CSL back-end drivers.
|
|
Describe command line options. Outputs a usage string describing the command line options supported by csl_parse_options. Typical output is: -B, -L big/little endian -s, -u signed/unsigned samples -F float samples (32bit) -w [8|16] number of bits (width is 16 or 8) -c <n_channels> number of channels -r <rate> sampling frequency -D <level> debugging level
|
|
Dump CSL options. This function returns a debug string describing the CSL options.
|
|
Parse command line options. Parses the programs command line options and fills in a CslOptions variable.
|
|
Return error description. Return a string describing a CSL error code.
|