View | Details | Raw Unified | Return to bug 233301 | Differences between
and this patch

Collapse All | Expand All

(-)emulators/virtualbox-ose/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	virtualbox-ose
4
PORTNAME=	virtualbox-ose
5
PORTVERSION=	5.2.34
5
PORTVERSION=	5.2.34
6
PORTREVISION=	4
6
PORTREVISION=	5
7
CATEGORIES=	emulators
7
CATEGORIES=	emulators
8
MASTER_SITES=	https://download.oracle.com/virtualbox/${PORTVERSION}/
8
MASTER_SITES=	https://download.oracle.com/virtualbox/${PORTVERSION}/
9
DISTFILES=	VirtualBox-${PORTVERSION}${EXTRACT_SUFX} ${GUESTADDITIONS}
9
DISTFILES=	VirtualBox-${PORTVERSION}${EXTRACT_SUFX} ${GUESTADDITIONS}
(-)emulators/virtualbox-ose/files/patch-src-VBox-Devices-Audio-DrvHostOSSAudio.cpp (+32 lines)
Line 0 Link Here
1
--- emulators/virtualbox-ose/work/VirtualBox-5.2.34/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp.orig	2019-10-10 11:09:31.000000000 -0700
2
+++ emulators/virtualbox-ose/work/VirtualBox-5.2.34/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp	2020-07-11 17:50:06.963665000 -0700
3
@@ -248,11 +248,11 @@
4
                 break;
5
 
6
             default:
7
-                rc = VERR_AUDIO_STREAM_COULD_NOT_CREATE;
8
+                iFormat = -1;
9
                 break;
10
         }
11
 
12
-        if (RT_FAILURE(rc))
13
+        if (RT_UNLIKELY(iFormat == -1))
14
             break;
15
 
16
         if (ioctl(hFile, SNDCTL_DSP_SAMPLESIZE, &iFormat))
17
@@ -660,6 +660,7 @@
18
 
19
                 pCfgAcq->Backend.cfPeriod     = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, ossAcq.cbFragmentSize);
20
                 pCfgAcq->Backend.cfBufferSize = pCfgAcq->Backend.cfPeriod * 2; /* Use "double buffering". */
21
+                pCfgAcq->Backend.cfPreBuf     = pCfgAcq->Backend.cfBufferSize;
22
                 /** @todo Pre-buffering required? */
23
             }
24
         }
25
@@ -778,6 +779,7 @@
26
 #endif
27
             pCfgAcq->Backend.cfPeriod     = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, obtStream.cbFragmentSize);
28
             pCfgAcq->Backend.cfBufferSize = pCfgAcq->Backend.cfPeriod * 2; /* Use "double buffering" */
29
+            pCfgAcq->Backend.cfPreBuf     = pCfgAcq->Backend.cfBufferSize;
30
         }
31
 
32
     } while (0);

Return to bug 233301