LiveCode can't play system sounds in Yosemite

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: LiveCode can't play system sounds in Yosemite

Post by [-hh] » Mon Oct 20, 2014 12:41 pm

Hi Mag,
Mag wrote:Have you tested with the stack I uploaded in the first post?
Yes, this doesn't work here too. But tested all system sounds with "beep" (after setting the system sound by applescript).

The reason for your problem are the sounds themselves.
See Apple's page to OS 10.10 ( https://www.apple.com/osx/all-features/ )
There you'll find [as usual no more (technical) info is given]
Apple wrote:Updated system sounds
Many of the system sounds have been updated in OS X Yosemite so they sound clearer.
shiftLock happens

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: LiveCode can't play system sounds in Yosemite

Post by Mag » Mon Oct 20, 2014 12:47 pm

[-hh] wrote:The reason are the sounds themselves.
See Apple's page to OS 10.10 ( https://www.apple.com/osx/all-features/ )
There you'll find [as usual no more (technical) info is given]
Apple wrote:Updated system sounds
Many of the system sounds have been updated in OS X Yosemite so they sound clearer.
Mystery solved. :D

Do you used AppleScript to change the system sound and then used beep?
Last edited by Mag on Mon Oct 20, 2014 12:51 pm, edited 2 times in total.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: LiveCode can't play system sounds in Yosemite

Post by [-hh] » Mon Oct 20, 2014 12:50 pm

No simply setting the sound.
Then let LC "beep".
shiftLock happens

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: LiveCode can't play system sounds in Yosemite

Post by Mag » Mon Oct 20, 2014 12:51 pm

[-hh] wrote:No simply setting the sound.
Then let LC "beep".
Ah, ok, a thing like this

Code: Select all

set the beepSound to { beepType }
Edit: Please forget this, just noticed that is just to change the system font type not the sound.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: LiveCode can't play system sounds in Yosemite

Post by [-hh] » Mon Oct 20, 2014 2:22 pm

It would be a great feature, if we could at least make LC to reload the current system sound (which is currently loaded once at LC's startup). Please could anybody who's interested in this make the request?

For testing I used an applescript that does the following

= open the preferences window
= choose sound preferences and the correct tab
= repeat for all available system sounds:
=.= quit LC
=.= choose a system sound
=.= start LC and let it "beep 2"
= end repeat
= close the preferences window

[I think I can post this here, because a user has first to activate "assistive devices" before it's working]

Code: Select all

tell application "System Preferences"
	activate -- visible
	reveal anchor "effects" of pane "com.apple.preference.sound"
end tell
tell application "System Events"
	tell process "System Preferences"
		set RR to every row of table 1 of scroll area 1 of ¬
			tab group 1 of window "sound"
		repeat with R in RR
			set selected of R to true -- plays sound once
			tell application "LiveCode 7.0 (rc 2)"
				run
				do script "beep 2"  -- plays sound twice
				quit
			end tell
		end repeat
	end tell
end tell
tell application "System Preferences" to quit
[Set the beepsound to (physical) "vibrate". This would be a *really* cool feature for desktop :-)]
shiftLock happens

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: LiveCode can't play system sounds in Yosemite

Post by Mag » Mon Oct 20, 2014 7:29 pm

[-hh] wrote:[Set the beepsound to (physical) "vibrate". This would be a *really* cool feature for desktop :-)]
:D :lol: :P :)




:roll:

Post Reply