Hi again,
well I was wrong that my problem has anything to do with the width of the
preview. It has something to do with the height of the presentation.
First I had changed the preview option of audio segements under
Settings->ConfigureRosegarden->Audio->AudioPreviewScale from "Linear"
to "Meter scaling".
After that I could load the wave file without a segfault.
Please Michael, if you find the time, take a look to that option. Maybe you
can reproduce the problem on your machine too.
Next I'd a look into the code of the AudioPreviewPainter::paintPreviewImage()
method.
- - - - - snipp - - - - -
from line 251:
if (meterLevels) {
h = AudioLevel::multiplier_to_preview(h2, m_height);
} else {
h = h2 * m_height;
}
if (h < 0) h = 0;
if (h > m_halfRectHeight) h = m_halfRectHeight; //###ciwe
for (int py = 0; py < h; ++py) {
m_image.setPixel(rectX, centre + py, pixel);
}
- - - - snapp - - - - -
after i inserted the ###ciwe marked line the crash has been gone. I'm not
absolutly shure if this is the correct test and assignment to "h" but this
solved the crashing for me for the moment.
///Chris
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel