Skip to content

About audio output(StelAudioMgr) #3360

Closed Answered by gzotti
Fuyuko-SFA asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, Thank you @gzotti

I moved mp3 from "C:\Program Files (x86)\Stellarium\work" to "C:\Users\Fuyuko\AppData\Roaming\Stellarium\work" Then I modified the AudioTest.ssc as under:

StelAudioMgr.loadSound("C:\Users\Fuyuko\AppData\Roaming\Stellarium\work\Neighing_horse.mp3", "Horse");

Absolute path names are forbidden for reasons of security.
Place the MP3 into C:\Users\Fuyuko\AppData\Roaming\Stellarium\scripts\work, then try
StelAudioMgr.loadSound("work/Neighing_horse.mp3", "Horse");

If that does not work, try our officially supported call by the core object which we use in our audiotest.ssc:

core.loadSound("work/Neighing_horse.mp3", "Horse");

StelAudioMgr.playSound("Horse");

But this c…

Replies: 12 comments 17 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gzotti
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@gzotti
Comment options

@ImmersiveTheatres
Comment options

@alex-w
Comment options

@gzotti
Comment options

@alex-w
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alex-w
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@ImmersiveTheatres
Comment options

@ImmersiveTheatres
Comment options

@gzotti
Comment options

@ImmersiveTheatres
Comment options

@gzotti
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants