Slick Forums

Discuss the Slick 2D Library
It is currently Sun Oct 20, 2019 5:37 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Feb 24, 2012 3:37 pm 
Offline
User avatar

Joined: Mon Jun 20, 2011 4:28 pm
Posts: 71
Code:
SoundStore.get().setSoundVolume(0.3f);
snd.playAsSoundEffect(1.0f, 0.3f, false);

Works. It's not as loud as normal.


Code:
SoundStore.get().setMusicVolume(0.3f);
snd.playAsMusic(1.0f, 0.3f, false);

Doesn't work, no effect, full volume.


Top
 Profile  
 
PostPosted: Fri Feb 24, 2012 3:43 pm 
Offline
User avatar

Joined: Mon Jun 20, 2011 4:28 pm
Posts: 71
Code:
snd.playAsMusic(1.0f, 1.0f, false);
AL10.alSourcef(SoundStore.get().getSource(0), AL10.AL_GAIN, 0.1f);

this works too


Top
 Profile  
 
PostPosted: Fri Mar 02, 2012 10:55 pm 
Offline
User avatar

Joined: Mon Jun 20, 2011 4:28 pm
Posts: 71
This again is with Slick Util.
Just in case there are code differences.


Top
 Profile  
 
PostPosted: Sun Mar 04, 2012 10:08 pm 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1482
Fixed in the development branch. Will be included in the main branch on next merge.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group