-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get audio output except for a simple beep #616
Comments
Does it work in qemu (with |
I'm not 100% sure how to run this in qemu as it's just a chroot built by Debootstrap for the most part. If I chroot into the build_root, aplay is able to see sound devices just fine:
Build script: https://git.sr.ht/~hamner/copyleftmage.school/tree/master/item/build_image.sh |
@ruapotato That's a nice way to create v86 images. Could you try getting audio to work in qemu with one of the live images? Most likely it will be the same steps as in v86 (and if not, I can work out the difference). |
What command do you use to stat qemu. I can't get my image to boot fully with |
Testing |
Sound Blaster 16 works. Unfortunately, it is not detected automatically by PnP. There are messages related to this in the linux kernel log under debian.
Solution. Initialize sb16 to run - manually. |
@grapeli Thank you for the feedback! I was able to get it to make some kind of sound, but I still get an error running: odd_sound.mp4 |
I don't see any error here. |
@grapeli Excellent, thanks for your help. Will update the online Arch Linux image soon. @ruapotato The following works for me:
|
@copy copy.sh.sb16.linux.mp4 |
This seems like it might need it's own topic as it's at least making sound now. Any idea why I'm getting this strange clicking sound? Still_odd_sounds.mp4 |
I checked under Debian live-11.2.0-i386. In fact, at the exit of the sound card sb16 we will only hear an unpleasant squeak. This debian uses kernel 5.10.x. I checked on a vanilla kernel from this series and it's identical. Everything is fine under qemu with In general, it looks like this (vanilla kernel). |
@ruapotato To get satisfactory results with copy.sh you have to adjust the linux system very well. Starting with a good kernel configuration to proper optimization of the entire userland. In order not to be groundless, make a very simple benchamrk. |
I added audio to the Arch Linux profile using the commands mentioned in #616 (comment). @ruapotato Could you try and see if the sound works for you? (the issue could be specific to certain browsers, or guests, or both). @grapeli Interesting performance issue. There's likely some instruction that v86 doesn't optimise, or some tricky control flow. Unfortunately many profiler are broken in the presence of wasm modules (e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=1754258), so it's tricky to analyse. I'll have a look at a later point. |
Sorry to post in this closed issue but I'm having the same problems as @ruapotato (sound glitches) when running Linux on latest v86. I'm trying to use the sb16 driver with an old version of Android-x86 (ICS). I have just discovered something: the sound works much better at https://copy.sh/v86/debug.html and doing another Edit: It does seem to depend on luck. On some cold boots the audio is corrupt, on most it works... |
I can't figure out how to play audio from within a Linux env. I have testing building a Debian install with sox installed (Build scripts:https://git.sr.ht/~hamner/copyleftmage.school)
Running example: http://copyleftmage.school/v86/live/shell_full_boot.html
Relevant setup data:
Running
arecord -l
shows no sounds cards found.Running
beep
plays a beep sound but also outputs no devices found. Options to change to tone don't work.My goal is the build this site out to be a teaching tool, and audio would be a big help.
The text was updated successfully, but these errors were encountered: