English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 27 June 2009, 18:49   #1
Gaula92
Registered User
 
Gaula92's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 527
winuae 1.6.1 in Windows 7 and WASAPI audio

Hello there, Toni

I've installed Windows 7 as you recommended me, and I'm triying to make WASAPI sound work. It's listed on my config menu, but whenever I start a config with WASAPI sound, the emulator hangs without further warning.

My card is a Realtek integrated chip, worked fine with portaudio ASIO on XP except for a minor dropout, so I installed 7 just to try WASAPI.

I'm including log and dump file, too:
Attached Files
File Type: txt winuaebootlog.txt (10.5 KB, 198 views)
File Type: dmp winuae_161_20090627_184357.dmp (61.5 KB, 210 views)
Gaula92 is offline  
Old 28 June 2009, 12:16   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
Possible WDM-KS crash (yes, it can cause crashes during device enumeration)
I'll compile portaudio.dll without WDM-KS later today for testing.
Toni Wilen is offline  
Old 29 June 2009, 11:00   #3
Gaula92
Registered User
 
Gaula92's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 527
ok, thanks Toni. I'm looking forward for that new portaudio version!
Gaula92 is offline  
Old 29 June 2009, 15:55   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
WASAPI-only portaudio library attached (note that I was lazy and only disabled other modes, library isn't smaller because code is still there..)

Last edited by Toni Wilen; 09 August 2009 at 15:35.
Toni Wilen is offline  
Old 30 June 2009, 09:28   #5
Gaula92
Registered User
 
Gaula92's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 527
It worked, yes.
I've tried WASAPI sound, but sadly it has the same problem as ASIO:
-it pauses/stalls for a moment ever 5-10 minutes, with sound repeating. That's with 48Khz sound.
-at 22050Hz sound is unsupported. With ASIO it was supported, but caused a sound droput every 5-10 minutes.

It only happens with VSYNC on. So it's definitely VSYNC.
Thanks, Toni
Gaula92 is offline  
Old 30 June 2009, 11:13   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
WASAPI (and WDM-KS) is "real" Direct Sound (DirectX's DirectSound is more like InDirectSound) and they only support sound card's "native" sample rate for best possible performance (no mixing required).

Vsync: Does both WASAPI and DirectSound have identical problem?
Toni Wilen is offline  
Old 30 June 2009, 12:19   #7
Mad-Matt
Longplayer
 
Mad-Matt's Avatar
 
Join Date: Jan 2005
Location: Lincoln / UK
Age: 45
Posts: 1,853
Send a message via ICQ to Mad-Matt Send a message via MSN to Mad-Matt
Something has changed regarding vsync between 161b1 and 161b4 (only two exes i have to test).

161b1 works fine, but 161b4 has old issue where sound doesnt play at correct speed when using amiga audio at above 28000 (using delitracker 14bit player in this case). issue is in all pc sound modes (dx/al/portaudio)

There is some news on some sites that the audio layer of windows is being rewritten for windows7 since MS acknowledge they did a crap job in vista with high latency audio causing click/pops/stutters ect.
Mad-Matt is online now  
Old 30 June 2009, 12:36   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
Quote:
Originally Posted by Mad-Matt View Post
Something has changed regarding vsync between 161b1 and 161b4 (only two exes i have to test).

161b1 works fine, but 161b4 has old issue where sound doesnt play at correct speed when using amiga audio at above 28000 (using delitracker 14bit player in this case). issue is in all pc sound modes (dx/al/portaudio)
Known problem but we are not talking about programmed modes here

Quote:
There is some news on some sites that the audio layer of windows is being rewritten for windows7 since MS acknowledge they did a crap job in vista with high latency audio causing click/pops/stutters ect.
Yeah, there is post in MS's official Windows 7 blog too.
Toni Wilen is offline  
Old 30 June 2009, 13:16   #9
Gaula92
Registered User
 
Gaula92's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 527
@Toni: NO, and this is VERY important IMHO: DirectSound DOES NOT have that problem.
ASIO and WASAPI have the EXACT SAME PROBLEM.

What could it be?? It's driving me insane: I've tried to isolate the cause for months now
Gaula92 is offline  
Old 30 June 2009, 13:24   #10
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
Quote:
Originally Posted by gaula88@hotmail View Post
@Toni: NO, and this is VERY important IMHO: DirectSound DOES NOT have that problem.
ASIO and WASAPI have the EXACT SAME PROBLEM.

What could it be?? It's driving me insane: I've tried to isolate the cause for months now
Then the answer has been already given in some other thread: currently only directsound has "vsync adjustment".

EDIT: this will be implemented in next version (as long as it is possible with portaudio)

Last edited by Toni Wilen; 30 June 2009 at 13:47.
Toni Wilen is offline  
Old 30 June 2009, 13:54   #11
Gaula92
Registered User
 
Gaula92's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 527
woho then!

It's the last feature I need in winUAE
Thanks for your hard work!
Gaula92 is offline  
Old 10 July 2009, 18:49   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
Portaudio does not seem to have API to get sound buffer status but I found WASAPI examples in MSDN -> there will be WinUAE "native" WASAPI sound option.. (maybe..)
Toni Wilen is offline  
Old 13 July 2009, 09:14   #13
Gaula92
Registered User
 
Gaula92's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 527
It's great to hear that, Toni. Maybe it will work better than portaudio versions, wthout those desync problems.
Gaula92 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Audio Config in Winuae for a Creative X-Fi Audio Card shaf support.WinUAE 2 14 June 2012 16:27
recording audio via winuae stevorino support.WinUAE 2 27 May 2011 13:17
WinUAE and CD Audio Mad-Matt support.WinUAE 1 02 June 2009 16:39
Crash using Portaudio WASAPI mode Ian support.WinUAE 6 31 May 2009 03:34
WINUAE Audio problems Woody036 support.WinUAE 5 04 April 2004 15:22

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:27.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10970 seconds with 13 queries