Using DOpus internal sound player outside of DOpus

When I double-click a sound file (MP3, WAV, MID etc) inside DOpus the internal sound player automatically plays the file for me.

However, if I do the same for a file outside of DOpus (eg, in my mail client or just lying on my desktop) Windows Media Player takes over.

How can I change the association to invoke the DOpus internal sound player in such situations? I assume it to be via the Settings>File Types mechanism, but what executable do I tell it to use - or is there some other way?

You have to edit the Open (or default) action of the WAV (or whichever) file type. The "type" should be run an application and the "application" command should be:

"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /CMD Play FILE="%1"

If double-clicking WAV files outside of Opus still opens them in the old program then you also need to (once) right-click them and use the Open With menu. Don't select a program via the menu; use the "Choose Program" or similar item to open a list of all programs which will include a checkbox to make your selection permanent. Then select Opus from the list. (It should already be in there if you've made the file type change, called Directory Opus Helper Application or similar.)




Hello Leo...

I have followed the steps you provided, and as you can see, I have set the Open With action for WAV files for the Directory Opus Helper Application.

However, when I click the WAV file nothing happens. I have checked the code carefully, and adapted the DOpus path to match mine, as follows:

"C:\Program Files\Directory Opus\dopusrt.exe" /CMD Play FILE="%1"

Any suggestions?

That all looks correct to me.

What happens if you run the same thing manually, from a Command Prompt, putting the path to the wav file where the %1 is?

[quote="leo"]That all looks correct to me.

What happens if you run the same thing manually, from a Command Prompt, putting the path to the wav file where the %1 is?[/quote]Hello Leo...

The internal sound player window opens with the sound file name plugged in, but no sound is played. See below:

Weird... Not sure what else is worth trying if that doesn't work.

I tested it here and it's fine, including with file names and paths that contain spaces.

Are there any non-ASCII characters in the file path? They shouldn't cause a problem but that's one thing I haven't tested myself.

You didn't forget the quotes around the %1 or anything like that?

Have you tried with other .wav files in case there's something odd about the 'chicken dance.wav' file ?

OK. I have double-checked all of the obvious things. Thanks Leo and Steve for your input. To broaden the research, I have added another WAV file, an MP3 file and a MID file. Here is what I have found:

  1. When Windows Media Player 11 is the 'File Types' default, all files play when clicked on the desktop or as mail client attachments.

  2. I changed the 'File Types' default to:

"C:\Program Files\Directory Opus\dopusrt.exe" /CMD Play FILE="%1" and changed the default player to Directory Opus Helper App (also referred to as Directory Opus Launcher). None of the files play when clicked on the desktop or as mail client attachments.

  1. All files play in the DOpus internal sound player when clicked from a DOpus lister. (I have the setting 'Use internal sound player for WAV files' checked.)

  2. I created batch files with the statement:

"C:\Program Files\Directory Opus\dopusrt.exe" /CMD Play FILE="C:\Users\Bernard\Downloads\filename.ext" where filename.ext represents each file in turn. Each file played except Chicken Dance.wav. Take a bow, Steve. Obviously, there is something odd about it. But see item 1 above. Even it plays OK in Windows Media Player, whether from the desktop or the email client.

I note Leo's confirmation that the DOpus Helper App works for him (thanks Leo), and tentatively conclude that here is something wrong with my file associations mechanism. However, it let me reinstate the Windows Media Player as the 'File Types' default, and everything is working again, albeit WMP takes forever to load compared with the DOpus internal sound player just to play a small sound file. DOpus is a permanent feature on my system, while WMP is loaded only when needed.

As I typed that last paragraph, I had the brilliant idea that I should at least try Media Player Classic to see what happens. I'll let you know what I find.

[quote="bspeight"]I note Leo's confirmation that the DOpus Helper App works for him (thanks Leo), and tentatively conclude that here is something wrong with my file associations mechanism. However, it let me reinstate the Windows Media Player as the 'File Types' default, and everything is working again, albeit WMP takes forever to load compared with the DOpus internal sound player just to play a small sound file. DOpus is a permanent feature on my system, while WMP is loaded only when needed.

As I typed that last paragraph, I had the brilliant idea that I should at least try Media Player Classic to see what happens. I'll let you know what I find.[/quote]Well, it seems it's not the file associations mechanism. I have successfully changed from WMP to Media Player Classic. It is correctly invoked from either desktop or email client, for all of the file types mentioned (even Chicken Dance.wav!), and they are all still playing correctly using the DOpus internal sound player when clicked from a lister. At least that tends to confirm I am not making a stupid mistake (me??? stupid??? :unamused:) in making the changeover.

And I am wishfully thinking it is marginally quicker to load than WMP.

But that leaves me totally bamboozled as to where the problem lies.

Someone needs to write you a dedicated Chicken Dance player :slight_smile:

[quote="jon"]Someone needs to write you a dedicated Chicken Dance player :slight_smile:[/quote] :smiley: