1 /** 2 * @file alsa.h ALSA sound driver -- internal interface 3 * 4 * Copyright (C) 2010 Creytiv.com 5 */ 6 7 8 extern char alsa_dev[64]; 9 10 11 int alsa_reset(snd_pcm_t *pcm, uint32_t srate, uint32_t ch, 12 uint32_t num_frames, snd_pcm_format_t pcmfmt); 13 snd_pcm_format_t aufmt_to_alsaformat(enum aufmt fmt); 14 int alsa_src_alloc(struct ausrc_st **stp, const struct ausrc *as, 15 struct media_ctx **ctx, 16 struct ausrc_prm *prm, const char *device, 17 ausrc_read_h *rh, ausrc_error_h *errh, void *arg); 18 int alsa_play_alloc(struct auplay_st **stp, const struct auplay *ap, 19 struct auplay_prm *prm, const char *device, 20 auplay_write_h *wh, void *arg); 21