* Mmap the given audio file and update statistics.
*
* \param aft_row Determines the audio file to be opened and updated.
+ * \param score The score of the audio file.
* \param afd Result pointer.
*
* On success, the numplayed field of the audio file selector info is increased
*
* \return Positive shmid on success, negative on errors.
*/
-int open_and_update_audio_file(struct osl_row *aft_row,
- struct audio_file_data *afd, long score)
+int open_and_update_audio_file(struct osl_row *aft_row, long score,
+ struct audio_file_data *afd)
{
HASH_TYPE *aft_hash, file_hash[HASH_SIZE];
struct osl_object afsi_obj;
"%s: %lu\n" /* seconds total */
"%s: %d\n" /* num_played */
"%s: %s\n" /* last_played */
- "%s\n", /* tag info */
+ "%s", /* tag info */
filename_lines,
have_score? status_item_list[SI_SCORE] : "",
have_score? ": " : "",
void make_empty_status_items(char *buf)
{
sprintf(buf,
- "%s:\n" /* path */
- "%s:\n" /* dirname */
- "%s:\n" /* basename */
- "%s:\n" /* score */
- "%s:\n" /* attributes bitnmap */
- "%s:\n" /* attributes txt */
- "%s:\n" /* hash */
- "%s:\n" /* image id */
- "%s:\n" /* image name */
- "%s:\n" /* lyrics id */
- "%s:\n" /* lyrics name */
- "%s:\n" /* bitrate */
- "%s:\n" /* format */
- "%s:\n" /* frequency */
- "%s:\n" /* channels */
- "%s:\n" /* duration */
- "%s:\n" /* seconds total */
- "%s:\n" /* num played */
- "%s:\n" /* last played */
+ "%s: \n" /* path */
+ "%s: \n" /* dirname */
+ "%s: \n" /* basename */
+ "%s: \n" /* score */
+ "%s: \n" /* attributes bitnmap */
+ "%s: \n" /* attributes txt */
+ "%s: \n" /* hash */
+ "%s: \n" /* image id */
+ "%s: \n" /* image name */
+ "%s: \n" /* lyrics id */
+ "%s: \n" /* lyrics name */
+ "%s: \n" /* bitrate */
+ "%s: \n" /* format */
+ "%s: \n" /* frequency */
+ "%s: \n" /* channels */
+ "%s: \n" /* duration */
+ "%s: \n" /* seconds total */
+ "%s: \n" /* num played */
+ "%s: \n" /* last played */
,
status_item_list[SI_PATH],
status_item_list[SI_DIRECTORY],