int32_t val;
GUSState *s = opaque;
- val = s->freq; qemu_put_be32s (f, &val);
val = s->pos; qemu_put_be32s (f, &val);
val = s->left; qemu_put_be32s (f, &val);
val = s->shift; qemu_put_be32s (f, &val);
int32_t val;
GUSState *s = opaque;
- if (version_id != 1)
+ if (version_id != 2)
return -EINVAL;
- qemu_get_be32s (f, &val); s->freq = val;
qemu_get_be32s (f, &val); s->pos = val;
qemu_get_be32s (f, &val); s->left = val;
qemu_get_be32s (f, &val); s->shift = val;
AUD_set_active_out (s->voice, 1);
- register_savevm ("gus", 0, 1, GUS_save, GUS_load, s);
+ register_savevm ("gus", 0, 2, GUS_save, GUS_load, s);
return 0;
}