Mercurial > audlegacy
changeset 543:4eb4a52f440e trunk
[svn] add disk_getvol and disk_setvol
author | nenolod |
---|---|
date | Sat, 28 Jan 2006 11:49:45 -0800 |
parents | 3312c831db3e |
children | 3f45ec88fcd3 |
files | Plugins/Output/disk_writer/disk_writer.c |
diffstat | 1 files changed, 18 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Output/disk_writer/disk_writer.c Sat Jan 28 11:13:12 2006 -0800 +++ b/Plugins/Output/disk_writer/disk_writer.c Sat Jan 28 11:49:45 2006 -0800 @@ -77,6 +77,10 @@ static gint disk_get_written_time(void); static gint disk_get_output_time(void); static void disk_configure(void); +static void disk_getvol(gint *, gint *); +static void disk_setvol(gint, gint); + +static int lvol = 0, rvol = 0; OutputPlugin disk_op = { @@ -87,8 +91,8 @@ NULL, NULL, /* about */ disk_configure, /* configure */ - NULL, /* get_volume */ - NULL, /* set_volume */ + disk_getvol, /* get_volume */ + disk_setvol, /* set_volume */ disk_open, disk_write, disk_close, @@ -415,3 +419,15 @@ gtk_widget_show(configure_win); } } + +static void disk_getvol(gint *l, gint *r) +{ + (*l) = lvol; + (*r) = rvol; +} + +static void disk_setvol(gint l, gint r) +{ + lvol = l; + rvol = r; +}