Has anyone tried to refer to a sound file using a variable in IOS? For example:
put the short name of the current card&".wav" into soundtoplay
play specialFolderPath("engine") & "/Audio/soundtoplay"
Doesn't work for me. I would appreciate any help or suggestions. Thanks!
Reference sound files
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Reference sound files
Hi michelle,
variable names must not be in uotes!
And you need to put parenthesis around the filename.
This will work:
...
put the short name of the current card & ".wav" into soundtoplay
play (specialFolderPath("engine") & "/Audio/" & soundtoplay)
...
Best from gemany
Klaus
variable names must not be in uotes!
And you need to put parenthesis around the filename.
This will work:
...
put the short name of the current card & ".wav" into soundtoplay
play (specialFolderPath("engine") & "/Audio/" & soundtoplay)
...
Best from gemany
Klaus
Re: Reference sound files
Klaus:
I was just going to respond to this when your response popped in...
Hilarious!
:T
I was just going to respond to this when your response popped in...
Hilarious!
:T
Re: Reference sound files
Well, no wonder, I'm a couple hours ahead of you 

-
- Posts: 5
- Joined: Fri Mar 18, 2011 1:36 am
Re: Reference sound files
Thanks Klaus and ctflatt. I had tried a version that didn't use the quotes - because I thought the same thing but was getting errors from LC. I probably just had a typo I didn't notice. It is working perfectly! I really appreciate your help!



-
- Posts: 5
- Joined: Fri Mar 18, 2011 1:36 am
Re: Reference sound files
I posted too quickly - I just noticed this part of the comment "put parenthesis around the filename" -- That was it. Thanks again!