LXMusic不支援cue格式嗎?

Post LXDE Videos, Pictures, Screenshots, Media Articles, Photos here, please.
tuxzz
Posts: 4
Joined: Mon Aug 27, 2012 9:27 am
Location: China/Tianjin

LXMusic不支援cue格式嗎?

Post by tuxzz »

我有許多cue+ape或cue+flac的歌,編碼為UTF-8或GB2312或BIG5或SHIFT-JIS的,但是無論什麽編碼的cue,lxmusic都不支援(拖進播放器後無任何反應)。但xmms已經支援UTF-8的cue了,希望能添加lxmusic對cue的支援。(現在只能忍受qmmp的笨重了…… :|

This is English version, and sorry for my bad English...
I have lots of songs of cue+ape or cue+flac.The encoding are UTF-8 or GB2312 or BIG5 or SHIFT-JIS. However, lxmusic doesn't support any cue. And xmms support cue format, so , I hope lxmusic can support cue format。(I'm using qmmp now... :| )

Code: Select all

OS:Arch linux
de:LXDE
 lxmusic-0.4.5-1 with xmms2-0.8DrO_o-7 libcue-1.4.0-3
Sorry for my bad English...I'm Chinese...
tuxzz
Posts: 4
Joined: Mon Aug 27, 2012 9:27 am
Location: China/Tianjin

Re: LXMusic不支援cue格式嗎?

Post by tuxzz »

I found a patch.But it is too old.

Code: Select all

diff -Nur lxmusic-0.3.0/src/lxmusic.c lxmusic-0.3.0_new/src/lxmusic.c
--- lxmusic-0.3.0/src/lxmusic.c	2009-05-27 06:58:03.000000000 +0800
+++ lxmusic-0.3.0_new/src/lxmusic.c	2009-08-08 03:05:12.000000000 +0800
@@ -231,7 +231,7 @@
 
 #ifdef HAVE_LIBNOTIFY
     lxmusic_notification_free( lxmusic_notification );
-#endif HAVE_LIBNOTIFY
+#endif
 
     /* FIXME: Is this apporpriate? */
     if( ! play_after_exit || playback_status == XMMS_PLAYBACK_STATUS_STOP )
@@ -841,7 +841,9 @@
 static gpointer add_file( const char* file )
 {
     gboolean is_dir = g_file_test( file, G_FILE_TEST_IS_DIR );
-    xmmsc_result_t *res;
+    xmmsc_result_t *res, *res2;
+    xmmsv_t *val;
+    xmmsv_coll_t *coll;
     char *url;
 
     /* Since xmms2 uses its own url format, this is annoying but inevitable. */
@@ -849,6 +851,31 @@
 
     if( is_dir )
         res = xmmsc_playlist_radd( con, cur_playlist, url );
+    else if ( strcasestr( file, ".cue" ) )
+    {
+        res = xmmsc_coll_idlist_from_playlist_file (con, url);
+        xmmsc_result_wait (res);
+
+        val = xmmsc_result_get_value (res);
+        if (xmmsv_is_error (val)) {
+            printf ("%s", xmmsv_get_error_old (val));
+        }
+
+        if (!xmmsv_get_coll (val, &coll)) {
+            printf ("Couldn't get collection from result!\n");
+        }
+
+        res2 = xmmsc_playlist_add_idlist (con, NULL, coll);
+        xmmsc_result_wait (res2);
+        if (xmmsc_result_iserror (res2)) {
+            printf ("%s\n", xmmsc_result_get_error (res2));
+        }
+
+        xmmsc_result_unref (res);
+        xmmsc_result_unref (res2);
+        res = NULL;
+        res2 = NULL;
+    }
     else
         res = xmmsc_playlist_add_url( con, cur_playlist, url );
     g_free( url );
Sorry for my bad English...I'm Chinese...
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: LXMusic不支援cue格式嗎?

Post by seppalta »

Your English is fine. You should see my Chinese! :lol:

I do not know much about Lxmusic player, but I know VLC player plays .cue and almost everything else.
tuxzz
Posts: 4
Joined: Mon Aug 27, 2012 9:27 am
Location: China/Tianjin

Re: LXMusic不支援cue格式嗎?

Post by tuxzz »

seppalta wrote:Your English is fine. You should see my Chinese! :lol:

I do not know much about Lxmusic player, but I know VLC player plays .cue and almost everything else.
Thanks for your reply seppalta.
But VLC is too heavy, like Qmmp.
I want a light and support .cue perfectly music player. Do you know which player is the best for me?
Sorry for my bad English...I'm Chinese...
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: LXMusic不支援cue格式嗎?

Post by seppalta »

I just saw the following: http://cueplay.sourceforge.net/.
fohrums
Posts: 8
Joined: Sat Dec 22, 2012 5:59 am

Re: LXMusic不支援cue格式嗎?

Post by fohrums »

There are a lot of (upcomming) great open source media players out there specifically made for linux nowadays :D

I'll name a few that support cue files (not in any particular order):

Code: Select all

Clementine | http://www.clementine-player.org/
Audacious  | http://www.audacious-media-player.org/
DeadBeeF  | http://deadbeef.sourceforge.net/
Amarok      | http://amarok.kde.org/
Banshee    | http://banshee.fm/
There is a lot more to name but I need specifics. Here are some things to consider for making a decision on what player is right for you:

Code: Select all

A) Specifics:
-Lightweight
-Design/Looks
-Customization (foobar influences?)
-Licencing (free, open source)

B) Media Library
-Library (organizes songs in a fashion manner)
-Auto-Fetching (lyrics, bio, album art, etc)

C) Playback
-Quality
-Codecs
-Playlist support (cue, m3u, etc)
-DSP (EQ, Re-Sampling, etc)
To help you search for media players and alternatives checkout http://www.alternativeto.net you can filter by Licence/OS (Open Source/Linux).
Locked