Browse Source

Thom Johansen fix for port buffer alignment issues.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1407 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.62
sletz 18 years ago
parent
commit
0625d0e74e
2 changed files with 12 additions and 1 deletions
  1. +4
    -0
      ChangeLog
  2. +8
    -1
      common/JackPort.h

+ 4
- 0
ChangeLog View File

@@ -2,6 +2,10 @@
Jackdmp changes log
---------------------------

2007-02-07 Stephane Letz <letz@grame.fr>
* Thom Johansen fix for port buffer alignment issues.

2007-02-05 Stephane Letz <letz@grame.fr>
* Add Pieter Palmers FreeBob driver.


+ 8
- 1
common/JackPort.h View File

@@ -52,7 +52,14 @@ class JackPort
bool fLocked;
jack_port_id_t fTied; // Locally tied source port

float fBuffer[BUFFER_SIZE_MAX];
#ifdef WIN32
__declspec(align(16)) float fBuffer[BUFFER_SIZE_MAX];
#elif __GNUC__
float fBuffer[BUFFER_SIZE_MAX] __attribute__((aligned(16)));;
#else
#warning Buffer will not be aligned on 16 bytes boundaries : vector based code (Altivec of SSE) may fail
float fBuffer[BUFFER_SIZE_MAX];
#endif

bool IsUsed() const;


Loading…
Cancel
Save