INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Xaudio2 instead of DirectSound  (Read 7033 times)

Golbeze

  • Recent member
  • *
  • Posts: 5
Xaudio2 instead of DirectSound
« on: June 12, 2015, 11:48:53 am »

I know most people here prefer to use ASIO or WASAPI, but is there a reason JRiver uses DirectSound? DirectSound has been deprecated for a long time now, and while I can understand that you may not want to leave XP users out, I still have to question why you don't add XAudio2 as an option for those with more modern systems who don't want to (or can't) deal with ASIO or WASAPI.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10935
Re: Xaudio2 instead of DirectSound
« Reply #1 on: June 12, 2015, 01:31:46 pm »

XAudio2 is designed for games, not necessarily designed for media applications. DirectSound has no disadvantages over XAudio2 for media use-cases, so it would be an exercise in busy-work mostly.
Logged
~ nevcairiel
~ Author of LAV Filters

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Xaudio2 instead of DirectSound
« Reply #2 on: June 12, 2015, 01:46:47 pm »

Could there perhaps be latency advantages to using XAudio2 since it's primarily designed for gaming?
That might help when trying to keep audio in sync with an external video player and passing audio through MC with the WDM Driver for example.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10935
Re: Xaudio2 instead of DirectSound
« Reply #3 on: June 12, 2015, 01:49:52 pm »

For minimal latency, you would want MC using WASAPI excl. or other exclusive outputs, as XAudio2 still goes through the system mixer which always adds latency.

Anyway, let me cut the discussion short here, we do not have any plans for this, as we do not think there is any advantage.
If you care about your audio output that much, you would be wise to use WASAPI or ASIO anyway.
Logged
~ nevcairiel
~ Author of LAV Filters

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Xaudio2 instead of DirectSound
« Reply #4 on: June 12, 2015, 02:20:13 pm »

If you care about your audio output that much, you would be wise to use WASAPI or ASIO anyway.
ASIO is the best option for low latency in my experience.
However, I still can't use ASIO in MC20.
Logged

Golbeze

  • Recent member
  • *
  • Posts: 5
Re: Xaudio2 instead of DirectSound
« Reply #5 on: June 12, 2015, 04:30:42 pm »

Ah okay, I can understand if it won't add any benefits. At first I thought DirectSound went through some kind of emulation layer, then I remembered that I was thinking of DirectDraw, which is a different thing entirely!  :-[ (I had to deal with spotty DirectDraw support on an old program sometime last year.) Anyways, thanks for the answers.  :)
Logged

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Xaudio2 instead of DirectSound
« Reply #6 on: June 12, 2015, 05:06:05 pm »

I'm not sure why you would use DirectSound in preference to the modern WASAPI though.
Whatever reason you have is probably a configuration issue.
Logged

Golbeze

  • Recent member
  • *
  • Posts: 5
Re: Xaudio2 instead of DirectSound
« Reply #7 on: June 12, 2015, 09:35:24 pm »

I'm not sure why you would use DirectSound in preference to the modern WASAPI though.
Whatever reason you have is probably a configuration issue.
Eh, I actually am using WASAPI, more out of a "no reason not to" reason, though not in exclusive mode as I hate being unable to hear other Windows sounds. I'm sure most of you chose this media player for audio quality reasons, but myself, I chose it out of preference of having a decent interface while still being able to tinker with settings, and I loved the equalizer the moment I tried it out.  However, I'm not really an "audiophile", I'm barely an enthusiast, in fact. I can't hear the difference between high-bitrate lossy like 320kbps mp3 or AAC and something lossless like flac, much less decipher whether a track has been resampled. However, I do enjoy the sound a good pair of cans or in-ears can give, recently bought my second and third mid-range earphones/headphones; a Sennheiser Momentum In-Ear and an HD 558, and just got my Fiio E07K dac/amp yesterday.

Anyways, yeah, my question was more out of curiosity, just struck me odd that a commercial media player was using DirectSound, though I understand why MC still does now that I've read other people's replies - no point in adding XAudio when it'll add so little over what's already supported.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7805
  • Autumn shade...
Re: Xaudio2 instead of DirectSound
« Reply #8 on: June 12, 2015, 09:44:20 pm »

AFAIK, iTunes still uses DirectSound by default unless you enable WASAPI output. So the continued use of DirectSound isn't that uncommon.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

Golbeze

  • Recent member
  • *
  • Posts: 5
Re: Xaudio2 instead of DirectSound
« Reply #9 on: June 12, 2015, 09:51:47 pm »

AFAIK, iTunes still uses DirectSound by default unless you enable WASAPI output. So the continued use of DirectSound isn't that uncommon.
Oh wow, okay, guess it's something I just don't pay attention to that much. Yet, I paid attention to it with this player, though in my defense it's only because reviews on my Fiio dac/amp mentioned ASIO and WASAPI, so it ended up being something I looked into when I got MC. Guess I just figured most media players would've switched from DirectSound to XAudio, though I see now that's not the case.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7805
  • Autumn shade...
Re: Xaudio2 instead of DirectSound
« Reply #10 on: June 12, 2015, 10:15:37 pm »

Yeah, I also believe Windows Media Player, Winamp and foobar2000 use DirectSound by default as well (correct me if I'm wrong).

It'd be logical to switch to WASAPI, not XAudio2 which is mainly intended for gaming. But I don't see this happening anytime soon, at least in Windows Media Player's case (unless that's changed, I'm way out of the loop with WMP) - the latter two either have native support for WASAPI output or plugins are available to enable WASAPI (and ASIO) output. I can't really remember which it is as I don't use any of those media players.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones
Pages: [1]   Go Up