History log of /haiku/src/apps/musiccollection/MusicCollectionWindow.cpp
Revision Date Author Comments
# 92eeb4af 14-Jul-2022 Pascal Abresch <nep@packageloss.eu>

apps/musiccollection: build fix

Change-Id: Ia2d4f5b9b80d9385c60136f8f6185c820be2181b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5446
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# ab05d368 17-Mar-2019 sushilhub <sushil.bit.cse@gmail.com>

src/apps: style fixes

* add break statement to the last clause of switch/cases
* fix some other minor issues

Change-Id: I9ac3dac0cda0b14043b975938caea88b79bb749f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1299
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 1f4fe8a4 14-Apr-2013 Alexander von Gluck IV <kallisti5@unixzen.com>

MusicCollection: Fix build

* Include Debug.h for printf


# 548c3026 17-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Adjust MusicCollection app for changes in BALMLayout.


# 08c9600a 14-May-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Add a simple query app to search all music files on all volumes. Entries are searched and displayed on the fly while typing the search string. The query searches for artist, album and title. After some smaller improvements it could be integrated into media player.

While I was missing such an application I also used it as a playground for eventual tracker improvements. At the moment it works this way: The query is read in a background thread where a list of entry_ref is filled. The entries are exchanged thread safe with the display view using two entry_ref lists which are swapped when the view handled all entries from one list... The view is responsible to display the entry_ref's and load all attributes. In a future directory view, the view would be responsible to load all additional attributes. For example, first fetch the sort column and then asynchronously the rest (as discussed on the mailing list).

- I found the following query issue: when displaying the whole collection the query uses a empty string, the problem is that empty strings are not handled in live queries. For example, when adding a new Media:Artist attribute to a file the file does not show up in the query. Running a none empty query, e.g. Media:Artist contains "test" it shows up. Thats a bug right?

- Only tested it with just ~2100 music file and the on the fly performance is very good. Displaying the complete music list is quite slow, though. This seems to be not a query problem but more a BOutlineView issue. Adding new items to the list seems to be expensive...

- At the moment a new query is started each time you typing a char. A faster solution would be to start just one query in the beginning and then just filter this list. Since BOutlineView seems to be the bottleneck I kept it this way for now. Furthermore, it is a nice performance test for queries.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41493 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1f4fe8a48a47754ddc2c6feb4f171a10e7c03360 14-Apr-2013 Alexander von Gluck IV <kallisti5@unixzen.com>

MusicCollection: Fix build

* Include Debug.h for printf


# 548c302600b4b8818aa949051fc3c0ec59ebd193 17-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Adjust MusicCollection app for changes in BALMLayout.


# 08c9600ab9427c3023d0999fea557dd51343170c 14-May-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Add a simple query app to search all music files on all volumes. Entries are searched and displayed on the fly while typing the search string. The query searches for artist, album and title. After some smaller improvements it could be integrated into media player.

While I was missing such an application I also used it as a playground for eventual tracker improvements. At the moment it works this way: The query is read in a background thread where a list of entry_ref is filled. The entries are exchanged thread safe with the display view using two entry_ref lists which are swapped when the view handled all entries from one list... The view is responsible to display the entry_ref's and load all attributes. In a future directory view, the view would be responsible to load all additional attributes. For example, first fetch the sort column and then asynchronously the rest (as discussed on the mailing list).

- I found the following query issue: when displaying the whole collection the query uses a empty string, the problem is that empty strings are not handled in live queries. For example, when adding a new Media:Artist attribute to a file the file does not show up in the query. Running a none empty query, e.g. Media:Artist contains "test" it shows up. Thats a bug right?

- Only tested it with just ~2100 music file and the on the fly performance is very good. Displaying the complete music list is quite slow, though. This seems to be not a query problem but more a BOutlineView issue. Adding new items to the list seems to be expensive...

- At the moment a new query is started each time you typing a char. A faster solution would be to start just one query in the beginning and then just filter this list. Since BOutlineView seems to be the bottleneck I kept it this way for now. Furthermore, it is a nice performance test for queries.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41493 a95241bf-73f2-0310-859d-f6bbb57e9c96