Wednesday, December 10. 2008
MTP File Management and iPod Covers Posted by Alejandro Wainzinger
in xevix at
12:12
Comment (1) Trackbacks (0) MTP File Management and iPod Covers
So MTP file management (copying/deleting) has gotten implemented, and works well on all 3 devices I tested on. Still a lot of polishing left to do as far as interface goes, and some threading to not stall Amarok at key points, and it should be good to go. One thing I'm having issues with is copying files directly from an MTP to an iPod and vice versa, but will investigate this later as this is a bit more advanced.
So, I had a bit of an epic struggle with a few things over the last day or so. See, libgpod can only retrieve covers in the form of GdkPixbuf structs, but so as to not force the GdkPixbuf dependency on people, they return it as a gpointer which you can then choose to cast if you want to use GdkPixbuf. Sounds great, right? No problem... ... except for having CMake pull in the dependency. So as it turns out, there's no built-in module for gdk-pixbuf library. So, I decided to create my own as I did with libgpod, except when I pulled it in, a certain function wasn't present. Odd... hm. Well as it turns out, this function is only present in the gdk-pixbuf library that resides in gtk. Great! There's a CMake module for GTK, all should be fine this time, yes? No. The GTK module in CMake pulls in GTK1, and gdk-pixbuf is in GTK2. So I end up modifying the gdk-pixbuf module I made before, learning lots about CMake along the way, and finally get it compiling. Long story short for the next part, the README in libgpod didn't really work for me for setting up SysInfo for my iPod, and I accidentally tripped on a feature from the old Amarok which set it up right, after I modified some permissions. Wonderful, yeah? Wrong! Turns out that iTunes and libgpod handle covers in two different ways, and so I have to cater to both of them. This turned out to be a bit of a pain, but at last, I finally got a size-distorted but correct solution: ![]() The m-flo cover was set by me using libgpod via Amarok, and the Manį cover was set by iTunes. I'm going to fine-tune the sizes later, and all should be peaches and cream. That's all for now. One note though about the interface, which right now is either non-existent or bad: likely going to be making an applet which does all the fun stuff that A1 did for media devices, including: connect/disconnect, % free space, possibly a queue, and if supported, even % battery level! That however, is a ways away from coming true, but do stay tuned. Wednesday, December 10. 2008MTP Support Arrives![]() Caption: 2 MTP devices connected, and songs playing from iPod This is a bit overdue, but initial support for MTP devices has arrived. To use it, you require limbtp >= 0.3.0 installed on the system, and a device supported by libmtp of course. Part of the reason this took so long is that I'm starting to notice a lot of potentially reusable code, and will probably soon refactor to reflect this. MTP devices are strange beasts, because their filesystem can't be directly accessed. As a result, Amarok 1 and Windows Media Player et al can only do file management of tracks on these devices, not actually play directly off of them. I'm going to be working on an idea that allows playing off of them to be possible, because let's face it, A2 is an audio player, not just a file manager. Thanks again to everyone who donated MTP devices to the Amarok group. You're the ones who make this possible. Support is still pretty basic, so please don't file bugs on this yet, but be ready to at some point in the semi-near future. Edit: Snapshot of 3 Mentioned Devices Wednesday, December 10. 2008
MTP Incoming and Ipod File Deletion ... Posted by Alejandro Wainzinger
in xevix at
12:12
Comments (2) Trackbacks (0) MTP Incoming and Ipod File Deletion Support
First off, thanks to everyone who has responded to the request for devices so far, and those to come! Sorry if the replies to the e-mails take a bit, but I'm probably working on Amarok ironically enough. Some of the devices offered have already been sent, and soon we'll see the first signs of MTP support on Amarok 2 =D . To get this question out of the way, yes, of course we're going with libmtp 0.3, it just makes sense to. Look forward to this MTP users, and thanks again to all donors of devices!
Summary of Ipod News: - You can now delete files one at a time from the iPod - You can now "edit" tags, although changes won't save yet (implementing next) ![]() After fighting for a while with how to create a custom "remove" button, users now have access to deleting files on the ipod! ... one at a time, hah, looks like I have to do some more magic before you can do it with multiple files at once. Also, the icon for "remove" doesn't seem to make sense, and I'm fixing this soon too. Why there isn't a built-in capability to remove from a collection when there's built-in support for it in CollectionLocation? Probably nobody got around to it yet. If nobody does it after this summer, I'll implement it so that people don't have to go through this again, haha. Turns out that because pre-made actions are in the CollectionTreeView, they can do all sorts of magic like... know which items are selected, so that they can work with multiple things at once. I'll have to look into this next. Anyway, editing ipod tags will no longer crash your Amarok, and they'll even update in the view!... but not in the ipod's database, so a restart of Amarok will clear those changes, don't be fooled! It won't be too hard to port over tags support I'm sure. Er.. wait, I've said "it shouldn't be too hard to..." way too many times already, and I'm always surprised when it turns out to be a pita, haha. The rest of the stuff I mentioned in previous posts has not yet been dealt with. No need to ask about the progress, it'll get here fairly soon. I've tried to concentrate on core features (tag editing, file management) for now. Yes, album covers and podcasts are wonderful, and they're soon to be here. Wednesday, December 10. 2008
Ipod Collections Visible Posted by Alejandro Wainzinger
in xevix at
12:12
Comments (0) Trackbacks (0) Ipod Collections Visible
As predicted would be done by today, Ipod collections are now visible in Amarok 2 if an iPod is plugged in at Amarok 2 loadtime. I'll add signal/slot stuff so that you can plug in later at a later time. Songs are playable, but track information edit attempts crash amarok, and it's hanging on exit probably due to some voodoo static_cast that I'm using. Instead of the 30-90 seconds of Amarok 1.4 freezing loading my ipod, this takes less than 1 second and freezes nothing. Anyway, screenshots:
![]() ![]() As you can see, UTF8 support is there, although there's some funky business with Album grouping atm but I'll get to that. There's a long series of known bugs right now, so please don't bother me just yet with them as they're mostly obvious ones =p This is a big milestone for me, as I can start to see that what I'm doing is quite possible. Still a long road ahead, but we're on our way. Wednesday, December 10. 2008KDE4 on Gentoo![]() After weeks of trying to get to setting up a KDE4 development environment for Amarok, success is finally at my door =D. First Kubuntu and kdesvn-build needing every dependency imaginable and building issues, then Gentoo and the broken qt-4.4 ebuilds, but a combination of kdesvn-build and manually building Amarok has finally granted me my dream. For a higher quality version, download from here(note: .ogv file) : http://www.filesend.net/download.php?f=03f4722730dfa9115d143701fd0d3db1 For an avi version (lesser quality a bit) : http://www.filesend.net/download.php?f=bdbe2dcd1626b6aa2f3ab5d78888bcae Wednesday, December 10. 2008KDE4 on OS X 10.4![]() (From left to right: Konqueror, KPatience, KStars) So it turns out KDE4 isn't just being ported to Windows, but Mac as well (universal binaries, both PPC and x86). It runs slow for now, and a lot of stuff doesn't work, but the games and education programs work alright. Very exciting stuff. Soon as Konqueror and Amarok 2 start working properly it'll be a happy day for OS X users, or... not. The new Konqueror will be using Webkit (Safari's engine, which itself is based on KHTML, Konqueror's current engine), and iTunes will likely run faster than Amarok. But at least tech demos can be done natively... all the easier to then lure people to an FOSS system =) Packages available at:http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X#Installation
Wednesday, December 10. 2008Amarok 2.0 released!We are happy to finally get our baby out of the door. Read the release announcement here: http://amarok.kde.org/en/releases/2.0, check abby’s screenshot tour and help us spread the word on digg, Twitter, your blog and wherever else you hang around :) This is just the beginning of a long journey. Join us on our way and party with us! |
Amarok LinksCalendarQuicksearchCategoriesSyndicate This BlogBlog Administration |

