Open lucacerone opened 10 years ago
Hmm, interesting. Are you able to open sword1.wav by double clicking it? And do you have xdg-open
in your system?
$ which xdg-open
/usr/bin/xdg-open
$ xdg-open sword1.wav
It works fine for me under Mac/Debian/Windows, although I did not really test Ubuntu. I have Totem installed under Debian, which is associated with *.wav files.
Hi, actually if I run the single function it works (it opens media player/totem and plays the sound) But when I source the scripts it opens a bunch of windows (for totem), which freeze and I need to kill totem from the terminal
I see. I guess I need to insert Sys.sleep(10)
before each sword()
call. If that works for you, do you mind submitting a pull request? Thanks!
On my laptop at home with Arch Linux and Rstudio Version 0.98.501 everything works fine as is (it installs the missing libraries and it doesn't open the player in an external app).
I am going to upgrade Rstudio (I wanted to do it anyway), just to check if that can be the source of the issue.
OK in the latest Rstudio version everything works just fine. A difference I have between the two distributions is that on Arch I have MATE, which uses mplayer by default to reproduce .wav files.
Hi, I have tried to source the main script you used for the useR2014 (I am using Rstudio in an Ubuntu 12.04 OS), but the sounds do not play, and a lot of "Timeout was reached" appear in the console.
Am I doing something wrong?