[ardour-dev] Patch for trimming start of region on 64bit

Christopher K. George ckg at YaleSDA.org
Mon Jul 4 12:01:40 PDT 2005


There are likely other problems similar to this, but this is the first
long-int-on-64-bit problem I've traced down:

When trimming the start of a region on a 64 bit system, trimming backward, or
reextending the region, causes the waveform to disappear and several error
messages to be printed.  Only an undo will remedy the problem.

This problem resides in libs/ardour/region.cc's function
Region::trim_to_internal.  On a 64-bit system a long int is 8 bytes wide
making an explicit cast necessary when calculating the region's start_shift. 
The attached patch fixes the problem on 64-bit and shouldn't adversly affect
32 bit.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: region.patch
Type: application/octet-stream
Size: 385 bytes
Desc: not available
URL: <http://lists.ardour.org/pipermail/ardour-dev-ardour.org/attachments/20050704/e279147d/attachment.obj>

More information about the Ardour-Dev mailing list