|
@@ -110,28 +110,28 @@ static void oss_anal_close (int *fdp)
|
|
|
|
|
|
static void oss_helper_poll_out (void *opaque)
|
|
|
{
|
|
|
- (void) opaque;
|
|
|
- audio_run ("oss_poll_out");
|
|
|
+ AudioState *s = opaque;
|
|
|
+ audio_run(s, "oss_poll_out");
|
|
|
}
|
|
|
|
|
|
static void oss_helper_poll_in (void *opaque)
|
|
|
{
|
|
|
- (void) opaque;
|
|
|
- audio_run ("oss_poll_in");
|
|
|
+ AudioState *s = opaque;
|
|
|
+ audio_run(s, "oss_poll_in");
|
|
|
}
|
|
|
|
|
|
static void oss_poll_out (HWVoiceOut *hw)
|
|
|
{
|
|
|
OSSVoiceOut *oss = (OSSVoiceOut *) hw;
|
|
|
|
|
|
- qemu_set_fd_handler (oss->fd, NULL, oss_helper_poll_out, NULL);
|
|
|
+ qemu_set_fd_handler(oss->fd, NULL, oss_helper_poll_out, hw->s);
|
|
|
}
|
|
|
|
|
|
static void oss_poll_in (HWVoiceIn *hw)
|
|
|
{
|
|
|
OSSVoiceIn *oss = (OSSVoiceIn *) hw;
|
|
|
|
|
|
- qemu_set_fd_handler (oss->fd, oss_helper_poll_in, NULL, NULL);
|
|
|
+ qemu_set_fd_handler(oss->fd, oss_helper_poll_in, NULL, hw->s);
|
|
|
}
|
|
|
|
|
|
static int oss_write (SWVoiceOut *sw, void *buf, int len)
|