You are not logged in.

#126 2008-07-11 15:47:51

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

Re: A new lightweight music manager

sacamano_m82… Thanks! XD

The application that always had wished.
I only subscribed to the list by this application although nonuse Arch (Even).

It unloads yesterday from svn, and I made a pair of modifications…

*It modifies hbox_main so that it is seen of another form… Simply an aesthetic modification and without importance...
Shot in.: http://tux-goodies.wikispaces.com/Consonance

*It tries to give to support for the transparencies rgba of murrine… but with little result… !-(

*I could compile it in hardy and fedora 9. But in Fedora I had to change the use of PCM by MASTER so that it worked correctly. So that PULSEAUDIO only leaves east audio channel of for applications alsa.


Diff Code to SVN...

 Index: src/panel.c
===================================================================
--- src/panel.c    (revisión: 585)
+++ src/panel.c    (copia de trabajo)
@@ -76,8 +76,9 @@
                   cur_pos,
                   tot_length);
 
-    gtk_progress_bar_set_text(GTK_PROGRESS_BAR(cwin->track_progress_bar), (const gchar*)str);
-
+    /*gtk_progress_bar_set_text(GTK_PROGRESS_BAR(cwin->track_progress_bar), (const gchar*)str);*/
+    gtk_label_set_text (GTK_LABEL(cwin->label_track),(const gchar*)str);
+    
     g_free(str);
     g_free(tot_length);
     g_free(cur_pos);
@@ -85,7 +86,8 @@
 
 void unset_current_song_info(struct con_win *cwin)
 {
-    gtk_progress_bar_set_text(GTK_PROGRESS_BAR(cwin->track_progress_bar), TRACK_PROGRESS_BAR_STOPPED);
+    /*gtk_progress_bar_set_text(GTK_PROGRESS_BAR(cwin->track_progress_bar), TRACK_PROGRESS_BAR_STOPPED);*/
+    gtk_label_set_text (GTK_LABEL(cwin->label_track),TRACK_PROGRESS_BAR_STOPPED);
 }
 
 void __update_track_progress_bar(struct con_win *cwin, gint length)
@@ -289,10 +291,10 @@
     if (cwin->cpref->show_album_art) {
         if (!cwin->album_art_frame) {
             cwin->album_art_frame = gtk_frame_new(NULL);
-            gtk_box_pack_start(GTK_BOX(cwin->hbox_panel),
+            gtk_box_pack_start(GTK_BOX(cwin->hbox_main),
                        GTK_WIDGET(cwin->album_art_frame),
                        FALSE, FALSE, 2);
-            gtk_box_reorder_child(GTK_BOX(cwin->hbox_panel), cwin->album_art_frame, 0);
+            gtk_box_reorder_child(GTK_BOX(cwin->hbox_main), cwin->album_art_frame, 0);
         }
         gtk_widget_show_now(cwin->album_art_frame);
         resize_album_art_frame(cwin);
Index: src/menu.c
===================================================================
--- src/menu.c    (revisión: 585)
+++ src/menu.c    (copia de trabajo)
@@ -223,7 +223,9 @@
     gtk_widget_set_size_request(rescan_progress_bar, RESCAN_PROGRESS_BAR_WIDTH, -1);
     gtk_button_box_set_layout(GTK_BUTTON_BOX(GTK_DIALOG(rescan_library_dialog)->action_area),
                   GTK_BUTTONBOX_SPREAD);
+
     gtk_progress_bar_set_text(GTK_PROGRESS_BAR(rescan_progress_bar), RESCAN_PROGRESS_BAR_TEXT);
+    gtk_label_set_text (GTK_LABEL(cwin->label_track),RESCAN_PROGRESS_BAR_TEXT);
 
     /* Setup signal handlers */
     g_signal_connect(G_OBJECT(GTK_WINDOW(rescan_library_dialog)), "delete_event",
Index: src/library.c
===================================================================
--- src/library.c    (revisión: 585)
+++ src/library.c    (copia de trabajo)
@@ -825,7 +825,8 @@
             fraction = (gdouble)files_scanned / (gdouble)no_files;
             g_sprintf(txt, "%d / %d", files_scanned, no_files);
             gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(pbar), fraction);
-            gtk_progress_bar_set_text(GTK_PROGRESS_BAR(pbar), txt);
+            /*gtk_progress_bar_set_text(GTK_PROGRESS_BAR(pbar), txt);*/
+            gtk_label_set_text (GTK_LABEL(cwin->label_track),txt);
             add_entry_db(ab_file, cwin);
 
         }
Index: src/consonance.c
===================================================================
--- src/consonance.c    (revisión: 585)
+++ src/consonance.c    (copia de trabajo)
@@ -20,6 +20,7 @@
 #endif
 
 #include <stdio.h>
+#include <gdk/gdk.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
@@ -292,31 +293,45 @@
     GtkWidget *play_button, *stop_button, *prev_button, *next_button, *vol_button;
     GtkWidget *album_art_frame = NULL;
     GtkWidget *track_progress_bar, *track_progress_align;
-    GtkWidget *vbox_order;
+    GtkWidget *hbox_order;
+        GtkWidget *vbox_main;
+        GtkWidget *hbox_main;
+        GtkWidget *label_track;
     GtkWidget *shuffle_button, *repeat_button;
     GtkObject *vol_adjust;
 
-    hbox_panel = gtk_hbox_new(FALSE, 5);
-    vbox_order = gtk_vbox_new(FALSE, 1);
+    hbox_panel = gtk_hbutton_box_new(); /*gtk_hbox_new(FALSE, 1);*/
+    hbox_order = gtk_hbox_new(FALSE, 1);
     hbox_controls = gtk_hbox_new(FALSE, 1);
-
+    
+        vbox_main = gtk_vbox_new(FALSE, 0);
+        hbox_main = gtk_hbox_new(FALSE, 2);
+        label_track = gtk_label_new(TRACK_PROGRESS_BAR_STOPPED);
+        gtk_button_box_set_layout(GTK_WIDGET(hbox_panel),GTK_BUTTONBOX_SPREAD);
+        
     /* Setup album art */
 
     if (cwin->cpref->show_album_art) {
         album_art_frame = gtk_frame_new(NULL);
-        gtk_box_pack_start(GTK_BOX(hbox_panel),
+        gtk_box_pack_start(GTK_BOX(hbox_main),
                    GTK_WIDGET(album_art_frame),
                    FALSE, FALSE, 2);
     }
 
     /* Setup track progress */
 
-    track_progress_align = gtk_alignment_new(0, 0.5, 1, 0.3);
+    track_progress_align = gtk_alignment_new(0, 0.5, 1, 0.1);
     track_progress_bar = gtk_progress_bar_new();
-    gtk_progress_bar_set_text(GTK_PROGRESS_BAR(track_progress_bar),
-                  TRACK_PROGRESS_BAR_STOPPED);
-    gtk_container_add(GTK_CONTAINER(track_progress_align), track_progress_bar);
 
+    gtk_label_set_text (GTK_LABEL(label_track), TRACK_PROGRESS_BAR_STOPPED);
+    gtk_label_set_justify(GTK_LABEL(label_track),GTK_JUSTIFY_CENTER);
+    gtk_label_set_ellipsize(GTK_LABEL(label_track),PANGO_ELLIPSIZE_END);
+    
+
+    gtk_box_pack_end(GTK_BOX(vbox_main),
+               GTK_PROGRESS_BAR(track_progress_bar),
+               FALSE, FALSE, 2);
+
     gtk_widget_set_events(track_progress_bar, GDK_BUTTON_PRESS_MASK);
 
     g_signal_connect(G_OBJECT(track_progress_bar), "button-press-event",
@@ -324,18 +339,19 @@
 
     /* Setup play order buttons */
 
-    shuffle_align = gtk_alignment_new(0, 1, 0, 0);
-    repeat_align = gtk_alignment_new(0, 0, 0, 0);
+    shuffle_align = gtk_alignment_new(1, 0, 0, 1);
+    repeat_align = gtk_alignment_new(0, 0, 0, 1);
+    
     shuffle_button = gtk_check_button_new_with_label("Shuffle");
     repeat_button = gtk_check_button_new_with_label("Repeat");
 
     gtk_container_add(GTK_CONTAINER(shuffle_align), shuffle_button);
     gtk_container_add(GTK_CONTAINER(repeat_align), repeat_button);
 
-    gtk_box_pack_start(GTK_BOX(vbox_order),
+    gtk_box_pack_start(GTK_BOX(hbox_order),
                GTK_WIDGET(shuffle_align),
                TRUE, TRUE, 0);
-    gtk_box_pack_start(GTK_BOX(vbox_order),
+    gtk_box_pack_start(GTK_BOX(hbox_order),
                GTK_WIDGET(repeat_align),
                TRUE, TRUE, 0);
 
@@ -365,6 +381,7 @@
     vol_button = gtk_volume_button_new();
 
     vol_adjust = gtk_adjustment_new(0, 0, 100, 1, 5, 0);
+
     gtk_scale_button_set_adjustment(GTK_SCALE_BUTTON(vol_button), GTK_ADJUSTMENT(vol_adjust));
     gtk_button_set_relief(GTK_BUTTON(vol_button), GTK_RELIEF_NORMAL);
 
@@ -421,7 +438,7 @@
 
     /* References to widgets */
 
-    cwin->hbox_panel = hbox_panel;
+    cwin->hbox_main = hbox_main;
     cwin->album_art_frame = album_art_frame;
     cwin->track_progress_bar = track_progress_bar;
     cwin->shuffle_button = shuffle_button;
@@ -431,6 +448,7 @@
     cwin->stop_button = stop_button;
     cwin->next_button = next_button;
     cwin->vol_button = vol_button;
+    cwin->label_track = label_track;
 
     /* Tooltips */
 
@@ -442,16 +460,28 @@
     /* Pack panel widgets into hbox_panel */
 
     gtk_box_pack_start(GTK_BOX(hbox_panel),
-               GTK_WIDGET(track_progress_align),
-               TRUE, TRUE, 0);
-    gtk_box_pack_end(GTK_BOX(hbox_panel),
-             GTK_WIDGET(vbox_order),
+             GTK_WIDGET(hbox_order),
+             TRUE, TRUE, 2);
+
+    gtk_box_pack_start(GTK_BOX(hbox_panel),
+             GTK_WIDGET(controls_align),
              FALSE, FALSE, 2);
-    gtk_box_pack_end(GTK_BOX(hbox_panel),
-             GTK_WIDGET(controls_align),
-             FALSE, FALSE, 0);
 
-    return hbox_panel;
+
+    gtk_box_pack_start(GTK_BOX(hbox_panel),
+             GTK_WIDGET(label_track),
+             TRUE, TRUE, 2);
+
+    gtk_box_pack_start(GTK_BOX(vbox_main),
+             GTK_WIDGET(hbox_panel),
+             FALSE, FALSE, 2);
+
+    gtk_box_pack_start(GTK_BOX(hbox_main),
+             GTK_WIDGET(vbox_main),
+             TRUE, TRUE, 20);
+
+
+    return hbox_main;
 }
 
 static GtkUIManager* create_library_tree_context_menu(GtkWidget *library_tree,
@@ -2236,14 +2266,12 @@
 
     CDEBUG("(%s): Initializing gui", __func__);
 
-    gtk_init(&argc, &argv);
-
     /* Main window */
 
-    cwin->mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
-
     cwin->pixbuf->pixbuf_app = gdk_pixbuf_new_from_file(SHAREDIR "/data/consonance.png",
                                 &error);
+    gtk_init(&argc, &argv);
+
     if (!cwin->pixbuf->pixbuf_app) {
         g_warning("(%s): Unable to load app png : %s", __func__, error->message);
         g_error_free(error);
@@ -2253,6 +2281,9 @@
         gtk_window_set_icon(GTK_WINDOW(cwin->mainwindow), cwin->pixbuf->pixbuf_app);
 
     gtk_window_set_title(GTK_WINDOW(cwin->mainwindow), "Consonance");
+
+    cwin->mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+
     g_signal_connect(G_OBJECT(cwin->mainwindow),
              "delete_event",
              G_CALLBACK(exit_gui), cwin);
@@ -2371,6 +2402,8 @@
 gint main(gint argc, gchar *argv[])
 {
     struct con_win *cwin;
+    GdkScreen *screen=NULL;
+    GdkColormap *colormap=NULL;
 
     cwin = g_slice_new0(struct con_win);
     cwin->pixbuf = g_slice_new0(struct pixbuf);
@@ -2379,6 +2412,7 @@
     cwin->cdbase = g_slice_new0(struct con_dbase);
     cwin->cmixer = g_slice_new0(struct con_mixer);
     cwin->clibao = g_slice_new0(struct con_libao);
+
     show_debug = FALSE;
 
     if (init_dbus(cwin) == -1) {
@@ -2427,9 +2461,23 @@
     init_state(cwin);
 
     gdk_threads_enter();
+    
+    CDEBUG("(%s): Init done. Running ...", __func__);
+
+    screen = gtk_widget_get_screen (GTK_WIDGET(cwin->mainwindow));
+    gtk_widget_push_colormap(colormap);    
+    colormap = gdk_screen_get_rgba_colormap (screen);
+    
+    if (colormap && gdk_screen_is_composited (screen))
+        {
+        gtk_widget_set_default_colormap (colormap);
+        gtk_widget_set_colormap(GTK_WIDGET(cwin->mainwindow), colormap);
+        }
+    
     init_gui(argc, argv, cwin);
-    CDEBUG("(%s): Init done. Running ...", __func__);
+    
     gtk_main();
+
     gdk_threads_leave();
 
     return 0;
Index: src/consonance.h
===================================================================
--- src/consonance.h    (revisión: 585)
+++ src/consonance.h    (copia de trabajo)
@@ -64,7 +64,7 @@
 #define P_BASENAME_STR      "Basename"    /* Base name of the file */
 
 #define ALSA_MIXER_DEV  "default"
-#define ALSA_MIXER_ELEM "PCM"
+#define ALSA_MIXER_ELEM "MASTER"
 #define RESCAN_PROGRESS_BAR_TEXT "Scanning"
 #define TRACK_PROGRESS_BAR_STOPPED "Stopped"
 #define UP_DIR ".."
@@ -342,7 +342,7 @@
     struct con_mixer *cmixer;            /* Mixer */
     struct con_libao *clibao;            /* libao */
     GtkWidget *mainwindow;                /* Main GTK window */
-    GtkWidget *hbox_panel;                /* Panel hbox */
+    GtkWidget *hbox_main;                /* Panel hbox */
     GtkWidget *album_art_frame;            /* Album art frame */
     GtkWidget *album_art;                /* Album art image */
     GtkWidget *track_progress_bar;            /* Progress bar */
@@ -362,6 +362,8 @@
     GtkWidget *playlist_tree;            /* Playlist tree view */
     GtkWidget *file_tree;                /* File tree view */
     GtkWidget *header_context_menu;            /* Column header right click menu */
+    GtkWidget *label_track;                /* Label track */
+    
     GOptionContext *cmd_context;            /* Cmd Line option context */
     GtkStatusIcon *status_icon;            /* Status icon in the system tray */
     GtkUIManager *cp_context_menu;            /* Current playlist right click menu */

The greater change is aesthetic… By it does not have importance…
But I would like they helped that me in the ARGB support… XD

Offline

#127 2008-07-13 06:02:22

Draje
Member
Registered: 2007-06-21
Posts: 102
Website

Re: A new lightweight music manager

Great media player though I have a few suggestions:

- 24bit FLAC support
- custom library display (allow the user to set what each layer is ex. %artist% | %album% | %disc%)
- and as mentioned before, last.fm support

Last edited by Draje (2008-07-13 06:02:33)

Offline

#128 2008-07-15 20:43:12

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: A new lightweight music manager

I released v0.3 a while ago. Hopefully, the upgrade should be fine.
And is anybody interested in hacking up a simple homepage ?

Offline

#129 2008-07-15 20:57:25

cubekid
Member
Registered: 2008-04-22
Posts: 34
Website

Re: A new lightweight music manager

I'd be interested in making a website smile I'll put up a mock website by the end of the day.

Edit: Okay, so here's a mockup: http://consonance.texasspeedcubing.org. I put it on my webspace for the purposes of showing it online, but I think in the end it should go on the sourceforge page http://consonance.sourceforge.net.

There are a few things I would like to do with this site, if you guys end up liking it and want to make it permanent:

* change the banner - I used whatever image I found on the forums for the logo, but I hear the logo has changed/is being changed slightly, and would like to incorporate the logo in somewhere. Plus, I just threw this together in GIMP in about 5 minutes, so I would like to make it more presentable.
* change the layout/design - I decided just to copy the layout I had from another site I was working on for the time being, but this design is still rudimentary and lacking in completeness. I think the one column, links on the top design is good for a site like this, but I'd like to make it a bit more presentable.
* use php and mysql in conjunction - Right now the site only has php pages (mainly to make my life easier with the includes), but I eventually want to make it so that the news is stored in a mysql database and it is easy to update the news.
* show new features on each update - I couldn't really find what new features each version had (though really, I didn't look very hard roll). However, I think it would be nice to have it listed out in the news section everytime there is an update.

There are other things that probably need to be done to the site, but I can't really think of them at this moment. Any ideas are appreciated, let me know what you guys think.

Last edited by cubekid (2008-07-16 00:11:52)

Offline

#130 2008-07-16 06:08:35

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: A new lightweight music manager

Took a quick look and it's nice.
A different color scheme ( Ubuntu brown, argh smile ) would be great.
Otherwise, I am okay with it, will figure out how to setup http://consonance.sourceforge.net this evening.

Offline

#131 2008-07-17 03:11:50

cubekid
Member
Registered: 2008-04-22
Posts: 34
Website

Re: A new lightweight music manager

Cool, I'll work on getting a different color scheme. Any suggestions? Only thing is that the logo color would have to be changed to match the color scheme (well, at least that's what i would do).

Maybe green and white and black?

Offline

#132 2008-07-17 18:59:10

cubekid
Member
Registered: 2008-04-22
Posts: 34
Website

Re: A new lightweight music manager

Okay, so I came up with two designs:

http://consonance.texasspeedcubing.org
http://consonance2.texasspeedcubing.org

The only difference between the two is the banner at the top. I personally like the second one better, but i decided to put both up to see what everyone else thinks. I can mess with either of them, or even provide the .xcf files if people are interested.

Is the color scheme okay? I can change it to other colors if people think it would be better.

Last edited by cubekid (2008-07-18 01:39:56)

Offline

#133 2008-07-19 14:41:30

clarezoe
Member
Registered: 2008-07-19
Posts: 5

Re: A new lightweight music manager

Hi, I wanna try this program, and I don't have knowledge about C programming,

I got

** (process:32554): CRITICAL **: (init_dbus): Unable to get a DBUS connection

** (process:32554): CRITICAL **: (main): Unable to init dbus connection

when I run "consonance" in terminal

Any help?
Thanks!

Offline

#134 2008-07-19 15:10:49

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

Re: A new lightweight music manager

clarezoe...

If these executing like root, try from a normal user.

The only thing that is happened to me… XD

Offline

#135 2008-07-19 21:05:18

clarezoe
Member
Registered: 2008-07-19
Posts: 5

Re: A new lightweight music manager

msdelos,

great, it works when I run consonance as root, but how can I change it? It also happens in amarok

Offline

#136 2008-07-19 21:30:11

cubekid
Member
Registered: 2008-04-22
Posts: 34
Website

Re: A new lightweight music manager

stupid question, but did you add yourself to the "audio" group?

Offline

#137 2008-07-19 23:30:56

clarezoe
Member
Registered: 2008-07-19
Posts: 5

Re: A new lightweight music manager

cubekid, sure I did

$ cat group|grep audio
audio:x:29:clarezoe

Offline

#138 2008-07-20 00:55:51

cubekid
Member
Registered: 2008-04-22
Posts: 34
Website

Re: A new lightweight music manager

ah, okay, just making sure. i remember i had a similar problem, and it happened that i had forgotten to add myself to audio.

otherwise, yea, i don't really know what's up. i'd say maybe to check if dbus is running.. but if you can run it with root, it obviously is.

Offline

#139 2008-07-20 01:02:29

clarezoe
Member
Registered: 2008-07-19
Posts: 5

Re: A new lightweight music manager

I solved the problem, it is a DBUS issue. What I did is as follows:

I launch

dbus-launch

manually
Then I got the DBUS_SESSION_BUS_ADDRESS

DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ifCsLGrtdR,guid=67ecb2defaf606b2f1e0141b48828c51

and then export it

export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ifCsLGrtdR,guid=67ecb2defaf606b2f1e0141b48828c51

Then I can start consonance without any problem.

I checked my system progresses, I have over 5 dbus running, I don't if you guys can make any improvement about this issue by not starting a new dbus, or it cannot be avoided, or there is a common setting everyone should have done it to his system but I didn't.
Any help about how to set the DBUS_SESSION_BUS_ADDRESS environment variable automatically will be appreciated. 

Thanks!

Offline

#140 2008-07-20 01:14:56

clarezoe
Member
Registered: 2008-07-19
Posts: 5

Re: A new lightweight music manager

Hi again,

After reading the dbus manual, and googling, I'm kinda solved it
add dbus-launch in ~/.xinitrc by the auto syntax option, in my case I'm using

dbus-launch --auto-syntax --exit-with-session icewm-session &

But now I have 6 dbus progresses in at startup, will it be worried?

Anyway, now I'm enjoying the program smile

Offline

#141 2008-07-23 02:06:20

ould
Member
Registered: 2007-05-22
Posts: 124

Re: A new lightweight music manager

Hi,

Just started to use this. Looks great. A couple comment/requests.

1. Others have mentioned it, FLAC support would rock

2. Is it possible to have the current playlist saved after quitting and restarting program. Currently mine comes up blank everytime I start it up. Maybe I missed a setting somethwere?

3. Currently there are command line options for play, pause, next, previous, stop etc. I am using these with my multimedia keyboard and it works well. However my keyboard lacks a separate play and pause button. Mine is combined into one button "Play/Pause". Would it be possible to add another command-line option which toggles between play or pause depending on the current state. For example, if it is currently paused(or stopped I guess) hitting command would start playing. If it is currently playing the command would pause playback. And using the command again would resume playback. Make sense?

Other than those things I have noticed I am loving the program so far. It's quick, lightweight and works!!

Thanks for the program!!!

Kevin

Offline

#142 2008-07-23 02:13:12

kontrast
Arch Linux f@h Team Member
From: Massachusetts
Registered: 2008-05-26
Posts: 41
Website

Re: A new lightweight music manager

[alex@mach:~] consonance

** (consonance:15806): CRITICAL **: (init_config): Unable to load conrc, err: File is empty

** (consonance:15806): CRITICAL **: (alsa_init_mixer): Unable to find alsa mixer element : PCM

** (consonance:15806): CRITICAL **: (main): Unable to init audio
[alex@mach:~] consonance -e
** (consonance:15813): DEBUG: (init_config): Initializing configuration

** (consonance:15813): CRITICAL **: (init_config): Unable to load conrc, err: File is empty
** (consonance:15813): DEBUG: (init_musicdbase): Initializing music dbase
** (consonance:15813): DEBUG: (exec_sqlite_query):CREATE TABLE IF NOT EXISTS TRACK (location INT PRIMARY KEY, track_no INT, artist INT, album INT, genre INT, year INT, bitrate INT, length INT, channels INT, samplerate INT, file_type INT, title VARCHAR(255));
** (consonance:15813): DEBUG: (exec_sqlite_query):CREATE TABLE IF NOT EXISTS LOCATION (id INTEGER PRIMARY KEY, name TEXT, UNIQUE(name));
** (consonance:15813): DEBUG: (exec_sqlite_query):CREATE TABLE IF NOT EXISTS ARTIST (id INTEGER PRIMARY KEY, name VARCHAR(255), UNIQUE(name));
** (consonance:15813): DEBUG: (exec_sqlite_query):CREATE TABLE IF NOT EXISTS ALBUM (id INTEGER PRIMARY KEY, artist INT, name VARCHAR(255), UNIQUE(name));
** (consonance:15813): DEBUG: (exec_sqlite_query):CREATE TABLE IF NOT EXISTS GENRE (id INTEGER PRIMARY KEY, name VARCHAR(255), UNIQUE(name));
** (consonance:15813): DEBUG: (exec_sqlite_query):CREATE TABLE IF NOT EXISTS YEAR (id INTEGER PRIMARY KEY, year INT, UNIQUE(year));
** (consonance:15813): DEBUG: (exec_sqlite_query):CREATE TABLE IF NOT EXISTS PLAYLIST_TRACKS (file TEXT, playlist INT);
** (consonance:15813): DEBUG: (exec_sqlite_query):CREATE TABLE IF NOT EXISTS PLAYLIST (id INTEGER PRIMARY KEY, name VARCHAR(255), UNIQUE(name));
** (consonance:15813): DEBUG: (init_audio): Initializing audio
** (consonance:15813): DEBUG: (init_audio_mixer): Initializing audio mixer

** (consonance:15813): CRITICAL **: (alsa_init_mixer): Unable to find alsa mixer element : PCM

** (consonance:15813): CRITICAL **: (main): Unable to init audio

Any ideas?

Offline

#143 2008-07-23 13:23:56

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: A new lightweight music manager

ould wrote:

Hi,

1. Others have mentioned it, FLAC support would rock

FLAC support was added in v0.3

ould wrote:

2. Is it possible to have the current playlist saved after quitting and restarting program. Currently mine comes up blank everytime I start it up. Maybe I missed a setting somethwere?

Nope, currently the playlist is not saved on quitting, will look into this.

ould wrote:

3. Currently there are command line options for play, pause, next, previous, stop etc. I am using these with my multimedia keyboard and it works well. However my keyboard lacks a separate play and pause button. Mine is combined into one button "Play/Pause". Would it be possible to add another command-line option which toggles between play or pause depending on the current state. For example, if it is currently paused(or stopped I guess) hitting command would start playing. If it is currently playing the command would pause playback. And using the command again would resume playback. Make sense?

Will look into this too.

Offline

#144 2008-07-23 13:25:22

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: A new lightweight music manager

kontrast wrote:
[alex@mach:~] consonance

** (consonance:15813): DEBUG: (init_audio): Initializing audio
** (consonance:15813): DEBUG: (init_audio_mixer): Initializing audio mixer
** (consonance:15813): CRITICAL **: (alsa_init_mixer): Unable to find alsa mixer element : PCM
** (consonance:15813): CRITICAL **: (main): Unable to init audio

Any ideas?

PCM is absent in your sound configuration. I'll add code to choose MASTER if PCM is not present.

Offline

#145 2008-07-23 19:36:51

ould
Member
Registered: 2007-05-22
Posts: 124

Re: A new lightweight music manager

sacamano_m82 wrote:
ould wrote:

Hi,

1. Others have mentioned it, FLAC support would rock

FLAC support was added in v0.3

ould wrote:

2. Is it possible to have the current playlist saved after quitting and restarting program. Currently mine comes up blank everytime I start it up. Maybe I missed a setting somethwere?

Nope, currently the playlist is not saved on quitting, will look into this.

ould wrote:

3. Currently there are command line options for play, pause, next, previous, stop etc. I am using these with my multimedia keyboard and it works well. However my keyboard lacks a separate play and pause button. Mine is combined into one button "Play/Pause". Would it be possible to add another command-line option which toggles between play or pause depending on the current state. For example, if it is currently paused(or stopped I guess) hitting command would start playing. If it is currently playing the command would pause playback. And using the command again would resume playback. Make sense?

Will look into this too.

Hmmm I have to check which version I am running as my FLAC files didn't show up when I scanned my library(which has a few FLACS). Awesome that is added in though.

Thanks for looking into the other 2 things I mentioned.

Kevin

Offline

#146 2008-07-23 21:12:37

kontrast
Arch Linux f@h Team Member
From: Massachusetts
Registered: 2008-05-26
Posts: 41
Website

Re: A new lightweight music manager

sacamano_m82 wrote:

PCM is absent in your sound configuration. I'll add code to choose MASTER if PCM is not present.

Alright, when would the new code be added/or is there a new version with it implented?

And also, is this a fault of my configuration, or is it simply the way it is for certain setups/soundcards?

Offline

#147 2008-07-24 02:11:32

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: A new lightweight music manager

kontrast wrote:
sacamano_m82 wrote:

PCM is absent in your sound configuration. I'll add code to choose MASTER if PCM is not present.

Alright, when would the new code be added/or is there a new version with it implented?

And also, is this a fault of my configuration, or is it simply the way it is for certain setups/soundcards?

I just commited to SVN trunk. You can use consonance-svn in AUR to get the latest version.

Offline

#148 2008-07-24 16:30:51

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: A new lightweight music manager

How about some kind of option to show the current playing song in emesene, pidgin, etc.

Offline

#149 2008-07-24 19:07:13

kontrast
Arch Linux f@h Team Member
From: Massachusetts
Registered: 2008-05-26
Posts: 41
Website

Re: A new lightweight music manager

sacamano_m82 wrote:
kontrast wrote:

Alright, when would the new code be added/or is there a new version with it implented?

And also, is this a fault of my configuration, or is it simply the way it is for certain setups/soundcards?

I just commited to SVN trunk. You can use consonance-svn in AUR to get the latest version.

Alright, thanks a bunch. I'll see if it works out okay, and hopefully switch from Exaile to this smile Oh and by the way, if you ever need any help for this project or anything, just send me a PM or email. I don't have much better to do.

EDIT: Seems like theres something missing on my end, or I have a weird configuration. Any ideas?

** (consonance:6608): CRITICAL **: (alsa_init_mixer): Unable to find PCM and MASTER mixer elements

** (consonance:6608): CRITICAL **: (main): Unable to init audio

Last edited by kontrast (2008-07-24 19:11:17)

Offline

#150 2008-07-25 01:38:50

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: A new lightweight music manager

What does 'amixer scontrols' show ?

Offline

Board footer

Powered by FluxBB