Index: libs/ardour/session.cc
===================================================================
--- libs/ardour/session.cc	(revision 3470)
+++ libs/ardour/session.cc	(working copy)
@@ -3731,7 +3731,7 @@
 #ifdef NO_POSIX_MEMALIGN
 		p =  (Sample *) malloc(current_block_size * sizeof(Sample));
 #else
-		if (posix_memalign((void **)&p,CPU_CACHE_ALIGN,current_block_size * 4) != 0) {
+		if (posix_memalign((void **)&p,CPU_CACHE_ALIGN,current_block_size * sizeof(Sample)) != 0) {
 			fatal << string_compose (_("Memory allocation error: posix_memalign (%1 * %2) failed (%3)"),
 						 current_block_size, sizeof (Sample), strerror (errno))
 			      << endmsg;
@@ -4131,7 +4131,7 @@
 #ifdef NO_POSIX_MEMALIGN
 			p =  (Sample *) malloc(current_block_size * sizeof(Sample));
 #else
-			if (posix_memalign((void **)&p,CPU_CACHE_ALIGN,current_block_size * 4) != 0) {
+			if (posix_memalign((void **)&p,CPU_CACHE_ALIGN,current_block_size * sizeof(Sample)) != 0) {
 				fatal << string_compose (_("Memory allocation error: posix_memalign (%1 * %2) failed (%3)"),
 							 current_block_size, sizeof (Sample), strerror (errno))
 				      << endmsg;
