From d0297e5b60907b3a8011bb9c7f011bb09c68060c Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Wed, 17 Jun 2015 09:38:16 +0200 Subject: update winwave module for ausrc/auplay api --- modules/winwave/play.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/winwave/play.c') diff --git a/modules/winwave/play.c b/modules/winwave/play.c index 1ca0d44..b9129fa 100644 --- a/modules/winwave/play.c +++ b/modules/winwave/play.c @@ -16,7 +16,7 @@ struct auplay_st { - struct auplay *ap; /* inheritance */ + const struct auplay *ap; /* inheritance */ struct dspbuf bufs[WRITE_BUFFERS]; int pos; HWAVEOUT waveout; @@ -50,8 +50,6 @@ static void auplay_destructor(void *arg) } waveOutClose(st->waveout); - - mem_deref(st->ap); } @@ -194,7 +192,7 @@ static int write_stream_open(struct auplay_st *st, } -int winwave_play_alloc(struct auplay_st **stp, struct auplay *ap, +int winwave_play_alloc(struct auplay_st **stp, const struct auplay *ap, struct auplay_prm *prm, const char *device, auplay_write_h *wh, void *arg) { @@ -208,7 +206,7 @@ int winwave_play_alloc(struct auplay_st **stp, struct auplay *ap, if (!st) return ENOMEM; - st->ap = mem_ref(ap); + st->ap = ap; st->wh = wh; st->arg = arg; -- cgit v1.2.3