https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233301

--- Comment #9 from Steve Wills <swi...@freebsd.org> ---
I am experiencing this too, so I found this page and turned on the audio
debugging it mentions:

https://www.virtualbox.org/wiki/AudioDebug

and in the logs, everything seems to be working, until it shows this:

00:00:18.694520 Audio: Stream '[OSSAudio] Output' could not be created in
backend because of missing hardware / drivers

which seems to be from line 3110 of src/VBox/Devices/Audio/DrvAudio.cpp. This
is because VERR_AUDIO_STREAM_COULD_NOT_CREATE is getting returned by
ossStreamOpen in src/VBox/Devices/Audio/DrvHostOSSAudio.cpp, which sets rc =
VERR_AUDIO_STREAM_COULD_NOT_CREATE at the top. This looks like a logic error.
Setting rc = VINF_SUCCESS at the top of ossStreamOpen allows further progress.

But still there's no sound, it looks like we're hitting this assert:

    AssertMsgReturn(pCfgAcq->Backend.cfPreBuf <= pCfgAcq->Backend.cfBufferSize,
                    ("Acquired pre-buffering size must be smaller or as big as
the buffer size\n"),
                    VERR_INVALID_PARAMETER);

in src/VBox/Devices/Audio/DrvAudio.cpp. I think there's some sort of buffering
issue which I don't fully understand. If you play around with the buffer sizes
in s_OSSConf in src/VBox/Devices/Audio/DrvHostOSSAudio.cpp you can get sound,
but it's choppy and stops working, reporting lots of buffering issues and
eventually stops. And that's as far as I've gotten right now. Perhaps someone
else can pick it up and find what's going on or perhaps I'll come back to it at
another time. I'll post the patch for now.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"

Reply via email to