Mercurial > hg > svapp
comparison audioio/AudioPortAudioTarget.cpp @ 245:a9f1850b873d
Reduce PortAudio suggested latency. No idea whether this will really help
anything, but it probably won't hurt
author | Chris Cannam |
---|---|
date | Wed, 28 Sep 2011 13:28:54 +0100 |
parents | 8aace2d9f1c2 |
children | 0136555495ae 068235cf5bf7 |
comparison
equal
deleted
inserted
replaced
238:5e1711be654d | 245:a9f1850b873d |
---|---|
57 | 57 |
58 PaStreamParameters op; | 58 PaStreamParameters op; |
59 op.device = Pa_GetDefaultOutputDevice(); | 59 op.device = Pa_GetDefaultOutputDevice(); |
60 op.channelCount = 2; | 60 op.channelCount = 2; |
61 op.sampleFormat = paFloat32; | 61 op.sampleFormat = paFloat32; |
62 op.suggestedLatency = 1.0; | 62 op.suggestedLatency = 0.2; |
63 op.hostApiSpecificStreamInfo = 0; | 63 op.hostApiSpecificStreamInfo = 0; |
64 err = Pa_OpenStream(&m_stream, 0, &op, m_sampleRate, | 64 err = Pa_OpenStream(&m_stream, 0, &op, m_sampleRate, |
65 paFramesPerBufferUnspecified, | 65 paFramesPerBufferUnspecified, |
66 paNoFlag, processStatic, this); | 66 paNoFlag, processStatic, this); |
67 | 67 |