desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #107877
[Bug 1433563] Re: QAudioRecorder recording hangs
it look like qaudiorecorder bug
in qaudioinput_alsa_p.cpp
buffer_time = 100000;
period_time = 20000;
but chunks = 8
if ( !fatal ) {
err = snd_pcm_hw_params_set_buffer_time_near(handle, hwparams,
&buffer_time, &dir);
if ( err < 0 ) {
fatal = true;
errMessage = QString::fromLatin1("QAudioInput:
snd_pcm_hw_params_set_buffer_time_near: err = %1").arg(err);
}
}
if ( !fatal ) {
err = snd_pcm_hw_params_set_period_time_near(handle, hwparams,
&period_time, &dir);
if ( err < 0 ) {
fatal = true;
errMessage = QString::fromLatin1("QAudioInput:
snd_pcm_hw_params_set_period_time_near: err = %1").arg(err);
}
}
if ( !fatal ) {
err = snd_pcm_hw_params_set_periods_near(handle, hwparams,
&chunks, &dir);
if ( err < 0 ) {
fatal = true;
errMessage = QString::fromLatin1("QAudioInput:
snd_pcm_hw_params_set_periods_near: err = %1").arg(err);
}
}
if ( !fatal ) {
err = snd_pcm_hw_params(handle, hwparams);
if ( err < 0 ) {
fatal = true;
errMessage = QString::fromLatin1("QAudioInput:
snd_pcm_hw_params: err = %1").arg(err);
}
}
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/1433563
Title:
QAudioRecorder recording hangs
Status in pulseaudio package in Ubuntu:
New
Bug description:
Recording audio with QAudioRecorder intermittently fails for me.
Another user even reported that it only works 1 out of 5-10 times.
QAudioRecorder seems to hang on requesting the audio to be recorded
(status QMediaRecortder::StartingStatus). When it actually works, it
properly goes from starting to recording and then it's possible to
record audio and playback.
QAudioRecorder has an error() method, but it returns
QMediaRecorder::NoError
Since it was confirmed by two people (victorp, karni) we suspect it's
a bug in the middleware rather than the apps.
A test click has been sent to Ricardo's e-mail by Victor.
phablet@ubuntu-phablet:~$ system-image-cli -i
current build number: 20
device name: krillin
channel: (the BQ channel)
last update: 2015-02-26 17:06:15
version version: 20
version ubuntu: 20150219
version device: 20150225-b67e0b6
version custom: 20150216-561-29-186
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1433563/+subscriptions
References