Page 1 of 2
LiveCode can't play system sounds in Yosemite
Posted: Sun Oct 19, 2014 3:32 pm
by Mag
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

Re: LiveCode can't play system fonts in Yosemite
Posted: Sun Oct 19, 2014 5:00 pm
by Klaus
Hi Mag,
these are COMPRESSED aiff files and LC cannot simply PLAY them!
Set up a player object and it should work
Best
Klaus
Re: LiveCode can't play system fonts in Yosemite
Posted: Sun Oct 19, 2014 5:28 pm
by [-hh]
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 ...
Re: LiveCode can't play system fonts in Yosemite
Posted: Sun Oct 19, 2014 8:00 pm
by Mag
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?
Re: LiveCode can't play system fonts in Yosemite
Posted: Sun Oct 19, 2014 8:07 pm
by FourthWorld
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.
Re: LiveCode can't play system fonts in Yosemite
Posted: Sun Oct 19, 2014 8:07 pm
by Mag
BTW, the sound Blow do work for you? It seems the only one in this stack that works fine also in Yosemite.
Re: LiveCode can't play system fonts in Yosemite
Posted: Sun Oct 19, 2014 9:01 pm
by Mag
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...

Re: LiveCode can't play system fonts in Yosemite
Posted: Mon Oct 20, 2014 1:11 am
by Klaus
Hi Mag,
Mag wrote:Hi Klaus,
Is the player object to be present in every card which is the current top card?

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
Best
Klaus
Re: LiveCode can't play system fonts in Yosemite
Posted: Mon Oct 20, 2014 6:55 am
by Mag
Klaus wrote:Hi Mag,
Mag wrote:Hi Klaus,
Is the player object to be present in every card which is the current top card?

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
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

Re: LiveCode can't play system fonts in Yosemite
Posted: Mon Oct 20, 2014 11:40 am
by Klaus
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

Re: LiveCode can't play system fonts in Yosemite
Posted: Mon Oct 20, 2014 12:14 pm
by [-hh]
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.
Re: LiveCode can't play system fonts in Yosemite
Posted: Mon Oct 20, 2014 12:22 pm
by Mag
[-hh] wrote:the system sounds play all correct with me in Yosemite.
Have you tested with the stack I uploaded in the first post?
Re: LiveCode can't play system fonts in Yosemite
Posted: Mon Oct 20, 2014 12:23 pm
by Mag
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

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)?
Re: LiveCode can't play system sounds in Yosemite
Posted: Mon Oct 20, 2014 12:31 pm
by Klaus
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
Best
Klaus
Re: LiveCode can't play system sounds in Yosemite
Posted: Mon Oct 20, 2014 12:40 pm
by Mag
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
Yes, I know, since I started using LiveCode all I do is write workarounds ... and reinvent the wheel everyday
