pa_simple_new() не удалось: соединение отклонено

я получаю сообщение об ошибке

pa_simple_new() failed: Connection refused

при попытке вызвать функцию pa_simple_new. Вот код.

int error;
static const pa_sample_spec ss = {
    .format = PA_SAMPLE_S16LE,
    .rate = 44100,
    .channels = 2
};

/* Create the recording stream */
if (!(m_pAudioIn = pa_simple_new(NULL, "APPNAME", PA_STREAM_RECORD, NULL, "record", &ss, NULL, NULL, &error)))
{
    fprintf(stderr, "pa_simple_new() failed: %s\n", pa_strerror(error));
    return -1;
}

person Ibrar Ahmed    schedule 18.12.2013    source источник


Ответы (1)


Переустановка PulseAudio решает проблему

person Ibrar Ahmed    schedule 18.12.2013