Audio plays only static/hiss
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 223
- Joined: Wed Jun 21, 2006 7:33 pm
- Contact:
Audio plays only static/hiss
Using the Community Edition on my Mac. When I attempt to play an imported audio file of any sort (mp3, aiff, wav), all I get is static or hiss or something best described as audio distortion of some sort. Just in case my stack was corrupted, I quit LC, re-started, re-launched LC, created a new stack, imported a known-good audio file (that played fine in the Finder and with QT Player) and got the same result - bad audio hiss/distortion.
Known bug in the new version or ???
Thanks,
Barry
EDIT: Hmm...also happening in v4.6.4 Commercial. Tried referencing the audio using the QT Player object and the sound plays properly. It is a puzzlement.
Known bug in the new version or ???
Thanks,
Barry
EDIT: Hmm...also happening in v4.6.4 Commercial. Tried referencing the audio using the QT Player object and the sound plays properly. It is a puzzlement.
Last edited by rumplestiltskin on Fri May 03, 2013 6:21 am, edited 1 time in total.
Re: Audio plays only static/hiss
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- Posts: 223
- Joined: Wed Jun 21, 2006 7:33 pm
- Contact:
Re: Audio plays only static/hiss
Simon,
Just exported the .m4a as a .aif (using QT Player Pro). Imported into LC and same result (weird distortion).
Maybe I'm using the wrong code?
play "3Sec.aif" (not working)
play audioClip "3Sec.aif" (not working)
If I create a player object and reference the clip, it plays fine when I click the player's play button. Using the Message box with the Player's fileName:
play audioClip "/Users/blevine/Downloads/3Sec.aif" results in garbage (with or without the word audioClip).
Edit: The player object works programmatically:
start player "Player"
...that plays the referenced file properly. It's the imported file that doesn't play. I'm attaching that file to this post. Perhaps someone might test it and let me know if it plays in your stack. Thanks!
Just exported the .m4a as a .aif (using QT Player Pro). Imported into LC and same result (weird distortion).
Maybe I'm using the wrong code?
play "3Sec.aif" (not working)
play audioClip "3Sec.aif" (not working)
If I create a player object and reference the clip, it plays fine when I click the player's play button. Using the Message box with the Player's fileName:
play audioClip "/Users/blevine/Downloads/3Sec.aif" results in garbage (with or without the word audioClip).
Edit: The player object works programmatically:
start player "Player"
...that plays the referenced file properly. It's the imported file that doesn't play. I'm attaching that file to this post. Perhaps someone might test it and let me know if it plays in your stack. Thanks!
- Attachments
-
- Tick.aif.zip
- (30.82 KiB) Downloaded 227 times
Last edited by rumplestiltskin on Fri May 03, 2013 6:47 am, edited 1 time in total.
Re: Audio plays only static/hiss
Hi Barry,
It's:
set fileName of player "myPlayer" to "/Users/blevine/Downloads/3Sec.aif"
start player "myPlayer"
Simon
It's:
set fileName of player "myPlayer" to "/Users/blevine/Downloads/3Sec.aif"
start player "myPlayer"
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Audio plays only static/hiss
Hi Barry,
it seems to be a sampling problem, not all AIFs are equal.
I used and converted your aif to
and that works.
Other settings might work also but you would have to try.
Kind regards
Bernd
it seems to be a sampling problem, not all AIFs are equal.
I used and converted your aif to
and that works.
Other settings might work also but you would have to try.
Kind regards
Bernd
-
- Posts: 223
- Joined: Wed Jun 21, 2006 7:33 pm
- Contact:
Re: Audio plays only static/hiss
Yep; looks like all I had to do was use the 16 bit. I may have set it to 24 bit during an earlier export unrelated to what I was doing with LiveCode and it "stuck" there. Thanks so much for your help!
Barry
Barry
Re: Audio plays only static/hiss
Hi Barry,
Livecode is VERY picky when it come to "play ac XYZ"!
Use a player object whereever possible!
One of the stretch goals of the Kickstarter Project was an overhaul of the multimedia engine,
lets hope they will implement that very soon!
Hint:
For these low quality sounds you can also use the AU format, which plays fine with "play ac XYZ"!
Use 8 or 16 bit sample size and 11.025, 22.050 or 44.100 sample rate.
Files are quite small, too!
Best
Klaus
Livecode is VERY picky when it come to "play ac XYZ"!
Use a player object whereever possible!
One of the stretch goals of the Kickstarter Project was an overhaul of the multimedia engine,
lets hope they will implement that very soon!
Hint:
For these low quality sounds you can also use the AU format, which plays fine with "play ac XYZ"!
Use 8 or 16 bit sample size and 11.025, 22.050 or 44.100 sample rate.
Files are quite small, too!
Best
Klaus
-
- Posts: 223
- Joined: Wed Jun 21, 2006 7:33 pm
- Contact:
Re: Audio plays only static/hiss
Will those work in Windows and iOS apps, as well?Klaus wrote:{snip}...
Hint:
For these low quality sounds you can also use the AU format, which plays fine with "play ac XYZ"!
Use 8 or 16 bit sample size and 11.025, 22.050 or 44.100 sample rate.
Files are quite small, too!...{snip}
Thanks,
Barry
Re: Audio plays only static/hiss
I stick with the player object and mp3.
Everything plays mp3 now.
Simon
Everything plays mp3 now.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Audio plays only static/hiss
Hi Barry,
But not on iOS, since Livecode on iOS does not support internal sounds anyway!
No idea if iOS will play AU files at all, sorry.
Best
Klaus
yes, AU will also "play" well on Windows!rumplestiltskin wrote:Will those work in Windows and iOS apps, as well?Klaus wrote:{snip}...
Hint:
For these low quality sounds you can also use the AU format, which plays fine with "play ac XYZ"!
Use 8 or 16 bit sample size and 11.025, 22.050 or 44.100 sample rate.
Files are quite small, too!...{snip}
But not on iOS, since Livecode on iOS does not support internal sounds anyway!

No idea if iOS will play AU files at all, sorry.
Best
Klaus