Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

It seems that when I run Play in Mathematica, something as basic as

Play[Sin[440 * 2 π * t], {t, 0, 1}]

the output generates correctly. However, when I actually hit the sideways triangle to play the sound, the user interface freezes, and I have to kill Mathematica.

This isn't an issue where everything works but the sound doesn't play. It freezes and I have to kill the program.

I tried emulating OSS using ALSA by running aoss mathematica (I have alsa-oss installed.) The sound still didn't play, but several errors appear on standard out/error:

ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream

Does anyone know how I can get my sound to play in Mathematica 9.0.1, given that I tried emulating oss in alsa and it still doesn't work? Thanks.

Note: I'm looking for a solution that makes Mathematica compatible with notebooks someone sends me. I found solutions that use $SoundDisplayFunction to play the sound using alsa rather than display a sound dialog, but this doesn't work for notebooks I receive from people with working sound.

share|improve this question
1  
Did you report that to WRI (and perhaps also on Wolfram Community)? Might not be a bad idea. –  Yves Klett Feb 24 at 7:44
    
Seems to work on Ubuntu 13.10. I realize this doesn't help much, just another data point ... –  Szabolcs Feb 24 at 14:35
    
@Szabolcs odd, I'm using Linux Mint 16 (which is a Saucy Salamander derivative). –  Leo Izen Feb 26 at 18:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.