【问题标题】:pa_simple_new() failed: Connection refusedpa_simple_new() 失败:连接被拒绝
【发布时间】:2014-01-07 01:48:30
【问题描述】:

我遇到错误

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;
}

【问题讨论】:

    标签: c pulseaudio


    【解决方案1】:

    重新安装 PulseAudio 解决问题

    【讨论】:

      猜你喜欢
      • 2019-08-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-22
      • 2014-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多