Hi,
Attached is a very small library which generates the standard 'click' sounds as defined by the AudioManager in Android from API 1.
It is very simple to use.
Then to use its;
The value passed is a float with a value from 0 to 1 (50% vol in the above example).
It uses the 'System Stream' to send the sound, this stream is the stream for system sounds. The system volume in settings will set the max, so if you pass a value of 1 (100%) but the system volume is set at 1 (on a scale of 1 to 7) then the output sound level will be approx 14%.
There 9 different sound effects defined in the API,
Standard
Click
NavUp
NavDown
NavLeft
NavRight
Return
SpaceBar
Delete
On my phone (HTC Desire) the 4 Nav sounds and the Click sounds are the same.
Attached is a small demo program.
Attached is a very small library which generates the standard 'click' sounds as defined by the AudioManager in Android from API 1.
It is very simple to use.
B4X:
Dim myclick As esClickSound
myclick.Initialize
B4X:
myclick.standardFx(0.5)
It uses the 'System Stream' to send the sound, this stream is the stream for system sounds. The system volume in settings will set the max, so if you pass a value of 1 (100%) but the system volume is set at 1 (on a scale of 1 to 7) then the output sound level will be approx 14%.
There 9 different sound effects defined in the API,
Standard
Click
NavUp
NavDown
NavLeft
NavRight
Return
SpaceBar
Delete
On my phone (HTC Desire) the 4 Nav sounds and the Click sounds are the same.
Attached is a small demo program.