1 /** 2 * @file audiounit.h AudioUnit sound driver -- Internal interface 3 * 4 * Copyright (C) 2010 Creytiv.com 5 */ 6 7 8 AudioComponent output_comp; 9 10 11 struct audiosess; 12 struct audiosess_st; 13 14 typedef void (audiosess_int_h)(bool start, void *arg); 15 16 int audiosess_alloc(struct audiosess_st **stp, 17 audiosess_int_h *inth, void *arg); 18 void audiosess_interrupt(bool interrupted); 19 20 21 int audiounit_player_alloc(struct auplay_st **stp, const struct auplay *ap, 22 struct auplay_prm *prm, const char *device, 23 auplay_write_h *wh, void *arg); 24 int audiounit_recorder_alloc(struct ausrc_st **stp, const struct ausrc *as, 25 struct media_ctx **ctx, 26 struct ausrc_prm *prm, const char *device, 27 ausrc_read_h *rh, ausrc_error_h *errh, void *arg); 28