davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

which application to be associated with wav files?

Fri May 20, 2016 3:36 pm

hello,
which is the standard Raspbian application to be associated with wav files (sort of media player)?
It should be able to auto-detect the specific modes e.g., sampling rate, mono/stereo a.s.o.

associate by
x.wav -> file properties -> open with -> ...?
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

gkreidl
Posts: 6114
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: which application to be associated with wav files?

Fri May 20, 2016 3:47 pm

It depends on the software being installed and on the mimetype declarations in the application's desktop file. You can also set your preferred application for a certain file type.
omxplayerGUI, for example, includes the mimetype for wav files and also VLC.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: which application to be associated with wav files?

Fri May 20, 2016 3:55 pm

I have just the standard Raspian Jessie 2016-05-10, installed by NOOBS.

Which one is the media player then?
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

gkreidl
Posts: 6114
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: which application to be associated with wav files?

Fri May 20, 2016 4:00 pm

davenull wrote:I have just the standard Raspian Jessie 2016-05-10, installed by NOOBS.

Which one is the media player then?
AFAIK there is only omxplayer and this is a command line program without any file type association. Install any kind of desktop audio or media player.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

W. H. Heydt
Posts: 10995
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: which application to be associated with wav files?

Fri May 20, 2016 6:11 pm

gkreidl wrote:
davenull wrote:I have just the standard Raspian Jessie 2016-05-10, installed by NOOBS.

Which one is the media player then?
AFAIK there is only omxplayer and this is a command line program without any file type association. Install any kind of desktop audio or media player.
Mplayer works fine with wav files. I use it for ripped CDs.

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: which application to be associated with wav files?

Fri May 20, 2016 6:54 pm

how can I do that?

It should work like by windows:
double click on a wav file, and it plays the sound.
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

User avatar
r3d4
Posts: 967
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: which application to be associated with wav files?

Fri May 20, 2016 7:01 pm

davenull wrote:how can I do that?

It should work like by windows:
double click on a wav file, and it plays the sound.

"Those who do not understand Unix are condemned to reinvent it, poorly."


Not much help i know (sorry) just food for thought!

you can do this afaik but right now i have not time ,,. perhaps someones else can elaborate.

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: which application to be associated with wav files?

Fri May 20, 2016 7:05 pm

the user-unfriendly 30-40 years old DOS and Unix functionality based on terminals and command lines was the reason why Apple Macintosh and MS Windows had been invented by Steve Jobs and Bill Gates - and their tremendeous world-wide success further on ... :ugeek: :geek:

so again, I need a simple audio player which can be associated by either wav file - to JUST PLAY IT by a double click from the file manager or the desktop.
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: which application to be associated with wav files?

Fri May 20, 2016 7:30 pm

Navigate to a .wav file in Filemanager.
Right click on the file and choose "Open with.."
Click on the "Custom Command Line" tab
In the "Command Line to execute:" text box put

Code: Select all

omxplayer %f
In the "Application Name" text box put "Omxplayer", that will add "Omxplayer" to the right click menu.
Put a check to set it as the default, then "OK".

Once that is done right clicking on a wave file will include "Omxplayer" in the right click context menu, click on it to play the file.
If you double click it will either play or you'll get a command box pop up with 4 options ("Execute, Execute in Terminal, Open, Cancel"). Click on "Execute" to play it.

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: which application to be associated with wav files?

Fri May 20, 2016 7:36 pm

edit:

I got it!
It works! Thank you!
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

User avatar
CleoQc
Posts: 45
Joined: Thu Jan 03, 2013 11:49 pm

Re: which application to be associated with wav files?

Sun May 22, 2016 9:43 pm

Any idea where this information is getting saved on the SD card? I'd like to have this in a script at some point (well not exactly this, but something similar)
thanks!
JimmyN wrote:Navigate to a .wav file in Filemanager.
Right click on the file and choose "Open with.."
Click on the "Custom Command Line" tab
In the "Command Line to execute:" text box put

Code: Select all

omxplayer %f
In the "Application Name" text box put "Omxplayer", that will add "Omxplayer" to the right click menu.
Put a check to set it as the default, then "OK".

Once that is done right clicking on a wave file will include "Omxplayer" in the right click context menu, click on it to play the file.
If you double click it will either play or you'll get a command box pop up with 4 options ("Execute, Execute in Terminal, Open, Cancel"). Click on "Execute" to play it.
Sometimes I can do things that make sense

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: which application to be associated with wav files?

Sun May 22, 2016 11:07 pm

The users right click menu is located at

Code: Select all

~/.local/share/applications
Any you add using Filemanager will begin with "userapp-" followed by the name you gave it. You can edit the file manually too, to change something after it's been created, it's a typical .desktop file. And sometimes you will end up with extra ones that didn't work, or are duplicates, you can just delete them.

User avatar
CleoQc
Posts: 45
Joined: Thu Jan 03, 2013 11:49 pm

Re: which application to be associated with wav files?

Mon May 23, 2016 1:55 pm

Thank you!
For some reason, when I looked there yesterday, I didn't find it. But it's there this morning. I must have been distracted yesterday. :roll:
Sometimes I can do things that make sense

User avatar
CaptSunset
Posts: 140
Joined: Fri Mar 20, 2015 2:55 pm

Re: which application to be associated with wav files?

Mon May 23, 2016 4:09 pm

Dave I can highly recommend VLC, it is available for Windows & Linux generally, including Raspian.

It will play just about any media file, not just audio .wav, it has a standard win-style GUI with scalable window, and a large number of features of interest to audiophiles. Best on the Pi 3.

Return to “Beginners”