From 96ad83476a7226bdc92f8ebfca3030d49e5123a1 Mon Sep 17 00:00:00 2001 From: tobigun Date: Sun, 25 Apr 2010 19:58:34 +0000 Subject: a value of 0 for suggestedLatency is invalid git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2310 b956fd51-792f-4845-bead-9b4dfca2ff2c --- test/TestPortAudioDevice.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/TestPortAudioDevice.pas b/test/TestPortAudioDevice.pas index 1308858f..1b3c9e7e 100644 --- a/test/TestPortAudioDevice.pas +++ b/test/TestPortAudioDevice.pas @@ -413,7 +413,7 @@ begin inputParameters^.device := deviceIndex; inputParameters^.channelCount := deviceInfo^.maxInputChannels; inputParameters^.sampleFormat := paInt16; - inputParameters^.suggestedLatency := 0; + inputParameters^.suggestedLatency := deviceInfo.defaultLowInputLatency; inputParameters^.hostApiSpecificStreamInfo := nil; outputParameters := nil; end @@ -423,7 +423,7 @@ begin outputParameters^.device := deviceIndex; outputParameters^.channelCount := deviceInfo^.maxOutputChannels; outputParameters^.sampleFormat := paInt16; - outputParameters^.suggestedLatency := 0; + outputParameters^.suggestedLatency := deviceInfo.defaultLowOutputLatency; outputParameters^.hostApiSpecificStreamInfo := nil; end; -- cgit v1.2.3