Issue with an audio driver
Moderator: Moderator Team
Issue with an audio driver
I am having an issue regarding an audio driver that is written in C++. The issue is that its not playing any audio (or instead plays a short static noise) in a Windows Server 2003 VM ran using VirtualBox with the type of sound card being emulated set to AC97. The debug logs are available at https://pastebin.pl/view/3015f906 and https://pastebin.pl/view/275bf652. I used WinDbg to make them. The source code can be found in the archive located at https://u.teknik.io/Rq3cw.zip and the driver (which is Windows Server 2003 compatible) can be found in the archive located at https://u.teknik.io/LSzJD.zip. The license of the source is MIT.
Re: Issue with an audio driver
Does it work in Windows in a VM or on real hardware?
You haven't said how you have tested it to ensure it does actually function to start with.
You haven't said how you have tested it to ensure it does actually function to start with.
Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.
Re: Issue with an audio driver
I tested it in a Windows Server 2003 VM and a Windows 7 VM. In a Windows Server 2003, playing audio results in a hang for a couple of minutes and then a noise is heard. In a Windows 7 VM, playing the audio test found in the Advanced tab of the Speakers Properties results in no hang but the button shows Stop until clicked (which results in a noise). Playing the lowest sample rate (Telephone Quality) results in a noise being repeated until its stopped. Here's what one developer told me after I used a driver containing debug code that he modified and gave him the output:
"Good news it can be fixed. I am sure if I'm understanding the documentation correctly.
You can allocate a block of nonpaged memory and then format this block of memory as an MDL.
This would require someone to produce or alter the code for the MAX_BDL_ENTRIES only as that seems to be where the error is.
That's something I can not do, I have never done anything with memory outside of a pointer and address referencing."
"Good news it can be fixed. I am sure if I'm understanding the documentation correctly.
You can allocate a block of nonpaged memory and then format this block of memory as an MDL.
This would require someone to produce or alter the code for the MAX_BDL_ENTRIES only as that seems to be where the error is.
That's something I can not do, I have never done anything with memory outside of a pointer and address referencing."
Re: Issue with an audio driver
I am attaching some logs that might help pinpoint the issue.
- Attachments
-
- ac97smpl_debug2_Win2K3.zip
- (2.82 KiB) Downloaded 120 times
-
- ac97smpl_debug_Win2K3.zip
- (6.04 KiB) Downloaded 110 times
Re: Issue with an audio driver
TheDeadFish was able to get it working except for some issues that he fixed (except for one that he is currently fixing). The driver is in the AC97 import PR (which is available at https://github.com/reactos/reactos/pull/3141).
Who is online
Users browsing this forum: No registered users and 4 guests