Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a setting to enable mono playback. #59

Open
wants to merge 1,397 commits into
base: master
Choose a base branch
from

Conversation

mvdkwast
Copy link

@mvdkwast mvdkwast commented Dec 3, 2013

This adds a setting to the audio preferences that allows for mono playback. This is useful when you only have one speaker, which would normally cause the content of the right track to be lost.

recursive-rat4 and others added 30 commits May 19, 2013 18:51
TODO:
* Port lastfm password without adding the property to PraghaPreferences.
* So, not save it in memory. Only search when necessary.
* Maybe save the hexadecimal characters to hide the password.
TODO: Remove control of password when uptate now playing.
matiasdelellis and others added 26 commits November 7, 2013 12:24
Before, When update the library, and add external files breaking pragha!.
Nobody notice???? ¬¬
Before, When update the library, and add external files breaking pragha!.
Nobody notice???? ¬¬
I almost went crazy thinking that there was something wrong with the latest patches!.
In resume, when the playlist ends, returns to play but completely random!. No repeats previous playlist!.
I almost went crazy thinking that there was something wrong with the latest patches!.
In resume, when the playlist ends, returns to play but completely random!. No repeats previous playlist!.
@matiasdelellis
Copy link
Contributor

Hi @mvdkwast
First, thanks for helping!. =)

But a doubt .. When is necessary use mono?.
Because a speaker is broke? or is there any real application?.
Correct me if I'm wrong.. but currently mono soundcards are not used.. No?.

If you have a stereo soundcard and want to use a single speaker would be more interesting use audioparonama and merge it within the equalizer... (You can get the same directly on pulseaudio.. haha)

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-audiopanorama.html

p.s: Another thing, be careful with the use of tabs and spaces.. and avoid adding comnits that are not relevant to your pull request!. 😅

@mvdkwast
Copy link
Author

mvdkwast commented Dec 3, 2013

Hi,

The mono option is useful when you want to listen to music on a guitar
amplifier, to practice for instance. Especially some older albums have
instruments hard-panned to one side, which means that sometimes you won't
hear the solo you want to practice ! Another usecase is that if you have
two speakers that aren't placed nicely aournd the listeners (for lack of
space for instance), mono can sound better than stereo.

Mixing left and right to mono is not the same thing as panning the signal
to one side which looses part of the signal, and silences a speaker if you
have two, so audiopanorama is not an option. I was tired of routing pragha
through jackd just to achieve mono sound, and after checking a few players
I didn't find any that was so fast and had a library, so I decided to take
a look at the source.

I'm not sure the equalizer would be the best place to toggle between mono
and stereo because it requires a restart as implemented now, so better keep
the audio options together (or implement hot audio restarting, which seems
a lot of work for not so much benefit), Also, if you think this option is
too much of a niche, by all means leave it out, and keep pragha as lean and
mean as it is now :)

Sorry for the commit mess, I'm not very used to git and did not find how to
revert those commits to clean them up !

On Tue, Dec 3, 2013 at 9:48 PM, matiasdelellis [email protected]:

Hi @mvdkwast https://github.com/mvdkwast
First, thanks for helping!. =)

But a doubt .. When is necessary use mono?.
Because a speaker is broke? or is there any real application?.
Correct me if I'm wrong.. but currently mono soundcards are not used..
No?.

If you have a stereo soundcard and want to use a single speaker would be
more interesting use audioparonama and merge it within the equalizer...
(You can get the same directly on pulseaudio.. haha)

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-audiopanorama.html

p.s: Another thing, be careful with the use of tabs and spaces.. and avoid
adding comnits that are not relevant to your pull request!. [image:
😅]


Reply to this email directly or view it on GitHubhttps://github.com//pull/59#issuecomment-29749715
.

@matiasdelellis
Copy link
Contributor

The mono option is useful when you want to listen to music on a guitar amplifier, to practice for instance. Especially some older albums have instruments hard-panned to one side, which means that sometimes you won't hear the solo you want to practice ! Another usecase is that if you have two speakers that aren't placed nicely aournd the listeners (for lack of space for instance), mono can sound better than stereo.

Ohh.. Ok.. This is a real application where it can be useful.. 😊

Sorry for the commit mess, I'm not very used to git and did not find how to revert those commits to clean them up !

Do not worry..

Well .. It really is not an intrusive change .. So I invite you to continue working .. 😉

@matiasdelellis
Copy link
Contributor

ps: Makes all changes based on master!. Not from 1.2, because I will not add functionality there..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants