cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

Added a volume control #128

Closed nicholas-quirk closed 3 years ago

nicholas-quirk commented 10 years ago

The Audio object now has a volume property that can be set. This uses a GainNode which connects the sound asset to the destination. I think it makes sense to have this control on the same settings level as channels. This doesn't work with IE11 since it still doesn't support the Web Audio API.

The range is from 0 to 1, with the default 1 so it doesn't conflict with the current release.

JaredSartin commented 7 years ago

This would be great to merge. Could we get the conflicts resolved and get it in?