diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-06-18 16:16:47 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-06-18 16:16:47 +0000 |
commit | 6f7d8728c82d8f311e2e67521d63e67b2147c5e9 (patch) | |
tree | 9ae7c65b743150e7ec7c18ede6c829fed4cb910c /libs/ardour/session.cc | |
parent | 7b652d8a58e2a1c5d1d3a24752351231b61ea3a0 (diff) |
patch from colinf for #2305 to use sizeof(Sample)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3473 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 27eab8d57a..13358d99de 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -3731,7 +3731,7 @@ Session::ensure_passthru_buffers (uint32_t howmany) #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 @@ Session::get_silent_buffers (uint32_t howmany) #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; |