diff options
author | Alfred E. Heggestad <aeh@db.org> | 2015-06-17 09:38:16 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2015-06-17 09:38:16 +0200 |
commit | d0297e5b60907b3a8011bb9c7f011bb09c68060c (patch) | |
tree | 45c7349221cb5d0164db091a5d20106df41a72b5 /modules/winwave/play.c | |
parent | 7a3f16da1c3847f068b873c1ad8c0bee3c9ac3aa (diff) |
update winwave module for ausrc/auplay api
Diffstat (limited to 'modules/winwave/play.c')
-rw-r--r-- | modules/winwave/play.c | 8 |
1 files changed, 3 insertions, 5 deletions
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; |