Coder Social home page Coder Social logo

MP3 volume too loud about soundux HOT 4 CLOSED

soundux avatar soundux commented on May 11, 2024
MP3 volume too loud

from soundux.

Comments (4)

D3SOX avatar D3SOX commented on May 11, 2024

Hi,

I'm already aware of issues with the volume.
The thing is that paplay which I use to play wav and ogg files has a parameter to set the volume. I tried it for mpg123 which I use for mp3 but it didn't work out.

So the volume slider currently adjusts the volume of the output stream. That's not reliable because it get's reset when you play another sound. I may switch the library to play mp3 but I didn't find any good comparable alternative. (I thought about VLC but I don't like having VLC as a dependency)

from soundux.

Tibladar avatar Tibladar commented on May 11, 2024

mpg123 has a -f flag which seems to change the volume (taken from mpg123 --help)
-f n change scalefactor [32768]
so mpg123 -f -1000 440Hz-5sec.mp3 plays the file much quieter.

from soundux.

D3SOX avatar D3SOX commented on May 11, 2024

mpg123 has a -f flag which seems to change the volume (taken from mpg123 --help)
-f n change scalefactor [32768]
so mpg123 -f -1000 440Hz-5sec.mp3 plays the file much quieter.

I already know about this flag but it doesn't change the volume of the output stream. It just plays that sound with the given volume. So it would not be possible to change the volume while a sound is playing with the current logic.

It is actually already implemented with the -f parameter. If I'm gonna use this I need to do a workaround which I don't like.

I see that in mpg123 100% volume is 32768 rather than 65536 so exactly half of the value which is default in pulseaudio.
I disabled the volume slider while playing sounds and divided the volume for mpg123 by 2. That should fix your issue for now.

from soundux.

Tibladar avatar Tibladar commented on May 11, 2024

mp3 files are now played normally. Thanks!

from soundux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.