Where do I find imported audio files?

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

Post Reply
Francesco77
Posts: 40
Joined: Mon Nov 16, 2020 8:16 pm

Where do I find imported audio files?

Post by Francesco77 » Thu Jan 07, 2021 4:01 pm

I have imported two audio files (one in MP3- and the other in WAV-format) via File - Import as control.

Now I wonder where these audio files are stored in my LC-project.
I had expected to find them somewhere within the project browser but I cannot find them.

In contrast to image files (imported the same way) audio files seem not to appear on the card which is on top when importing.
What was my mistake and how should it be done right?

Thanks for your help.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Where do I find imported audio files?

Post by jmburnod » Thu Jan 07, 2021 4:15 pm

I never use audio clip and i just test it and it work here
They is in a new folder "Audioclip" in Project browser here (OSX 10.14.6 LC 9.6.1
Best regards and good luck
Jean-Marc
Last edited by jmburnod on Thu Jan 07, 2021 5:27 pm, edited 1 time in total.
https://alternatic.ch

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

Re: Where do I find imported audio files?

Post by Klaus » Thu Jan 07, 2021 4:25 pm

Hi Francesco77,

audioclips and videoclips are imported GLOBALLY into the stack.
That is why you don't need to specify where a audioclip may reside:

Code: Select all

play ac "name of clip.au"
does the trick. So you are doing nothing wrong!

If they do not appear in the Project Browser, you can set this somewhere in the preferences.


Best

Klaus

Francesco77
Posts: 40
Joined: Mon Nov 16, 2020 8:16 pm

Re: Where do I find imported audio files?

Post by Francesco77 » Fri Jan 08, 2021 9:28 am

Thanks for you help :D

I found that I had to restart LC to see the audio-folder in the project browser (Win10 LC Build 15530).

This is very helpful because I will use a lot of different audio clips in my project and it's not easy to keep all the different names in mind :wink:

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: Where do I find imported audio files?

Post by AndyP » Fri Jan 08, 2021 10:22 am

Hi Francesco77,

The project browser is one to to keep an eye on as it is prone to not refreshing when stack changes are made.
You can toggle the project browser off and on from the Tools menu to initiate a refresh.
Andy .... LC CLASSIC ROCKS!

Francesco77
Posts: 40
Joined: Mon Nov 16, 2020 8:16 pm

Re: Where do I find imported audio files?

Post by Francesco77 » Fri Jan 08, 2021 3:13 pm

Klaus wrote:
Thu Jan 07, 2021 4:25 pm
...

Code: Select all

play ac "name of clip.au"
does the trick. ...
...
Hi Klaus and thanks for your explanations.

I tried

Code: Select all

play ac "name of clip.au"

and found that this command works fine with the *wav audio file but not with the *.mp3 file.

Unfortunately when playing the mp3 file only some static noise comes out of the speakers.
Playing the same file via the media player widget works without problems. So it seems that the "play" command tries to play the clip in another way than the media player widget.

I wonder if the reason lies in the mp3 subformat of this special file or if it is wise to use the mp3 format at all.

If you would like to have a look at the file: I have attached it to this post.
wb_positiv01b.zip
zipped mp3 file
(9.01 KiB) Downloaded 223 times

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

Re: Where do I find imported audio files?

Post by Klaus » Fri Jan 08, 2021 3:34 pm

Buongiorno Francesco77,

you are doing nothing wrong! :D

The PLAY command (on desktop) is a "leftover" from the early days of LC.
It ONLY supports UNCOMPRESSED WAV and AIF files and the (compressed by nature) AU format.

For any other format use the player object (this is NO widget btw. 8) )
But that will only work with external/referenced files however.


Best

Klaus

Post Reply