Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: jedione on August 25, 2019, 11:17:39 AM
-
any one konw what the diffrence is with sound in the options
sound Vs ambient sound ?
and how would you separate the two in a theme
so the music can be low in the background, with clicking and other sopunds at full 100%
thanks
-
<a name="ambient_sound" />
#### `fe.ambient_sound` ####
`fe.ambient_sound` is an instance of the `fe.Sound` class and can be used to
control the ambient sound track.
never seen any one use-sing this, guess ill give it a try..
-
dont seem like it is working! sucks...
local mysong = fe.ambient_sound("music/01_Phantasy.mp3");
mysong.loop = false;
mysong.playing = true;
-
dont seem like it is working! sucks...
local mysong = fe.ambient_sound("music/01_Phantasy.mp3");
mysong.loop = false;
mysong.playing = true;
Try it like this:
fe.ambient_sound.file_name = 01_Phantasy.mp3;
fe.ambient_sound.playing=true;
-
What is the difference between this code:
fe.ambient_sound.file_name = 01_Phantasy.mp3;
fe.ambient_sound.playing=true;
and this one?
local bgsound = fe.add_sound ("01_Phantasy.mp3")
bgsound.playing = true
-
Try it like this:
fe.ambient_sound.file_name = 01_Phantasy.mp3;
fe.ambient_sound.playing=true;
that through a error, changed to this ,, and now working
so thank you for that qplayer :)
fe.ambient_sound.file_name = ("music/01_Phantasy.mp3");
fe.ambient_sound.playing=true;
i am using this in a new theme dont want the music to overpower...
-
well interesting enough when the ambient code is invoked,,,
it the will follow you back out of theme, to displays menu, and in to other themes...
somewhat of a master player for AM, now i understand,,, solved
-
What is the difference between this code:
fe.ambient_sound.file_name = 01_Phantasy.mp3;
fe.ambient_sound.playing=true;
and this one?
local bgsound = fe.add_sound ("01_Phantasy.mp3")
bgsound.playing = true
No idea how they differ in execution. But AM does have a distinct call for ambient.sound so should have some differences as compared to normal sound.
ps: nvm as Jeidone pointed out its consistent and works throughout AM
-
solved thanks.....
-
is there any way to have this play an m3u file that points to a radio staton