libwebsockets
Lightweight C library for HTML5 websockets
Loading...
Searching...
No Matches
lws-alsa.h File Reference

Go to the source code of this file.

Data Structures

struct  lws_alsa_info
 
struct  lws_alsa_control
 

Typedefs

typedef int(* lws_alsa_control_cb) (void *user, const struct lws_alsa_control *c)
 

Functions

LWS_VISIBLE LWS_EXTERN struct lws_alsa_ctx * lws_alsa_create_capture (const struct lws_alsa_info *info)
 
LWS_VISIBLE LWS_EXTERN void lws_alsa_destroy (struct lws_alsa_ctx **ctx)
 
LWS_VISIBLE LWS_EXTERN int lws_alsa_get_fd (struct lws_alsa_ctx *ctx)
 
LWS_VISIBLE LWS_EXTERN int lws_alsa_read (struct lws_alsa_ctx *ctx, void *buf, size_t samples)
 
LWS_VISIBLE LWS_EXTERN int lws_alsa_enum_controls (struct lws_alsa_ctx *ctx, lws_alsa_control_cb cb, void *user)
 
LWS_VISIBLE LWS_EXTERN int lws_alsa_set_control (struct lws_alsa_ctx *ctx, uint32_t id, long val)
 

Data Structure Documentation

◆ lws_alsa_info

struct lws_alsa_info

Definition at line 30 of file lws-alsa.h.

+ Collaboration diagram for lws_alsa_info:
Data Fields
const char * device_name
uint32_t rate
uint32_t channels
uint32_t samples_per_frame

◆ lws_alsa_control

struct lws_alsa_control

Definition at line 37 of file lws-alsa.h.

+ Collaboration diagram for lws_alsa_control:
Data Fields
uint32_t id
char name[64]
long min
long max
long step
long val

Typedef Documentation

◆ lws_alsa_control_cb

typedef int(* lws_alsa_control_cb) (void *user, const struct lws_alsa_control *c)

Definition at line 46 of file lws-alsa.h.

Function Documentation

◆ lws_alsa_create_capture()

LWS_VISIBLE LWS_EXTERN struct lws_alsa_ctx * lws_alsa_create_capture ( const struct lws_alsa_info * info)

References LWS_EXTERN, and LWS_VISIBLE.

◆ lws_alsa_destroy()

LWS_VISIBLE LWS_EXTERN void lws_alsa_destroy ( struct lws_alsa_ctx ** ctx)

References LWS_EXTERN, and LWS_VISIBLE.

◆ lws_alsa_get_fd()

LWS_VISIBLE LWS_EXTERN int lws_alsa_get_fd ( struct lws_alsa_ctx * ctx)

References LWS_EXTERN, and LWS_VISIBLE.

◆ lws_alsa_read()

LWS_VISIBLE LWS_EXTERN int lws_alsa_read ( struct lws_alsa_ctx * ctx,
void * buf,
size_t samples )

References LWS_EXTERN, and LWS_VISIBLE.

◆ lws_alsa_enum_controls()

LWS_VISIBLE LWS_EXTERN int lws_alsa_enum_controls ( struct lws_alsa_ctx * ctx,
lws_alsa_control_cb cb,
void * user )

References LWS_EXTERN, and LWS_VISIBLE.

◆ lws_alsa_set_control()

LWS_VISIBLE LWS_EXTERN int lws_alsa_set_control ( struct lws_alsa_ctx * ctx,
uint32_t id,
long val )