On Wednesday 07 Dec 2005 14:35, Guillaume Laurent wrote: > Chris Cannam wrote: > > but no preview appears, at the initial zoom level, on either file. > > For the moment I've only tested by loading a doc with a long audio > segment in. I'll try adding an audio seg.
Doesn't make any difference whether the audio segment is there in a file that is loaded, or whether I add it afterwards. All that seems to matter is how wide the segment rectangle would be (if it was all visible) at the given zoom level. Anything wider than about 5000 pixels, and the preview won't appear. > > Continuing to reduce the zoom level, I finally get a preview for the > > longer file at a zoom of 5%. Raising it to 10% again loses me the > > preview. > > Yikes. How long (time-wise) is the audio seg ? 10-15mns ? 34 minutes -- 365MB -- but that's not really relevant, as the much shorter segment (of three minutes or so) shows exactly the same problem, it's just that the preview appears sooner as you reduce zoom (i.e. at 50% instead of 5% -- notice that these are in proportion to their relative lengths). > > I'm still > > dubious about the idea of trying to store pixmaps for the entire segment, > > in terms of memory consumption on the X server, though. > > The hard part is the tiling, and so far I believe I got that right. We > can store QImages instead if we really have to. Or, assuming we can get decent-sized tiles to work at all, maybe we could avoid generating the ones that aren't visible, until they're exposed. Or generate the ones that are visible and one neighbouring tile on either side, or something. What I'd probably like to see in that situation would be for the audio preview to be calculated (by that background thread) for all segments when the file is loaded -- not just when the segments are exposed -- and then for the preview bitmaps themselves to be only calculated on demand, or thereabouts. Chris ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Rosegarden-devel mailing list Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel