FreeBSD Bugzilla – Attachment 214798 Details for
Bug 233301
emulators/virtualbox-ose - multimedia issues on 13-current
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for testing audio in guest OS
virtualbox-ose-5.2.34.patch (text/plain), 1.26 KB, created by
Andrey Russev
on 2020-05-23 23:32:56 UTC
(
hide
)
Description:
Patch for testing audio in guest OS
Filename:
MIME Type:
Creator:
Andrey Russev
Created:
2020-05-23 23:32:56 UTC
Size:
1.26 KB
patch
obsolete
>--- VirtualBox-5.2.34/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp.orig 2019-10-10 21:09:31.000000000 +0300 >+++ VirtualBox-5.2.34/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp 2020-05-24 01:15:17.346032000 +0300 >@@ -248,11 +248,11 @@ > break; > > default: >- rc = VERR_AUDIO_STREAM_COULD_NOT_CREATE; >+ iFormat = -1; > break; > } > >- if (RT_FAILURE(rc)) >+ if (RT_UNLIKELY(iFormat == -1)) > break; > > if (ioctl(hFile, SNDCTL_DSP_SAMPLESIZE, &iFormat)) >@@ -660,6 +660,7 @@ > > pCfgAcq->Backend.cfPeriod = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, ossAcq.cbFragmentSize); > pCfgAcq->Backend.cfBufferSize = pCfgAcq->Backend.cfPeriod * 2; /* Use "double buffering". */ >+ pCfgAcq->Backend.cfPreBuf = pCfgAcq->Backend.cfBufferSize; > /** @todo Pre-buffering required? */ > } > } >@@ -778,6 +779,7 @@ > #endif > pCfgAcq->Backend.cfPeriod = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, obtStream.cbFragmentSize); > pCfgAcq->Backend.cfBufferSize = pCfgAcq->Backend.cfPeriod * 2; /* Use "double buffering" */ >+ pCfgAcq->Backend.cfPreBuf = pCfgAcq->Backend.cfBufferSize; > } > > } while (0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233301
:
203632
|
203633
|
205654
|
205683
|
205706
| 214798 |
216400