QAudioInput verzögert

Alles rund um die Programmierung mit Qt
Antworten
bbt
Beiträge: 29
Registriert: 2. Februar 2010 19:21

QAudioInput verzögert

Beitrag von bbt »

Hi Leuete,

Ich hab ein großes Problem und zwar wollte ich Die Daten vom QAudioInput direkt wieder ausgeben.

Naja umd die Verzögerung zwischen Eingabe uns Ausgabe ist viel zu groß. Ich brauch eine Verzögerung die man NICHT merkt.

Das geht doch bestimmt oder?

Der Source Code den ich bis jetzt hab:

Code: Alles auswählen

format = new QAudioFormat();
    format->setFrequency(8000);
    format->setChannels(1);
    format->setSampleSize(8);
    format->setCodec("audio/pcm");
    format->setByteOrder(QAudioFormat::LittleEndian);
    format->setSampleType(QAudioFormat::UnSignedInt);

    input = new QAudioInput(*format, this);
    output = new QAudioOutput(*format, this);


    deviceInfo = new QAudioDeviceInfo(QAudioDeviceInfo::defaultInputDevice());

    if (!deviceInfo->isFormatSupported(*format)) {
        qWarning()<<"default format not supported try to use nearest";
        *format = deviceInfo->nearestFormat(*format);
    }



    ioDevice = input->start();
    output->start(ioDevice);
Antworten