1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +00:00

fix some 10ls in sample rate handlin

patch by Josef Zlomek <josef.zlomek@email.cz>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11879 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
attila 2004-01-29 12:43:54 +00:00
parent 5a69fab2f0
commit a7a3cb61d7

View File

@ -46,6 +46,7 @@ int ai_oss_set_channels(audio_in_t *ai)
ai->req_channels);
return -1;
}
ai->channels = ioctl_param;
}
else
{
@ -58,8 +59,8 @@ int ai_oss_set_channels(audio_in_t *ai)
ai->req_channels == 2);
return -1;
}
ai->channels = ioctl_param ? 2 : 1;
}
ai->channels = ai->req_channels;
return 0;
}
@ -102,7 +103,7 @@ int ai_oss_init(audio_in_t *ai)
ai->req_samplerate);
return -1;
}
ai->samplerate = ai->req_samplerate;
ai->samplerate = ioctl_param;
mp_msg(MSGT_TV, MSGL_V, "ioctl dsp trigger: %d\n",
ioctl(ai->oss.audio_fd, SNDCTL_DSP_GETTRIGGER, &ioctl_param));