Sound under OS 10.4.11 and 10.7.2

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Sound under OS 10.4.11 and 10.7.2
# 1  
Old 10-24-2011
Question Sound under OS 10.4.11 and 10.7.2

There is a change with UnIX version concerning these two platforms. I own a Power G4 Mac with OS 10.4.11 and a Mac Book Pro with Lion OS 10.7.2. There are some problems of compatibilities between the two UNIX versions.
Under OS 10.4.11, these three UNIX commands work, in order to produce sounds, even emitting a simple beep.

1) echo ^G (you need to type Ctrl-V Ctrl-G under /bin/tcsh to produce a bip).
2) osascript -e "beep"
3) qtplay /Users/stephane/Library/Audio/Sounds/Alerts/bigben.mp3

All of them work under OS 10.4.11, but unfortunately, none of them work under OS 10.7.2 !! Smilie

Is there a solution, even an explanation ?
Thanks
# 2  
Old 10-25-2011
Well, qtplay isn't part of OS X. Do you have the audio bell set in your Terminal preferences? I have no idea why applescript isn't working but you can play sounds with afplay. Type the following for the proper syntax (the man page is sparse).
Code:
afplay -h

Of course there are a number of open source options.
# 3  
Old 10-26-2011
Thanks. Beep signal is activated under preferences of Terminal. But there is another problem, unfortunately !
When typing:

afplay /Users/stephane/Library/Audio/Sounds/Alerts/bigben.mp3

I get this error message from Terminal:

Error: AudioFileOpen failed (-43)

Got an idea of what went wrong ? Smilie
# 4  
Old 10-26-2011
"Error: AudioFileOpen failed (-43)" I'm not sure what's going on. From the macerrors header file- fnfErr= -43, /*File not found*/.
# 5  
Old 10-26-2011
Suddenly it works . Thanks! Smilie
You know the equivalent of old UNIX command osascript in order to run a script under UNIX ?
Does not seem to exist anymore under Lion ...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

No sound in my Linux

I am not able to run any video file. Getting message something like : no audio facility. Is this may be problem of driver. If so please send me link for the same. I am working on Red Hat Fedora (Linux) (16 Replies)
Discussion started by: ravisingh
16 Replies

2. Linux

No sound

I reformatted my hard drive and installed Mandriva 2011. It works fine. I can go to the Internet The problem is no sound. I want to listen to songs from YouTube. Sound doesn't come. I see a man is singing on the screen. No sound. I had no problem with my old Mandriva. Sound and everything... (11 Replies)
Discussion started by: Toxic
11 Replies

3. UNIX for Advanced & Expert Users

Sound Device

hi all i have a problem that if i use something like firefox it will grab the sound device and not release it, so i can not use skype is there a command to see what is using the audio device i am using Fedora thaks Adam (3 Replies)
Discussion started by: ab52
3 Replies

4. UNIX for Dummies Questions & Answers

turn off sound

how to disable anoying beep sound??? (4 Replies)
Discussion started by: nnn
4 Replies

5. Linux

sound driver

i install fedora core 4 but it fail to detect my sound card. my sound card is sigmatel. how can i solve this problem? can i install other sound driver? thx (9 Replies)
Discussion started by: wsc
9 Replies

6. Linux

sound cards

i installed Red Hat Fedora (successfully this time) and my sound card wasnt automticly found or what ever. so how do i get my sound working and stuff? how do i gonfigure the sound card? how do i get it to detect the sound card? (4 Replies)
Discussion started by: xcaliber
4 Replies

7. UNIX for Dummies Questions & Answers

Does this sound right?

A user's default permissions when creating new files or directories is set by the umask of either the system or in the startup script of the user itself. For example, I have 'umask 022' in my .profile which means that my default permissions will be 755. Typically, the system default umask is 022,... (1 Reply)
Discussion started by: wmosley2
1 Replies

8. UNIX for Dummies Questions & Answers

Sound with Mandrake 9

Howdy all, I have a creative vibra 16 sound card and Mandrake linux 9. I can't seem to get the sound server to run (it comes up with errors). I'm a bit of a linux newb so I'd really appreciate any help on what I have to do to get it working. Thanks! ~ Paul (2 Replies)
Discussion started by: KrazyGuyPaul
2 Replies

9. UNIX for Advanced & Expert Users

Sound Problems

Hi All I am having difficulty configuring sound on my system an wonder if anyone can help me. xmms refuses to play telling me that oss_open(): Failed to open audio device (/dev/sound/dsp): No such file or directory what I have done to try and fix this is 1. create /dev/sound/dsp ... (7 Replies)
Discussion started by: silvaman
7 Replies

10. UNIX for Dummies Questions & Answers

freeBSD 4.4 sound help please

how do i configure sound on a laptop in FreeBSD 4.4 the laptop is a Green753+ i think the sound is a ess ? can any one help please tryed to make a genric kerl but did not work (1 Reply)
Discussion started by: amicrawler
1 Replies
Login or Register to Ask a Question