Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Album art and buffering
« previous next »
  • Print
Pages: [1]

Author Topic: Album art and buffering  (Read 1981 times)

Offline ell1ps1s

  • Member
  • *
  • Posts: 36
Album art and buffering
« on: November 15, 2007, 04:01:28 PM »
If a 'cover.bmp' file is present for the currently playing music file, is it always loaded to the buffer, or only if the current wps contains a %Cl tag?
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Album art and buffering
« Reply #1 on: November 16, 2007, 03:06:23 AM »
I'm pretty sure it'll always be loaded, regardless of the WPS.
Logged

Read The Manual Please

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Album art and buffering
« Reply #2 on: November 16, 2007, 03:27:39 AM »
It really ought to be, otherwise you couldn't switch to an AA supporting WPS without rebuffering.

And it's not like we don't load the "Artist" tag if the WPS doesn't show "Artist" for example.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Album art and buffering
« Reply #3 on: November 16, 2007, 03:47:19 AM »
I just don't imagine that the buffering code really cares about what WPS you're running. I'd be surprised if it was even aware of the WPS code at all.
Logged

Read The Manual Please

Offline dionoea

  • Member
  • *
  • Posts: 30
Re: Album art and buffering
« Reply #4 on: November 16, 2007, 04:24:14 AM »
Nico_P could confirm, but I'm pretty sure that he included a function like wps_uses_album_art() which is called before buffering the bmp. You don't change WPS that often so I guess that it's not a problem if album art isn't buffered right after a WPS change.
Logged

Offline dionoea

  • Member
  • *
  • Posts: 30
Re: Album art and buffering
« Reply #5 on: November 16, 2007, 04:42:29 AM »
Here it is (in apps/playback.c):
Code: [Select]
#ifdef HAVE_ALBUMART
    if (tracks[track_widx].aa_hid < 0 && gui_sync_wps_uses_albumart())
    {
        char aa_path[MAX_PATH];
        if (find_albumart(track_id3, aa_path, sizeof(aa_path)))
            tracks[track_widx].aa_hid = bufopen(aa_path, 0, TYPE_BITMAP);
    }
#endif

So bufopen() doesn't get called if the wps doesn't uses album art.
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 195
Re: Album art and buffering
« Reply #6 on: November 16, 2007, 10:36:34 AM »
dionoea got it right :) The bitmaps won't e buffered if you don't use an AA WPS. I think people who don't use AA would be angry if it was always buffered, and I would understand. If you change from a non-AA WPS to an AA WPS, the songs that were already buffered won't have their AA displayed, but the following ones will.
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: Album art and buffering
« Reply #7 on: November 16, 2007, 12:27:52 PM »
Also, it's not just the buffering - it's also the searching the various directories and filenames for the .bmp file itself.  I don't think we want Rockbox to do that for every track if it doesn't need to (i.e. the WPS doesn't display the album art).
Logged

Offline ell1ps1s

  • Member
  • *
  • Posts: 36
Re: Album art and buffering
« Reply #8 on: November 16, 2007, 03:28:08 PM »
Thanks, folks. That makes a lot of sense.
And thanks to the developers involved for doing it the clever way, rather than the obvious, easy way.  :)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Album art and buffering
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.099 seconds with 14 queries.