FreeBSD Bugzilla – Attachment 200715 Details for
Bug 234574
audio/jack: jackd dies with SIGBUS using 24 bit OSS devices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Round up internal buffer sizes to make buffer offsets 16 byte aligned.
patch-libjack_port.c (text/plain), 709 bytes, created by
Florian Walpen
on 2019-01-02 15:27:27 UTC
(
hide
)
Description:
Round up internal buffer sizes to make buffer offsets 16 byte aligned.
Filename:
MIME Type:
Creator:
Florian Walpen
Created:
2019-01-02 15:27:27 UTC
Size:
709 bytes
patch
obsolete
>--- libjack/port.c.orig 2019-01-02 01:51:31 UTC >+++ libjack/port.c >@@ -630,13 +630,22 @@ jack_port_get_buffer (jack_port_t *port, jack_nframes_ > size_t > jack_port_type_buffer_size (jack_port_type_info_t* port_type_info, jack_nframes_t nframes) > { >+ size_t size; >+ > if ( port_type_info->buffer_scale_factor < 0 ) { > return port_type_info->buffer_size; > } > >- return port_type_info->buffer_scale_factor >+ size = port_type_info->buffer_scale_factor > * sizeof(jack_default_audio_sample_t) > * nframes; >+ >+#ifdef USE_DYNSIMD >+ /* Round up to the next multiple of 16 bytes, align buffers for SIMD. */ >+ size = (size + 15) & (~ (size_t)0x0f); >+#endif /* USE_DYNSIMD */ >+ >+ return size; > } > > int
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 234574
: 200715