"Audio output device: Default DirectSound device" possible?

Hi!

I really like OpenPHT and use it almost every day. But I have a problem with the audio output device selection. Unlike for other media players, you cannot select to always use the default DirectSound device, but have to set an output device which will be used all the time. Since I want to use OpenPHT on my desktop sometimes (with a separate set of speakers and headphones connected to a different sound device), I really would like to be able to just set the audio output to use the default device. I can easily switch the default audio output device with a shortcut and nircmd, but this won’t have any effect on OpenPHT, since it will still use the selected audio device. So if its not too complicated, could you add an option to just use the default audio device? That would be awesome!

Regards,
René S.

You can change the defaults in the Windows sound settings.

@Sybok said:
Hi!

I really like OpenPHT and use it almost every day. But I have a problem with the audio output device selection. Unlike for other media players, you cannot select to always use the default DirectSound device, but have to set an output device which will be used all the time. Since I want to use OpenPHT on my desktop sometimes (with a separate set of speakers and headphones connected to a different sound device), I really would like to be able to just set the audio output to use the default device. I can easily switch the default audio output device with a shortcut and nircmd, but this won’t have any effect on OpenPHT, since it will still use the selected audio device. So if its not too complicated, could you add an option to just use the default audio device? That would be awesome!

Regards,
René S.

Yes, please! Tired of changing PHT settings every time I move to/from Bluetooth headphones vs. speakers. Everything else follows the Windows default, but PHT has always lacked that option.

@danjames92 said:
You can change the defaults in the Windows sound settings.

Please read again - it’s not about changing the Windows defaults, it’s about using the Windows defaults. Changing the Windows defaults is no problem and I can easily do that in an automated manner by calling NirCmd.

Anyway: I think editing the config file and (re)starting PHT is the way to go - for now. I haven’t scripted it yet, but as far as I can see, it shouldn’t be a problem.

In case anyone is stumbling upon this: This feature was added to OpenPHT in the meantime! :slight_smile:

@Sybok said:
In case anyone is stumbling upon this: This feature was added to OpenPHT in the meantime! :slight_smile:

The feature was added? When? I know it is requested to implement into future release…

@yegor
I would have to check the release notes myself, but there is now an option “DIRECTSOUND: default” (as well as “WASAPI: default”) within OpenPHT, which allows it to use the default audio output device as set in Windows. You still have to restart OpenPHT after changing the default audio output device in Windows (since OpenPHT won’t pick up the change at runtime), but since you had to actually reconfigure the setting in OpenPHT for earlier versions, that’s clearly an improvement. I assume most people don’t change the audio output device at the runtime of OpenPHT anyway, so that’s probably OK.

UPDATE: I just checked the release notes of every version released after my initial thread (or so I think) and couldn’t find any mention of this new feature. Although I may have overlooked it, it’s quite possible that it just wasn’t mentioned in the list of changes at all. But I think it’s been in OpenPHT for at least 2 versions. HTH!

Is that Windows only? I’m running the OpenPHT on Mac mini and would like to be able to trigger a system script to toggle between audio outputs until it’s implemented into OpenPHT.

@yegor said:

Is that Windows only?

Well, that is absolutely possible. Since I use a Windows PC as my media server for several reasons (I’m not only running Plex on it) I have only been using Plex and OpenPHT on Windows so far.

@yegor said:

I’m running the OpenPHT on Mac mini and would like to be able to trigger a system script to toggle between audio outputs until it’s implemented into OpenPHT.

I don’t know how the current situation is on Mac OS, but probably you could script something to update the configuration file, just like I did it before. You would have to identify the line which holds the current output device ID (on Windows its stored in the form of a GUID) and then replace that with the one you need to switch to. You should just configure each output device, make a copy of the script and then diff them both to get the changes you need to make. An alternative solution would be to replace the whole file if you’re not changing settings regularly. Regardless of how you do it, it’s pretty much of a no-brainer in scripting. Of course this would not work at runtime, but you could for example create scripts/shortcuts/launchers which start OpenPHT with the setup you need.

HTH!