diff --git a/src/musikbox/Main.cpp b/src/musikbox/Main.cpp index 1b8079a4c..048be2af7 100644 --- a/src/musikbox/Main.cpp +++ b/src/musikbox/Main.cpp @@ -252,6 +252,7 @@ int main(int argc, char* argv[]) LibraryPtr library = LibraryFactory::Libraries().at(0); GaplessTransport transport; + transport.SetVolume(0.75); PlaybackService playback(library, transport); GlobalHotkeys globalHotkeys(playback, library); diff --git a/src/musikbox/app/model/TrackList.cpp b/src/musikbox/app/model/TrackList.cpp index 1e1a479c3..8a775dc2a 100755 --- a/src/musikbox/app/model/TrackList.cpp +++ b/src/musikbox/app/model/TrackList.cpp @@ -43,7 +43,7 @@ #include -#define MAX_SIZE 60 +#define MAX_SIZE 50 using musik::core::db::Statement; using musik::core::db::Row; diff --git a/src/musikbox/app/query/CategoryTrackListQuery.cpp b/src/musikbox/app/query/CategoryTrackListQuery.cpp index b4ea66700..135a13097 100755 --- a/src/musikbox/app/query/CategoryTrackListQuery.cpp +++ b/src/musikbox/app/query/CategoryTrackListQuery.cpp @@ -105,13 +105,13 @@ bool CategoryTrackListQuery::OnRun(Connection& db) { std::string lastAlbum; size_t index = 0; - this->query = boost::str(boost::format( + std::string query = boost::str(boost::format( "SELECT DISTINCT t.id, al.name " \ "FROM tracks t, albums al, artists ar, genres gn " \ "WHERE t.%s=? AND t.album_id=al.id AND t.visual_genre_id=gn.id AND t.visual_artist_id=ar.id " "ORDER BY al.name, disc, track, ar.name") % this->column); - Statement trackQuery(this->query.c_str(), db); + Statement trackQuery(query.c_str(), db); trackQuery.BindInt(0, this->id); while (trackQuery.Step() == Row) { @@ -123,21 +123,6 @@ bool CategoryTrackListQuery::OnRun(Connection& db) { lastAlbum = album; } - // TrackPtr track = TrackPtr(new LibraryTrack(id, this->library)); - // track->SetValue(Track::TRACK_NUM, trackQuery.ColumnText(1)); - // track->SetValue(Track::DISC_NUM, trackQuery.ColumnText(2)); - // track->SetValue(Track::BPM, trackQuery.ColumnText(3)); - // track->SetValue(Track::DURATION, trackQuery.ColumnText(4)); - // track->SetValue(Track::FILESIZE, trackQuery.ColumnText(5)); - // track->SetValue(Track::YEAR, trackQuery.ColumnText(6)); - // track->SetValue(Track::TITLE, trackQuery.ColumnText(7)); - // track->SetValue(Track::FILENAME, trackQuery.ColumnText(8)); - // track->SetValue(Track::THUMBNAIL_ID, trackQuery.ColumnText(9)); - // track->SetValue(Track::ALBUM, album.c_str()); - // track->SetValue(Track::GENRE, trackQuery.ColumnText(11)); - // track->SetValue(Track::ARTIST, trackQuery.ColumnText(12)); - // track->SetValue(Track::FILETIME, trackQuery.ColumnText(13)); - result->Add(id); ++index; } diff --git a/src/musikbox/app/query/CategoryTrackListQuery.h b/src/musikbox/app/query/CategoryTrackListQuery.h index 770c6a53b..da7f49e36 100755 --- a/src/musikbox/app/query/CategoryTrackListQuery.h +++ b/src/musikbox/app/query/CategoryTrackListQuery.h @@ -66,7 +66,6 @@ namespace musik { Headers headers; std::string column; DBID id; - std::string query; size_t hash; }; } diff --git a/src/musikbox/musikbox.vcxproj b/src/musikbox/musikbox.vcxproj index c73cdf721..591b9e2b1 100755 --- a/src/musikbox/musikbox.vcxproj +++ b/src/musikbox/musikbox.vcxproj @@ -120,6 +120,7 @@ + @@ -163,6 +164,7 @@ + diff --git a/src/musikbox/musikbox.vcxproj.filters b/src/musikbox/musikbox.vcxproj.filters index 624a05231..db6a3e64a 100755 --- a/src/musikbox/musikbox.vcxproj.filters +++ b/src/musikbox/musikbox.vcxproj.filters @@ -111,6 +111,9 @@ app\util + + app\model + @@ -264,6 +267,9 @@ app\util + + app\model + @@ -287,5 +293,8 @@ {f2315c14-fb1b-4928-ab47-462d1dc65c77} + + {b6720351-dd55-4b14-936a-09df56193c15} + \ No newline at end of file