You are not logged in.

#551 2011-12-29 14:54:47

broi
Member
From: Bosnia & Herzegovina
Registered: 2011-12-10
Posts: 127

Re: A new lightweight music manager

PhotonX wrote:

Just a remark, I think you shouldn't call make with sudo, just make install.

Thanks for advice, I tried without sudo but it wont install:

make install
Making install in po
make[1]: Entering directory `/home/ibrahim/Downloads/pragha-0.8.10/po'
if test -r ".././mkinstalldirs"; then \
  .././mkinstalldirs /usr/local/share; \
else \
  /bin/sh ../mkinstalldirs /usr/local/share; \
fi
/bin/install: cannot create regular file `/usr/local/share/locale/cs/LC_MESSAGES/pragha.mo': Permission denied
installing cs.gmo as /usr/local/share/locale/cs/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/de/LC_MESSAGES/pragha.mo': Permission denied
installing de.gmo as /usr/local/share/locale/de/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/es/LC_MESSAGES/pragha.mo': Permission denied
installing es.gmo as /usr/local/share/locale/es/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/el/LC_MESSAGES/pragha.mo': Permission denied
installing el.gmo as /usr/local/share/locale/el/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/fr/LC_MESSAGES/pragha.mo': Permission denied
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/hu/LC_MESSAGES/pragha.mo': Permission denied
installing hu.gmo as /usr/local/share/locale/hu/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/ja/LC_MESSAGES/pragha.mo': Permission denied
installing ja.gmo as /usr/local/share/locale/ja/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/nl/LC_MESSAGES/pragha.mo': Permission denied
installing nl.gmo as /usr/local/share/locale/nl/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/no/LC_MESSAGES/pragha.mo': Permission denied
installing no.gmo as /usr/local/share/locale/no/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/pl/LC_MESSAGES/pragha.mo': Permission denied
installing pl.gmo as /usr/local/share/locale/pl/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/pt/LC_MESSAGES/pragha.mo': Permission denied
installing pt.gmo as /usr/local/share/locale/pt/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/pt_BR/LC_MESSAGES/pragha.mo': Permission denied
installing pt_BR.gmo as /usr/local/share/locale/pt_BR/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/ru/LC_MESSAGES/pragha.mo': Permission denied
installing ru.gmo as /usr/local/share/locale/ru/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/sv/LC_MESSAGES/pragha.mo': Permission denied
installing sv.gmo as /usr/local/share/locale/sv/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/tr/LC_MESSAGES/pragha.mo': Permission denied
installing tr.gmo as /usr/local/share/locale/tr/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/uk/LC_MESSAGES/pragha.mo': Permission denied
installing uk.gmo as /usr/local/share/locale/uk/LC_MESSAGES/pragha.mo
/bin/install: cannot create regular file `/usr/local/share/locale/zh_CN/LC_MESSAGES/pragha.mo': Permission denied
installing zh_CN.gmo as /usr/local/share/locale/zh_CN/LC_MESSAGES/pragha.mo
if test "pragha" = "glib"; then \
  if test -r ".././mkinstalldirs"; then \
    .././mkinstalldirs /usr/local/share/glib-2.0/gettext/po; \
  else \
    /bin/sh ../mkinstalldirs /usr/local/share/glib-2.0/gettext/po; \
  fi; \
  /bin/install -c -m 644 ./Makefile.in.in \
                  /usr/local/share/glib-2.0/gettext/po/Makefile.in.in; \
else \
  : ; \
fi
make[1]: Leaving directory `/home/ibrahim/Downloads/pragha-0.8.10/po'
Making install in src
make[1]: Entering directory `/home/ibrahim/Downloads/pragha-0.8.10/src'
make[2]: Entering directory `/home/ibrahim/Downloads/pragha-0.8.10/src'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /bin/sh ../libtool   --mode=install /bin/install -c pragha '/usr/local/bin'
libtool: install: /bin/install -c pragha /usr/local/bin/pragha
/bin/install: cannot create regular file `/usr/local/bin/pragha': Permission denied
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory `/home/ibrahim/Downloads/pragha-0.8.10/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/ibrahim/Downloads/pragha-0.8.10/src'
make: *** [install-recursive] Error 1

As u can see, many stuff is "Permission Denied" and at the end it's not installed..

Offline

#552 2011-12-29 21:27:56

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 605

Re: A new lightweight music manager

That's what I said, call "make" without sudo but "make install" with sudo. smile


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#553 2011-12-30 14:40:24

broi
Member
From: Bosnia & Herzegovina
Registered: 2011-12-10
Posts: 127

Re: A new lightweight music manager

PhotonX wrote:

That's what I said, call "make" without sudo but "make install" with sudo. smile

Ahh, OK big_smile Sorry ma bad.

Offline

#554 2012-01-25 13:45:44

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

Hi, smile
Yesterday I was doing a couple of test of memory consumption..

http://code.google.com/p/dissonance/wik … ersPlayers

Let each one draw their own conclusions. wink
... and every opinion is welcome.

Regards.

ps: After 4 months (Woow.. too much), the next weekend release Pragha 1.0 and 0.8.11RC

Offline

#555 2012-01-25 15:35:35

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: A new lightweight music manager

msdelos wrote:

Hi, smile
Yesterday I was doing a couple of test of memory consumption..

http://code.google.com/p/dissonance/wik … ersPlayers

Let each one draw their own conclusions. wink
... and every opinion is welcome.

Regards.

ps: After 4 months (Woow.. too much), the next weekend release Pragha 1.0 and 0.8.11RC

Nice comparison! How about testing "Goggles Music Manager" (gogglesmm in community) as well? big_smile

Offline

#556 2012-01-25 16:31:03

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: A new lightweight music manager

msdelos wrote:

Hi, smile
Yesterday I was doing a couple of test of memory consumption..

http://code.google.com/p/dissonance/wik … ersPlayers

Let each one draw their own conclusions. wink
... and every opinion is welcome.

It was a very unscientific comparison tongue

I think a better method would be to do the memory test individually, instead of opening all the applications together. Also, don't have any other unnecessary application running, such as soffice.bin etc.

GogglesGuy wrote:

Nice comparison! How about testing "Goggles Music Manager" (gogglesmm in community) as well? big_smile

+1

Offline

#557 2012-01-26 00:54:58

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

Yes GogglesGuy..
Some time want to test gogglesmm, but can not find fox packages for fedora. I'll try to compile by hand. wink

It was a very unscientific comparison?? Yesss... smile
Wanted to do it only for compare consonance with pragha, and finally add the rest.. haha..

I found more interesting to watch all the players at the same time, to avoid differences for different uses of cpu, mem,  in the system.

About the rest of the applications, on the contrary, I saw very interesting.
Justly LibreOffice Writer that occupying only 88 MB (Verified with xfce4-taskmanager),  weighs less than many players and is on par with pragha, it is very curious. It seems that the guys from Libreoffice, did very well.. No?.

The biggest problem with these comparisons are the libraries/services used by applications on desktops strangers, but this script shows the results of the memory used by each program, regardless of libraries/services used.

Thus, for example looking the case of amarok, then display only the consumption of the application, but charge amarok on xfce involves loading kde4d, kio_http, kio_file, etc etc. .. but also, using amarok on kde, will consume the same 300mb used in xfce independently of the graphical environment used. Corroborated. wink

Regards.

p.s:. I also like to make an analysis of the consumption of cpu, etc, but is much more relative. This comparison is simple, but very real. wink

Offline

#558 2012-02-02 04:18:36

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

Hi, wink

Well.. Two little things.

First:
Tested gogglesmm, and the result is:

 Private  +   Shared  =  RAM used	Program 
 6.7 MiB + 544.0 KiB =   7.2 MiB	gogglesmm (When open)
19.2 MiB + 527.0 KiB =  19.7 MiB	gogglesmm (Analized library)
22.1 MiB +   1.7 MiB =  23.8 MiB	gogglesmm (Playing a track)

Congratulations GogglesGuy. Is an excellent player and will take a couple of ideas for pragha. wink

Second:
Finally .. and after 4 months.. Pragha 1.0.

Full Changelog and tarball here: http://code.google.com/p/dissonance/dow … .0.tar.bz2 smile

Tomorrow make a bit more promotion.
Good night.

Offline

#559 2012-02-02 15:37:28

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

Well..
Also it was time to update the 0.8.* series. wink (For those who do not know... is the series that maintains the same audio engine that consonance)

Pragha 0.8.11rc1
Promised bug fixes only? Here are all the changes since 0.8.10..

News:
    Add rename playlists option.
    Backport jump to track (Search, jump and queue) dialog.
    Add a new popup menu with "New playlist" and a list of saved playlist to "Save playlist" like the "Add selection" popup.
    Also append boths pupups submenus to main menu.
    Implement "Show controls below" option in menu.
    Better session managament support when exo-1 >= 0.6 is abiable.
    * Now save current playlist when save session.
    * Now save last posicion when save session.
    * etc, etc, etc..
    Now use libglyr to search lyrics, cover art, and artist info if available. [1]
    Use the cache of libglyr to save the downloaded artist info and lyrics in a Metadata.db file.

Others Changes:
    Add basic Static Quicklist entries on deskton file to control pragha on unity.
    Emit new metadata when edit tag of current track.
    Add playlists mime on desktop file.
    Update notifications instead of show one for each song change.
    Can open playlists with relative paths.
    When playback is stopped and no has selected any track, play a random track if shuffle has activated.
    Edit tags when double click on track label of panel.
    Open the image when double click on the cover in the panel.
    Also remeber window position when restart pragha. Thanks to carlosjosepita.
    Grab focus on current playlist when press Up or Down and move between controls with Left or Right.
    Adds some debug messages in mpris.
       
Bugs fixed:
    Fix add files with command line.
    Add playlists mime on desktop file.
    Coordinate Pragha when the window manager unfullscreen the window.
    Comfirm with an dialog before delete any playlist item.
    Save the m3u playlists with relative paths when stored in the same directory that the audio files.
    Init the threads conditionally depending on the version of glibc, removing g_thread_init deprecated in 2.31.
    Remove unused code, that remove g_strncasecmp deprecated function.
    Use some un/likely ompimiizations.
    Init with focus on play button.
    Properly set "Save playlist" or "Save selection" in save dialogs.
    Fix a segfault when close pragha.
    Fix Main toolbar items use GTK_ICON_SIZE_LARGE_TOOLBAR, volume button uses _SMALL_TOOLBAR.
    Set width of queue/pixbuf column fixed to 32px. Set queue bubble size fixed to 12px.
    Better initiation of variables that establish the current status.
    Fix pragha freezes when select a playlist with mpris2.
    Even emit _("Playlists") like current playlist in mpri2.
    Fix show all options when use any commands line option.
    Allow to use relative paths to add files with command line.
    D'Oh!. Not can edit multiple files from the library, Since whe
    Reduce padding on playlist view, leave this for the GTK+ theme to figure out.
    Select the next row to the last selected when remove tracks in current playlist.
    Not use small markup to queue string.
    Not sensitive "osd in systray" option if libnotify >= 0.7.0.
    No sensitive the "Add action in OSD" option when the notification daemon no support it.
    D'Oh!. Now keybinder is fully optional
    Tiny reorganization of the menu.
    No change model when crop and remove in current playlist.
    Use key-press-event instead key_press_event.
    Remove all extraneous spaces in mpris.c
    Fixs bad array of string in mpris metadata when string has apostrophes.
    Fixes two segmentation faults when use ubuntu soundmenu and pragha has not playlists.
    Remove all extraneous spaces in mpris.c
    Fix bad folder estucture view entries because a bad conversion of filnames to UTF.
    Fix that not add duplicated songs in library view.
    Use strlen to test NULL strings.
    Use some G_LIKELY omptimitations.
    Fix/Change somes strings.
    Fixes some memory leaks.
   
Updates Translations:
    Add Italian translation thanks to Stribianese91.
    Update German translation thanks to Cwickert.
    Update Rusian translation thanks to lazy.kent.suse.
    Update Portuguese translation thanks to smarquespt.
    Sorry if I lost any translation. Transifex does not show the entire history. Please. Contact me.

[1] https://github.com/sahib/glyr:
Is a very new library, an the author defines it as "GlyR is a searchengine for musicrelated metadata"
Many thanks to Chris for writing to me, offering his library when asked for a alternative to chartyrics.

Wooooww..  smile

Offline

#560 2012-02-02 21:25:11

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: A new lightweight music manager

msdelos wrote:

Hi, wink

Well.. Two little things.

First:
Tested gogglesmm, and the result is:

 Private  +   Shared  =  RAM used	Program 
 6.7 MiB + 544.0 KiB =   7.2 MiB	gogglesmm (When open)
19.2 MiB + 527.0 KiB =  19.7 MiB	gogglesmm (Analized library)
22.1 MiB +   1.7 MiB =  23.8 MiB	gogglesmm (Playing a track)

Congratulations GogglesGuy. Is an excellent player and will take a couple of ideas for pragha. wink

Thanks for testing! Doesn't look too bad at all smile

Offline

#561 2012-03-02 01:17:12

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

Hello list..
Finaly add pragha to github..

This is new for me. So please have patience .. smile But hopefully good results.
I do not know ... But mostly I hope more participation.

EDIT:
p.s.: You can see/add issue/comment/commits/¿?. . . here: https://github.com/matiasdelellis

Regards..

Last edited by msdelos (2012-03-02 01:50:35)

Offline

#562 2012-03-12 02:16:24

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

Hello,

Pragha 1.0.1
https://github.com/matiasdelellis/pragha/downloads

News:
    Add Get lyrics, Get artist info to the selection on current playlist.
    Add Love, Unlove, and Get similar options to the selection on current playlist.
    Add an icon in the panel to suggest tag corrections of lastfm when update now_playing. [1]

Others Changes:
    Add tootips to show equalizer bands values.
    Select last track when append new songs.
    Also append radios when restore session.
    Append Hz, kbps, and Channels string to file properties dialog.
    Check status of network manager when launch pragha. If is online, init lastfm, otherwise wait 30 seconds.
    Remove search album art option in menu. Any objection..? I never use it.
    Only search covers art in lastfm temporarily. Returns better results.

Bugs fixed:
    Fix search album art option is always enabled.
    Not jump to the next song when have selected several songs.
    Grab focus on entry name when save playlist and save when press enter.
    D'Oh!. Use mpris:artUrl instead xesam:art, and emit a full uri format.
    Add a playlist_change flag to avoid errors when remove the model to gain speed.
    Also set busy cursor when add similar song, clear/crop current playlist, or import/export playlist.
    Always show "Custom" presset on equalizer on error.
    Fix frizee when buffering internet radios.
    Inform stop playback to mpris2 when close pragha.
    Save preferences changes when pressing enter.
    Update some years copyright.
    Never add duplicate songs.
    D'Oh!. Fix never add songs of the lasts page of favorites songs.
    Fix some warnings when first init.
    Set disable when first usage of equlizaser.
    Better function to search song on db with only the artist and title info.
    Use more generic functions to remove some duplicate code.
    Romove some unused code.

Updates Translations:
    Fix Bad space on message of error playback dialog.
    Update German translation thanks to Cwickert.
    Update Portuguese translation thanks to smarquespt.
    Update Italian translation thanks to bersil.
    Update Rusian translation thanks to lazy.kent.suse.

[1] Note: For this, depend now on libclastfm >= 0.5. Sorry packagers.

Thanks for all.

Offline

#563 2012-03-13 06:29:50

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: A new lightweight music manager

To author:

1. I have these alsa devices:

~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
hdspDmixer
    hdspDmixer
hdsp
    hdsp
default
    Default Pulse Device
sysdefault:CARD=Intel
    HDA Intel, ALC887 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC887 Digital
    IEC958 (S/PDIF) Digital Audio Output
sysdefault:CARD=DSP
    Hammerfall DSP, RME Hammerfall HDSP 9632
    Default Audio Device

When I set alsa device 'hdsp' a playing back still takes place through default (hda pulse) device. At next configuration dialog opening device string is empty.

2. Can you, please, describe current player state in relation with these two competitor's issues (one of last ones is fixed):

http://code.google.com/p/clementine-pla … il?id=2111
http://code.google.com/p/clementine-pla … il?id=2114

These issues are common for almost all players, and I hope it isn't offensive I have placed these links here, is it? smile

Last edited by student975 (2012-03-13 07:43:36)


"I exist" is the best myth I know..

Offline

#564 2012-03-13 16:11:10

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

Hi student975,

All comments are always welcome. wink

First of all.
Which player are using?. Pragha 0.8.*/Consonance or Pragha 1.0?

About 1:
How select hdsp?
I think that both pragha as consonance only support hardware addresses like "hw:1,0"

Here a good explanation of how to do it: http://superuser.com/a/53977

If you use Pragha 1.0, other way, more easy is select the device with gstreamer-properties, and set default in Pragha.

About first link, I prefer linear volume. if you compile with GSTREAMER_PLUGINS_BASE, set linear volume by default, On the contrary is cubic volume and therefore in db. No? I have to investigate it. Thanks for the link,

About the second link, later see it properly. smile

Regards.

Offline

#565 2012-03-13 17:15:57

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: A new lightweight music manager

msdelos,

- I'm using official arch pragha package: community/pragha 1.0-2.
- It is impossible to select needed device using 'hw' as far as the device is dmix-based.
- I haven't gstreamer-properties (and gnome) installed, and, at any case, I use different (three) cards for different purposes, and basing on default device isn't acceptable. And, as far as I know, gst hasn't any problems dealing with alsa (symbolic) devices.
- Linear volume == exponential amplitude. It is an unbreakable human hearing law. Not cubic, not any other function smile In fact that GstEnginePipeline::UpdateVolume() function is sufficient as leading rule (transforms percent of volume to hardware volume where last one has range from 0.0 to 1.0).


"I exist" is the best myth I know..

Offline

#566 2012-03-15 00:01:05

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

Sorry by the delay..

student975 wrote:

msdelos,

- I'm using official arch pragha package: community/pragha 1.0-2.

Ok.

student975 wrote:

- It is impossible to select needed device using 'hw' as far as the device is dmix-based.
- I haven't gstreamer-properties (and gnome) installed, and, at any case, I use different (three) cards for different purposes, and basing on default device isn't acceptable. And, as far as I know, gst hasn't any problems dealing with alsa (symbolic) devices.

Apology. I am investigating, but apparently not. symbolic devices should work but seems that dmix is another case. See here a bug example: https://bugzilla.gnome.org/show_bug.cgi?id=325780
According to the gstreamer documentation, the "device" property of alsasink is the ALSA device, as defined in an asound configuration file, and the default value is "default", but do not find any reference to dmix. Also alsadmixsink suggested in the bug not exists.

student975 wrote:

- Linear volume == exponential amplitude. It is an unbreakable human hearing law. Not cubic, not any other function smile In fact that GstEnginePipeline::UpdateVolume() function is sufficient as leading rule (transforms percent of volume to hardware volume where last one has range from 0.0 to 1.0).

Ok. I had doubts but you are right.
Test change any reference of GST_STREAM_VOLUME_FORMAT_CUBIC to GST_STREAM_VOLUME_FORMAT_DB in pragha-bancked.c and it should work ..

I will continue investigating tomorrow.
Regards.
Matias.

Offline

#567 2012-03-15 05:31:37

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: A new lightweight music manager

I have wrote "dmix-based". My /etc/asound.conf has this fragment:

pcm.hdspDmixer { 
    type dmix 
    ipc_key 1024
    ipc_key_add_uid false
    ipc_perm 0666
    slave { 
        pcm "hw:1,0" 
        period_time 0 
        period_size 1024 
        buffer_size 8192
        rate 44100
        format "S32_LE"
        channels 12
    }
    bindings { 
        0 10
        1 11
        10 0
        11 1
    } 
    hint {
      show on
      description "hdspDmixer"
    }
} 

ctl.hdspDmixer { 
    type hw 
    card 1 
}

pcm.hdsp { 
    type plug 
    slave.pcm "hdspDmixer" 
    hint {
      show on
      description "hdsp"
    }
} 

You see, "end-user" device here is 'hdsp'. All software (as well as also gst-based clementine) sees (and works with) this device without problems. 'aplay -L' just list available alsa devices - and ones defined in asound.conf (and in ~/.asoundrc) also.

As for volume, I wouldn't trust any external (gstreamer's here) imagination smile about correctness and would use own transformation (similar to that function - it's just few strings) using linear volume library interface.

Last edited by student975 (2012-03-15 05:52:35)


"I exist" is the best myth I know..

Offline

#568 2012-03-15 12:12:08

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

I'm honest?
You're the first person you want to use this!. wink

Well, You could compile from git?.

Now write a small patch. if you say that clementine work, pragha also should work!.

And please, test run "pragha -e 1" in a terminal, and comment any warning here. wink

Regards.

Edit: Test.

git clone git://github.com/matiasdelellis/pragha.git
cd pragha
./autogen.sh

Here see that return "Cubic volume support...............(Need gstreamer-plugins-base-devel).: Yes", to have "linear volume". Yes. I know. is not linear volume but is a good approximation.

make
./src/pragha -e 1

Last edited by msdelos (2012-03-15 13:25:52)

Offline

#569 2012-03-15 16:36:01

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: A new lightweight music manager

msdelos wrote:

And please, test run "pragha -e 1" in a terminal, and comment any warning here. wink

Thanks, I have tried git version on the place. Setting device does work (say, it does work via mentioned hdsp device), but config dialog doesn't show current configured device (while the device is written into ~/.config/pragha/config): next dialog opening has empty device field.

msdelos wrote:

but is a good approximation.

Sorry, I don't understand why we need approximation at situation when direct following to the law costs nothing (just five or so strings of code). Why we need to answer to "1 + 1 = ?" question as 1.8 or 2.3 instead of 2?  smile


"I exist" is the best myth I know..

Offline

#570 2012-03-15 17:24:05

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

Thanks to you.
As it is a feature that does not use, never I realized the error. Now in git also fix the preferences dialog.

Well..
Regarding the volumes now I'm confused.

In the Playbin2 (The heart of pragha) documentation.
The "volume" property say: Get or set the current audio stream volume. 1.0 means 100%, 0.0 means mute. This uses a linear volume scale.

Also in GstStreamVolume doc say:
This volume is always a linear factor, i.e. 0.0 is muted 1.0 is 100%. For showing the volume in a GUI it might make sense to convert it to a different format by using gst_stream_volume_convert_volume(). Volume sliders should usually use a cubic volume.

The gtk_volume_button_new widget (Used in pragha) not show any reference to the scale used, but I assumed it was cubic, and made the conversion. in the same way that rhyntombox and totem for example.

Test

git pull
./autogen.sh --disable-gstreamer-plugins-base-0.10
make

When you compiling obviate the conversion.

Offline

#571 2012-03-15 17:35:10

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: A new lightweight music manager

Yes, config dialog is fixed now, thank!

As for the volume settings. Don't use any converters form gst or any other. Use those 5 lines of code. Say, volume slider has 0-100 (integer) range. Than that conversion just works (volume_percent_ must be replaced with your slider value, vol is converted result in 0.0..1.0 range to use in setting  volume via gst API).


"I exist" is the best myth I know..

Offline

#572 2012-03-16 02:01:28

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

smile
Well.. But compiling with ./autogen.sh --disxable-gstreamer-plugins-base-0.10 & make, works as expected?

When disable gstreamer-plugins-base-0.10, pragha apply the volume directly, without converting any value.

0 < Value slider < 100
So, set volume like: (Value slider / 100) = (0.0 < volume < 1.0)

mm..
It's late. Tomorrow continue investigating what is wrong..

Regards.

Offline

#573 2012-03-16 05:03:55

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: A new lightweight music manager

msdelos wrote:

smile
Well.. But compiling with ./autogen.sh --disxable-gstreamer-plugins-base-0.10 & make, works as expected?

When disable gstreamer-plugins-base-0.10, pragha apply the volume directly, without converting any value.

0 < Value slider < 100
So, set volume like: (Value slider / 100) = (0.0 < volume < 1.0)

Yes, incorrectly as expected!! Slider's middle corresponds to -6db. So all we need now is to replace  (volume_slider / 100.0) with few strings with exponent, something like

  float vol = 0.0;
  if (slider_percent <= 0)
    vol = 0.0;
  else if (slider_percent >= 100)
    vol = 1.0;
  else {
    float db = float(slider_percent - 100) / 2.0;
    vol = pow(10.0, db / 20.0);
  }
  // use vol here

After that it would be possible to change mouse wheel step from (as I think) 4 percents to 1 or (probably more handy) 2 percents. As a result, the same percents changing will be the same for our ears at any volume point.


"I exist" is the best myth I know..

Offline

#574 2012-03-29 14:15:06

msdelos
Member
Registered: 2008-07-11
Posts: 171

Re: A new lightweight music manager

Sorry the delay student975..
This week only participate in github.. :S

I have no new news about it.. but tomorrow I'm meeting with a person who knows something about this, and I will ask an opinion..

Best Regards!.

Offline

#575 2012-03-29 20:57:13

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: A new lightweight music manager

msdelos wrote:

.. but tomorrow I'm meeting with a person who knows something about this...

You already have met a person who knows everything about it wink


"I exist" is the best myth I know..

Offline

Board footer

Powered by FluxBB