X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D0F03857838 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1696540921; bh=wPsSxEbpwOACXyon7dgcJdeoT6owIiAYj2qcD1sf4k4=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=beDItLZIMGQHe+8ixsTd2v6+zLIiSIciDljNyQFDniOq2FhlsQ6TZfVF9XJdR2RNZ BOS9SCVLjIJkyHsjtxaFM2fDbXCzxi651fd+TLobCnUlP6v5Z1cBz2PUIZsoJVuYqd IYunFDX+Ni4WKOXjOwYEiFnoZ7YcFeclOwmBY8qc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 746373858CDA X-Virus-Scanned: amavisd-new at boeck5.rrze.uni-erlangen.de (RRZE) X-RRZE-Flag: Not-Spam X-RRZE-Submit-IP: 2a02:810d:b640:863:9d3a:459:ddd2:5c0a Message-ID: <61d4c2ce-ec32-4c59-a178-5f2f4d27265e@fau.de> Date: Thu, 5 Oct 2023 23:21:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: portaudio: only OSS host API available since version 19.20210406-2 To: Takashi Yano , cygwin AT cygwin DOT com References: <067beee9-8d53-beec-1b7a-1b0a238cefdc AT fau DOT de> <20230929190454 DOT 99185f44d8396ef326030ecf AT nifty DOT ne DOT jp> <20231005195758 DOT 053ee2f4405dcb3c956fc7fa AT nifty DOT ne DOT jp> In-Reply-To: <20231005195758.053ee2f4405dcb3c956fc7fa@nifty.ne.jp> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Michael Panzlaff via Cygwin Reply-To: Michael Panzlaff Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" Hi, > In my environment, portaudio with MME support generates choppy sound > for the suggestedOutputLatency of less that 60 ms. 70 ms seems to > work. In this case, hostBufferCount=8 and hostBufferSizeFrams=480 > if the sample rate is 48 kHz. So, total buffer length is 3840 samples. > Therefore, the resulted latency is 80 ms. interesting. I've now did some experiments with a self compiled portaudio with MME and WASAPI and both worked flawless on my machine with a suggestedLatency of 10ms. Perhaps this is dependend on the sound card used in the computer. The callbacks are called with framesPerBuffer of 480. > OSS implementation in cygwin 3.4.9 always uses the buffer size of > 125 ms. So, even if hostBufferCount=2 (current value of portaidio > with OSS support), the latency is 250 ms. This might not be acceptable > for some applications. I wouldn't mind using OSS if it supports lower hostBufferSizes so that I don't get callbacks with a buffer size of 6000. Apparently suggestedLatency has no influence on that. > Unfortunately, OSS and MME/DSound/WASAPI can be exclusively enabled. > I am currently considering whether to rollback portaudio to MME/ > DSound/WASAPI until cygwin 3.5.0 is released. I guess it would be possible but would probably require a patched configure script. Either way if you change it away from OSS or now, I hope I could provide some useful feedback. Best regards, Michael -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple