Fix itdb track type

This commit is contained in:
Jonas Kvinge 2019-01-24 19:10:10 +01:00
parent 706529248a
commit ce4be75803
1 changed files with 2 additions and 3 deletions

View File

@ -901,10 +901,9 @@ void Song::ToItdb(Itdb_Track *track) const {
track->bitrate = d->bitrate_;
track->samplerate = d->samplerate_;
//track->bithdepth = d->bithdepth_;
track->type1 = 0;
track->type2 = d->filetype_ == FileType_MP4 ? 0 : 1;
track->type1 = (d->filetype_ == FileType_MPEG ? 1 : 0);
track->type2 = (d->filetype_ == FileType_MPEG ? 1 : 0);
track->mediatype = 1; // Audio
track->size = d->filesize_;
track->time_modified = d->mtime_;