mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 08:29:36 +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:
parent
5a69fab2f0
commit
a7a3cb61d7
@ -46,6 +46,7 @@ int ai_oss_set_channels(audio_in_t *ai)
|
|||||||
ai->req_channels);
|
ai->req_channels);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
ai->channels = ioctl_param;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -58,8 +59,8 @@ int ai_oss_set_channels(audio_in_t *ai)
|
|||||||
ai->req_channels == 2);
|
ai->req_channels == 2);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
ai->channels = ioctl_param ? 2 : 1;
|
||||||
}
|
}
|
||||||
ai->channels = ai->req_channels;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +103,7 @@ int ai_oss_init(audio_in_t *ai)
|
|||||||
ai->req_samplerate);
|
ai->req_samplerate);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
ai->samplerate = ai->req_samplerate;
|
ai->samplerate = ioctl_param;
|
||||||
|
|
||||||
mp_msg(MSGT_TV, MSGL_V, "ioctl dsp trigger: %d\n",
|
mp_msg(MSGT_TV, MSGL_V, "ioctl dsp trigger: %d\n",
|
||||||
ioctl(ai->oss.audio_fd, SNDCTL_DSP_GETTRIGGER, &ioctl_param));
|
ioctl(ai->oss.audio_fd, SNDCTL_DSP_GETTRIGGER, &ioctl_param));
|
||||||
|
Loading…
Reference in New Issue
Block a user