docs.kde.org
General Questions
Prev
Next

General Questions

1. How Do I use an external MySQL database with Amarok?
2. My $HOME is located on NFS. After startup, Amarok fails to build the Collection, printing many database errors to the console. What to do?
3. How can I rip/encode Audio-CDs with Amarok?
4. How are track ratings determined?
5. How do I manually change a track's rating?
6. Why isn't Amarok part of KDEmultimedia?
7. How do I prevent the Amarok icon from blinking in my system tray?
8. How can I show/remove the analyzer in the playlist window?
9. How do I change the Context Browser theme?
10. What legal issues caused "Blue Wolf" icon replacement?
11. I don't have any visualizations. Where can I obtain these ?
12. How can I add my favorite streams to Amarok?
1.

How Do I use an external MySQL database with Amarok?

See MySQL HowTo.

2.

My $HOME is located on NFS. After startup, Amarok fails to build the Collection, printing many database errors to the console. What to do?

The internal SQLite database which Amarok uses by default does not work on NFS. You must either link your ~/.kde/share/apps/amarok directory to a local drive, or use the MySQL support.

3.

How can I rip/encode Audio-CDs with Amarok?

Insert your CD, then click on "Play Audio CD" in the menu. The File-Browser will come up and show a tree with several folders. For normal ripping, go to the "wav" folder, select some tracks and drag them to the desired destination in a Konqueror window. For automatic encoding, drag files from the "mp3" or "ogg" folder instead.

Note

CD-ripping requires the "AudioCD KIO-slave" to be installed. It is part of KDE-Multimedia.

4.

How are track ratings determined?

Amarok assigns a rating (a number 1-100) to a song based on how many times you've listened to it and whether you skip the song without it finishing. Every time the song finishes playing, the rating is changed. The code for changing the rating is in collectiondb.cpp. As of version 1.2.2, it was on line 1181, though you can find it by searching for "CollectionDB::addSongPercentage". When defining a score for a track which has never been played before, Amarok uses the calculation score = ( ( 50 + percentage ) / 2 )

This sets the score equal to a number from 25-75, depending on how far through the song was allowed to play. For example, if the user stops or skips the song after only 25% of it has played, the score will be set to (50+25)/2, or 37.5. Scores are displayed as integers, however, so this number is rounded to the nearest integer before being displayed. The score is kept internally as a floating point number however, since after a song has been played several times, it may be impossible to alter the score by more than a point with a single play (see below). When defining a score for a track which has been played before, the calculation is a bit more complicated. In the source, it is score = ( ( values[2].toDouble() * values.first().toInt() ) + percentage ) / ( values.first().toInt() + 1 );

Substituting in the values from this line:

   QStringList values = query( QString(
           "SELECT playcounter, createdate, percentage FROM statistics "
           "WHERE url = '%1';" )
           .arg( escapeString( url ) ) );

We have score = ( ( statistics_percentage.toDouble() * PlayCounter.toInt() ) + percentage ) / ( PlayCounter.toInt() + 1 );

Basically, this adjusts the previous score (statistics_percentage) by a decreasing amount depending on how many times the track has been played. The more times the track has been played, the less of an impact each play has on the score.

5.

How do I manually change a track's rating?

You may change the rating manually by right-clicking on the playlist columns titles (the ones that say title, artist, album etc) and select Score. You can then change the score like any other song attribute, by right clicking it and selecting "Edit Tag 'Score'" or pressing F2. You can also edit the score in the Tag dialog, available by right clicking on a track.

6.

Why isn't Amarok part of KDEmultimedia?

The developers don't want the man telling them when they can release. (Meaning, packages in KDE proper have a release schedule that doesn't fit with Amarok's fast-paced development).

7.

How do I prevent the Amarok icon from blinking in my system tray?

This is a new feature that has been added that some users might find distracting. Simply uncheck the "Flash icon tray when playing" option under General Options.

8.

How can I show/remove the analyzer in the playlist window?

The playlist analyzer is part of the playlist toolbar. Select Settings->Configure Toolbars Add/Remove Analyzer to the Current actions Press OK

9.

How do I change the Context Browser theme?

Download a theme or make your own. Install it through Configure Amarok... ->Appearance->Context Browser Style, click Install New Style.

10.

What legal issues caused "Blue Wolf" icon replacement?

The icon was way too similar to the Warp Graphics, Inc. logo (elfquest.com), so it had to be removed to avoid problems.

11.

I don't have any visualizations. Where can I obtain these ?

Install the latest version of libvisual.

12.

How can I add my favorite streams to Amarok?

First of all, load the stream into the playlist. There are several ways to do this. You can simply click on a Stream-Playlist URL in Konqueror; Amarok will then automatically open the stream. E.g. on shoutcast.com, click on the "Tune In" button. Or you can use the "Add Media" function to load a stream.Once the stream is loaded, you can save it by right-clicking on "Current Playlist" in the Playlist-Browser, then select "Save", and give it a meaningful name. The Stream will then be added to the Playlist-Browser view for later reference.

Prev
Next
Contents


docs.kde.org