chipweinberger / flutter_pcm_sound

A flutter plugin for playing raw PCM audio data (16-bit integer)
Other
10 stars 6 forks source link

How to change the volume? #14

Closed cool2apps closed 4 weeks ago

cool2apps commented 1 month ago

Hello, Is it possible to change the volume of the sound that generated? I found a workaround with another package called volume_controller. But It is not a good solution. Because I need to change the system volume level with this package. And users may not like this method.

chipweinberger commented 1 month ago

you cant change system volume.

but you can reduce volume by multiplying all numbers by 0.5x, etc.

cool2apps commented 1 month ago

you cant change system volume.

but you can reduce volume by multiplying all numbers by 0.5x, etc.

Second method is better. Multiplying by will change the volume level linearly? Can I have 10% or 50% volume level by multiplying by 0.1x or 0.5x?

chipweinberger commented 4 weeks ago

yup

cool2apps commented 4 weeks ago

thanks for help.