Which prefs-file? I used the installer... I can see that there is a USB option for audio in Sound preferences. I select any of the modes and try to play a test-sound... something happens in the UI indicating that it is doing that, but I hear no sound.
EDIT: And I do not know how to do a serial output. :)
first of all copy manually from the new installer 2.2 libusb-1.library into LIBS: because the current installer doesn't overwrite it. In the installer there is a README how to create the audio card if it is not listed in card list. But you need to know VID and PID of the audio card. And to read serial output in a console execute DumpDebugBuffer
Gave it a try with my Zoom Q2 camera in USB microphone mode.
This offers three endpoints one Class1 and 2 Class 2 . The Class 1 shows as picked by the usbaudio.fdclass in USBInspector.
In AHI prefs however it doesn't seem to work.
Occasionally it offers a device with the wrong vendor ID though I cant read all of it it start with 04 whereas the actual id is 1686, occasionally just "Front" any attempt to play the test sound with whichever output eventually locks up the SAM.
Uhm.. i didn't try any camera/wireless adapters. Just sound cards. I'll try to find something to test. BTW. You should have a serial log. Can you send it to me?
The ZoomQ2 can switch mode on startup. It either a webcam or a USB mic or SDCard reader when plugged in. I switched it to USB mic then rebooted. As long as the board SAM power is up it stays in the selected mode.
I will see if I can get serial logs later.
I'm probably trying fairly unconventional devices, but my only "plain" USB device is broken and doesn#t even power up.
I was able to play test beep with v2.2.. Great progress.
On Sam460.. I tried running Settlers2 game
U-Green USB2.0 Sound Card - sound crackles a bit, occasional delays in playback Cheap USB 8.1 Sound Card - sound crackles a bit, occasional delays in playback Cheap USB 7.1 Sound Card - sound crackles a bit, occasional delays in playback Behringer U-Phobia UM-2.. Locks up Sound Prefs and system. No sound.
Same as SinanSam460, sound crackles a bit, occasional delays in playback.
Sam460, SABRENT USB to AUX Adapter, External USB Sound Card with 3.5mm Jack for Headphones & Mic, Plug & Play Stereo Converter for PC, Mac, PS5, Steam Deck, Laptop (AU-MMSA)
A new driver is available (version 2.3). You should be able to play correctly now on almost all platforms. Changelog:
BOOT SAFETY ------------
The driver is safe to have installed with a USB audio device permanently connected. All USB access is deferred until the first actual playback request (AHIsub_AllocAudio). Before scanning, the driver waits for the Sirion USB stack to signal USBNM_TYPE_STACKFULLBOOTED, ensuring the stack has fully initialised and all USB function drivers have completed their setup. A 5-second timeout prevents indefinite hangs if the stack was already booted before the notification subscription.
CONCURRENT ACCESS -----------------
USB audio is exclusive: only one playback stream can use the isochronous endpoint at a time. If another application (e.g. a music player) is already playing through the USB audio device, a new AHI session (e.g. AHI Prefs test tone) will be refused gracefully — the running playback is never interrupted.
DEVICE HOT-REMOVAL ------------------
If the USB audio device is physically unplugged during playback or recording, the driver detects the loss (consecutive fatal USB errors) and stops the playback/recording process cleanly. No system hang or crash will occur.
There are some problems on Input and Output but I think this is because the USBAUDIO audio mode that should be generated at runtime. I will check this. Enjoy
I have tested new 2.3 version with Topping D10 DAC, now In Sound Prefs test audio sound don't freeze prefs but sound is crackled. So partially better. Here are the logs from usb and dump:
@afxgroup I've been testing your driver on QEMU (PEG2/A1) for several versions now. I tested the “-device usb-audio” option for QEMU, and in a second test, I passed the hardware through “qemu usb passthrough”. Bus 001 Device 007: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
I replaced the libraries as you suggested. For “-device usb-audio,” I added an entry in USBAudio.prefs In the logs, everything looks like it’s initializing correctly. There’s a noticeable slowdown in the system/programs, and there’s no sound. I’m waiting for someone with a PEG2/A1 to let me know if the driver works on that hardware. If it works for them, I’ll let you know (send a log) if you’re interested in the issue for QEMU. The -device usb-audio driver is used for MacOS (PPC) emulation, and as far as I know, it works well there.
@smarkusg QEMU -device usb-audio works for MacOS 9 now after fixing an issue with OHCI emulation but it seems Mac OS X needs another fix which wasn't submitted to QEMU. Pegasos has EHCI so it does not affect that but I'm not sure usb-audio emulation is complete enough for everything. It does not seem to work with MorphOS either. Have you tested that the same work with Linux guest before trying to debug the AmigaOS driver? Testing with a passed through device might be better. Does it work with passing through real USB audio device?