Go Back   Project64 Forums > Public Version > Project 64 - v2.x - Suggestions

Reply
 
Thread Tools Display Modes
  #1  
Old 22nd March 2011, 04:17 AM
squall_leonhart's Avatar
squall_leonhart squall_leonhart is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Mar 2007
Location: Sydney, Australia
Posts: 2,917
Default Jabos Dsound > Jabos Xaudio2

This could definitely improve the audio popping and delays when synching to audio under Vista and Win7.
__________________

CPU:Intel Xeon x5690 @ 4.2Ghz, Mainboard:Asus Rampage III Extreme, Memory:48GB Corsair Vengeance LP 1600
Video:EVGA Geforce GTX 1080 Founders Edition, NVidia Geforce GTX 1060 Founders Edition
Monitor:ROG PG279Q, BenQ BL2211, Sound:Creative XFI Titanium Fatal1ty Pro
SDD:Crucial MX300 275, Crucial MX300 525, Crucial MX300 1000
HDD:500GB Spinpoint F3, 1TB WD Black, 2TB WD Red, 1TB WD Black
Case:NZXT Phantom 820, PSU:Seasonic X-850, OS:Windows 7 SP1
Reply With Quote
  #2  
Old 22nd March 2011, 02:40 PM
dsx_ dsx_ is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2010
Location: Australia
Posts: 1,105
Default

i dont have any popping issues; is it sound card specific or something?
Reply With Quote
  #3  
Old 22nd March 2011, 03:08 PM
Natch's Avatar
Natch Natch is offline
Project Supporter
Senior Member
 
Join Date: Jan 2011
Location: Nowhere near you.
Posts: 5,075
Default

This guy does.
__________________
Reply With Quote
  #4  
Old 22nd March 2011, 04:00 PM
squall_leonhart's Avatar
squall_leonhart squall_leonhart is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Mar 2007
Location: Sydney, Australia
Posts: 2,917
Default

its emulator + windows specific.
__________________

CPU:Intel Xeon x5690 @ 4.2Ghz, Mainboard:Asus Rampage III Extreme, Memory:48GB Corsair Vengeance LP 1600
Video:EVGA Geforce GTX 1080 Founders Edition, NVidia Geforce GTX 1060 Founders Edition
Monitor:ROG PG279Q, BenQ BL2211, Sound:Creative XFI Titanium Fatal1ty Pro
SDD:Crucial MX300 275, Crucial MX300 525, Crucial MX300 1000
HDD:500GB Spinpoint F3, 1TB WD Black, 2TB WD Red, 1TB WD Black
Case:NZXT Phantom 820, PSU:Seasonic X-850, OS:Windows 7 SP1
Reply With Quote
  #5  
Old 22nd March 2011, 09:31 PM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,236
Default

I haven't had it anyway. There was this one thread months back though that this guy had total shit-popping no matter what sound plugin he used, except Mr. zilmar's No Sound and slightly less the Nemu64 plug-in (not plugin, plug-in).
Reply With Quote
  #6  
Old 22nd March 2011, 11:47 PM
Jabo's Avatar
Jabo Jabo is offline
Core Team
Alpha Tester
Project Supporter
Project64 Team
 
Join Date: Aug 2005
Posts: 183
Default

I looked at XAudio2 as well, it's Microsoft's preferred API when they rewrote the audio stack in Windows Vista. Microsoft has been playing with DirectX ever since Xbox development started as a way to entice cross platform development, quite annoying as times it sends a mixed message.

For what Project64 needs XAudio2 is practically identical to what DirectSound already does... I don't see an immediate need to go rewrite the audio plugin, although it could use an upgrade to DirectSound8.

If we take a step back, here is some hidden settings that can fix and diagnose problems in Project64.cfg

[DSound]
SoftwareBuffer=0 or 1 (default = 1)
BufferSize=-10 to 10 (default = 0)

You can try changing SoftwareBuffer=0 or BufferSize=2, either one of these might help, I'll see if I can improve the defaults for the next build please let me know if any of these settings help

Additionally if you are having a problem with a specific game that is helpful to know.
__________________
Project64 Developer
HP Laptop, Intel P7540 with GMA4500, Windows 7

Last edited by Jabo; 23rd March 2011 at 12:19 AM.
Reply With Quote
  #7  
Old 23rd March 2011, 02:26 AM
squall_leonhart's Avatar
squall_leonhart squall_leonhart is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Mar 2007
Location: Sydney, Australia
Posts: 2,917
Default

Legend of Zelda

popping and crackling with sync to audio off, but the game then suffers from a degree of very noticed input lag.

also i enabled hardware buffer and enabled Alchemy, but still not much difference. i might have to play with the mixing lengths of both.

just figured Xaudio2 would be better on new os's plus you could do internal surround upmixing for the Dolby Surround games.
__________________

CPU:Intel Xeon x5690 @ 4.2Ghz, Mainboard:Asus Rampage III Extreme, Memory:48GB Corsair Vengeance LP 1600
Video:EVGA Geforce GTX 1080 Founders Edition, NVidia Geforce GTX 1060 Founders Edition
Monitor:ROG PG279Q, BenQ BL2211, Sound:Creative XFI Titanium Fatal1ty Pro
SDD:Crucial MX300 275, Crucial MX300 525, Crucial MX300 1000
HDD:500GB Spinpoint F3, 1TB WD Black, 2TB WD Red, 1TB WD Black
Case:NZXT Phantom 820, PSU:Seasonic X-850, OS:Windows 7 SP1

Last edited by squall_leonhart; 23rd March 2011 at 02:28 AM.
Reply With Quote
  #8  
Old 23rd March 2011, 03:41 AM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,236
Default

Lots of values to test. Too bad I haven't witnessed this issue myself, or I'd eccentrically test them all out of boredom.

Um, insane idea here, but since the new system from Vista onwards prefers XAUDIO2 maybe keep the DirectSound device as the default but add a config method for the new implementation?

Not to say that might not complicate things depending in theory how that would be resolved, not to mention its partial succumbing to the audio stack rewrite.
Reply With Quote
  #9  
Old 23rd March 2011, 11:33 AM
squall_leonhart's Avatar
squall_leonhart squall_leonhart is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Mar 2007
Location: Sydney, Australia
Posts: 2,917
Default

Xaudio works just fine on XP.
__________________

CPU:Intel Xeon x5690 @ 4.2Ghz, Mainboard:Asus Rampage III Extreme, Memory:48GB Corsair Vengeance LP 1600
Video:EVGA Geforce GTX 1080 Founders Edition, NVidia Geforce GTX 1060 Founders Edition
Monitor:ROG PG279Q, BenQ BL2211, Sound:Creative XFI Titanium Fatal1ty Pro
SDD:Crucial MX300 275, Crucial MX300 525, Crucial MX300 1000
HDD:500GB Spinpoint F3, 1TB WD Black, 2TB WD Red, 1TB WD Black
Case:NZXT Phantom 820, PSU:Seasonic X-850, OS:Windows 7 SP1
Reply With Quote
  #10  
Old 23rd March 2011, 12:52 PM
Jabo's Avatar
Jabo Jabo is offline
Core Team
Alpha Tester
Project Supporter
Project64 Team
 
Join Date: Aug 2005
Posts: 183
Default

yea and DirectSound is just a thin layer right above that on modern platforms

Quote:
popping and crackling with sync to audio off
ah now I understand what you mean, sync audio is very important. sync audio basically means "don't let the game change audio streams until the emulator has finished playing the last one"

so the reason you get pops without it, is because there is always a difference in timing between emulated playback and realtime... that difference varies with the game as well, so without sync to audio the game basically rips the audio stream away and puts a new one in before playback has finished causing a crackling effect, and potentially gaps.

that being said, sync audio is a solution to this problem, but there is likely other ways to solve it, I know this is an area zilmar has been actively looking at in recent years, and specifically with the latest build for games that have been known to behave badly with audio. the job of the audio plugin to sort through this buffering mess in real time is challenging! I'll review a few things and make sure everything is best it can be.
__________________
Project64 Developer
HP Laptop, Intel P7540 with GMA4500, Windows 7

Last edited by Jabo; 23rd March 2011 at 12:56 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

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. The time now is 07:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.