Skip to content

Commit ced3cec

Browse files
committed
Fixing compilation broken on Windows:
- removing the "trivet" code after the ";" of the sample format of outputStreamParams that does not suppose to be here on line 101. - adding the ";" in LoopbackStream::stop() member function of the line 273. - Adjusting the suggestedLatency of input and output stream params to 0.02 on Windows (PortAudio).
1 parent 6d9a460 commit ced3cec

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/LoopbackStream.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,14 @@ bool LoopbackStream::init()
9292
inputStreamParams.device = Pa_GetDefaultInputDevice();
9393
inputStreamParams.channelCount = m_channelsCount;
9494
inputStreamParams.sampleFormat = paInt16;
95-
inputStreamParams.suggestedLatency = 0.2;
95+
inputStreamParams.suggestedLatency = 0.02;
9696
inputStreamParams.hostApiSpecificStreamInfo = nullptr;
9797

9898
PaStreamParameters outputStreamParams = {};
9999
outputStreamParams.device = Pa_GetDefaultOutputDevice();
100100
outputStreamParams.channelCount = m_channelsCount;
101-
outputStreamParams.sampleFormat = paInt16;trivet
101+
outputStreamParams.sampleFormat = paInt16;
102+
outputStreamParams.suggestedLatency = 0.02;
102103
outputStreamParams.hostApiSpecificStreamInfo = nullptr;
103104

104105
err = Pa_OpenStream(
@@ -270,7 +271,7 @@ void LoopbackStream::stop()
270271
if (m_stream)
271272
{
272273
Pa_StopStream(m_stream);
273-
m_isPlayingContinue = false
274+
m_isPlayingContinue = false;
274275
}
275276
#elif __linux
276277
m_isPlayingContinue = false;

0 commit comments

Comments
 (0)