Mark Hurst Posted December 11, 2014 Share Posted December 11, 2014 I note there are sound functions but the only way I can see to change the volume of a sound would be to load a several files of the same sound with different volumes. Have I got this right? Is there any chance a volume parameter can be added? (I am not familiar with the underlying Windows sound functions so I am making an assumption that there is another way to control a sound's volume.) MarkH Link to comment Share on other sites More sharing options...
Corjan Posted December 12, 2014 Share Posted December 12, 2014 I note there are sound functions but he only way can see to change the volume of a sound would be to load a several files of the same sound with different volumes. Have I got this right? Is there any chance a volume parameter can be added? (I am not familiar with the underlying Windows sound functions so I am making an assumption that there is another way to control a sound's volume.) Good idea! I quickly checked, and it seems to be possible to set the volume for a specific sound clip. I guess adding a new API function like ¨sound_set_volume(sound_id, volume)¨ could be added. We will try to add this functionality in the next iteration of Air Manager (2.1). Please note that it might take some time before we finish Air Manager 2.1, since we are focussing on the iPad version first. Greetings Corjan Link to comment Share on other sites More sharing options...
Mark Hurst Posted December 12, 2014 Author Share Posted December 12, 2014 I guess adding a new API function like ¨sound_set_volume(sound_id, volume)¨ could be added Or maybe adding a parameter to the 'play' functions? I am thinking that if you have to call 'play' first and then set the volume, it will always start at the volume hard-coded into the WAV file. So it may not be possible, for example, to fade in a sound. No worries with the timing, I have an iPad too ;) MarkH Link to comment Share on other sites More sharing options...
LNRalph Posted December 13, 2014 Share Posted December 13, 2014 If you keep the functions separated, you're more flexible. That way you can for example set the volume of a device, a GPS for example. When the function can also set the volume for a group, it's even easier. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.