Audio.GetFilename

string Audio.GetFilename ( 

number Channel )

Example 1

audiofile = Audio.GetFilename(CHANNEL_BACKGROUND);

Gets the path to the audio file that is currently loaded in the background audio channel and stores it in the variable audiofile.

Example 2

current_song = Audio.GetFilename(CHANNEL_USER1);

Gets the path to the audio file that is currently loaded in user channel 1 and stores it in current_song.

See also:  Related Actions