Comments (6)
Thank you for the suggestion. I had done that, but waveOut had always resulted in more crackling for me, no matter my skew and latency finagling. But it's actually fully gone now. The only relevant thing I've changed is finally not using Realtek's driver (I use the onboard ALC1220 chip) anymore, and just going with Windows 10's basic driver. Man, such a better experience. I can even set lower latencies now, no need to even configure any skew.
That clears up my issue. Should this still stay up in case anyone would still like to implement a default device selection for the other backends?
from bsnes.
The WASAPI and XAudio 2.1 drivers do indeed not allow you to select the 'Default' audio device right now.
Do you have a specific reason for using the XAudio 2.1 driver? If not, may I suggest using the waveOut driver as an alternative?
from bsnes.
XAudio 2.1 has better effects and sound quality than waveOut ...
from bsnes.
I don't know why the WASAPI and XAudio2 drivers require a specific device to be selected, but it seems like a sensible thing to have. I would take a PR adding this feature.
from bsnes.
Part of the problem is that we're currently targeting XAudio 2.1, which cannot select the default audio output device. I think this version was chosen for compatibility with older Windows versions, but I don't recall the specifics. In any case, we'll need to move to at least 2.8 in order to support this.
I haven't looked into WASAPI, so I can't comment on what's needed there.
from bsnes.
My recollection is that XAudio 2.8 required Windows 8, while XAudio 2.7 could be installed on any OS version (including Windows 8) with the DirectX installer, so that made 2.7 the correct version to use. Apparently XAudio 2.9 now comes with Windows 10, and there's a redistributable version that works back to Win7, but it needs to be shipped with the executable and probably requires the MSVC toolchain... ugh. I'm also a little worried whether mingw32-w64's headers support later versions of the XAudio2 API, but I see mentions of XAudio 2.9 in their source tree so I assume it'll work eventually if it doesn't already.
The latest Steam Hardware Survey says ~90% of Windows gamers are using Windows 10, so as long as supporting later versions of XAudio doesn't break Win7 (i.e. as long as they can still use WASAPI or waveOut or DirectSound) it seems like a reasonable thing to do.
The XAudio docs also mention that the output sample-rate can change at runtime (say, somebody is playing a 48kHz audio stream, then plugs in USB headphones that only support 44.1kHz) and I bet ruby doesn't handle that very well at all. Still, I think that would be an improvement over the current situation (plug in headphones, audio keeps playing out the speaker) and for people whose headphones and speakers match, it'd be exactly right.
I would also like to hear more about WASAPI.
from bsnes.
Related Issues (20)
- /bsnes: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./bsnes) HOT 2
- bsnes/heuristics/game-boy.cpp — 3 lines after `if` are indented, but not in block HOT 4
- bsnes/sfc/controller/justifier/justifier.cpp: probably unintended `player2` instead of `player1` in `player1`-related statement group HOT 2
- QWidget::paintEngine: Should no longer be called HOT 1
- Option to disable IPS softpatch warning HOT 1
- Can't use two identical input devices simultaneously HOT 3
- Feature Request: Please add Blarggs NTSC SNES filters HOT 5
- Feature Request: Add controller profiles
- Continue Movie Record Support + Meta Information
- Cannot Disable 2nd Controller Port HOT 4
- macOS: loading a savestate crashes on recent nightly builds HOT 1
- Can you adding beautiful controller input like this image below? HOT 1
- wdc65816: fix PLB wrapping in emulation mode HOT 3
- Hayazashi Nidan Morita Shougi 2 wont start HOT 2
- Windows nightly download broken HOT 7
- Hayazashi Nidan Morita Shougi 1 and 2 not playable in the libretro core HOT 4
- Assault Suits Valken - game restarts after introduction HOT 2
- i cant build bsnes anymore in arch linux HOT 2
- SA-1 DMA won't transfer to bank 0x41 HOT 5
- Request to add an input display HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bsnes.