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

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

LiveCode can't play system sounds in Yosemite

Post by Mag » Sun Oct 19, 2014 3:32 pm

When trying to play system sounds in Yosemite I get a sort of weird "Olivetti PC 1" without sound card sounds.

Attached there is demo stack.



EDIT: changed "fonts" to "sounds" in thread title :mrgreen:
Attachments
Sounds.livecode.zip
(1.38 KiB) Downloaded 179 times
Last edited by Mag on Mon Oct 20, 2014 12:21 pm, edited 3 times in total.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LiveCode can't play system fonts in Yosemite

Post by Klaus » Sun Oct 19, 2014 5:00 pm

Hi Mag,

these are COMPRESSED aiff files and LC cannot simply PLAY them!
Set up a player object and it should work :D


Best

Klaus

[-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 fonts in Yosemite

Post by [-hh] » Sun Oct 19, 2014 5:28 pm

At least "beep" works as before with these sounds.

Perhaps you would like, as I would like to do, really play system *fonts*:
Play and kick this hard-to-read "Helvetica" used as system menu font in Yosemite. My eyes are burning. A font that is designed for large headlines to use for tiny displays, and not changeable in prefs !! And "TinkerTool" can't help here ...
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 fonts in Yosemite

Post by Mag » Sun Oct 19, 2014 8:00 pm

Thank you for the posts.

Maybe I forgot to tell that this stack works fine in Mavericks. Have I to rewrite the code to have it to work in Yosemite, really?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: LiveCode can't play system fonts in Yosemite

Post by FourthWorld » Sun Oct 19, 2014 8:07 pm

Mag wrote:Maybe I forgot to tell that this stack works fine in Mavericks. Have I to rewrite the code to have it to work in Yosemite, really?
Well, Apple does have a rather long history of disregard for backward compatibility, but it may be that the engine team could come up with a workaround to accommodate it. IMO it would be worth submitting a report with this sample stack to the bug DB for consideration.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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 fonts in Yosemite

Post by Mag » Sun Oct 19, 2014 8:07 pm

BTW, the sound Blow do work for you? It seems the only one in this stack that works fine also in Yosemite.

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 fonts in Yosemite

Post by Mag » Sun Oct 19, 2014 9:01 pm

Hi Klaus,

Is the player object to be present in every card which is the current top card? This will complicate a bit my project I think... :roll:

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LiveCode can't play system fonts in Yosemite

Post by Klaus » Mon Oct 20, 2014 1:11 am

Hi Mag,
Mag wrote:Hi Klaus,

Is the player object to be present in every card which is the current top card?
:shock: no capisce!?

The player is neccessary on every card you want to "play" your sound(s)!
But also player objects can be grouped, if that helps :D


Best

Klaus

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 fonts in Yosemite

Post by Mag » Mon Oct 20, 2014 6:55 am

Klaus wrote:Hi Mag,
Mag wrote:Hi Klaus,

Is the player object to be present in every card which is the current top card?
:shock: no capisce!?

The player is neccessary on every card you want to "play" your sound(s)!
But also player objects can be grouped, if that helps :D


Best

Klaus
Wow, since I do not know at what point should play this sound, this would force me to put a player in every single card of each stack and substack of my project (Preferences, About Box, Warning boxes and so on). And there are more than thirty stacks...

PS
Anyway thank you for the groups tips :wink:

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LiveCode can't play system fonts in Yosemite

Post by Klaus » Mon Oct 20, 2014 11:40 am

Several years ago I created an invisible stack for this purpose which only held one player object
that I could "fill" and start where- and whenever I needed to 8)

[-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 fonts in Yosemite

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

Hi all,

the system sounds play all correct with me in Yosemite.
Also connected to 'sound':
The voices for speech have changed (were improved?) and have to be (automatically) updated.
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 fonts in Yosemite

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

[-hh] wrote:the system sounds play all correct with me in Yosemite.

Have you tested with the stack I uploaded in the first post?

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 fonts in Yosemite

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

Klaus wrote:Several years ago I created an invisible stack for this purpose which only held one player object
that I could "fill" and start where- and whenever I needed to 8)
Hi Klaus, this could be a solution, but, in this way, have I to change the stack that is having the focus (e.g. the topStack)?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LiveCode can't play system sounds in Yosemite

Post by Klaus » Mon Oct 20, 2014 12:31 pm

Hi Mag,
have I to change the stack that is having the focus (e.g. the topStack)?
depends on how you will be implementing the solution.

But a simple:
...
put "path/to/xyz.aiff" into tSound
send "PlayNewSound tSound" to stack "my invisible audio player"
...
should not change the focus, and even if it would, why not change the focus back to another stack?

Workarounds tend to require a TAD more work 8)

Best

Klaus

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:40 pm

Klaus wrote:why not change the focus back to another stack?
There are some things that depends on the card has the focus in my project.
Klaus wrote:But a simple:
...
put "path/to/xyz.aiff" into tSound
send "PlayNewSound tSound" to stack "my invisible audio player"
Thanks for the clue, I will try.
Klaus wrote:Workarounds tend to require a TAD more work 8)
Yes, I know, since I started using LiveCode all I do is write workarounds ... and reinvent the wheel everyday ;-)
Last edited by Mag on Mon Oct 20, 2014 12:41 pm, edited 1 time in total.

Post Reply