Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useR14 sounds not working #2

Open
lucacerone opened this issue Jul 8, 2014 · 5 comments
Open

useR14 sounds not working #2

lucacerone opened this issue Jul 8, 2014 · 5 comments

Comments

@lucacerone
Copy link

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?

@yihui
Copy link
Owner

yihui commented Jul 8, 2014

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.

@lucacerone
Copy link
Author

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

@yihui
Copy link
Owner

yihui commented Jul 8, 2014

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!

@lucacerone
Copy link
Author

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.

@lucacerone
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants