Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
ee3cbce5
Commit
ee3cbce5
authored
6 years ago
by
Jenkins2
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "bridge_softmix_binaural: Enable FFTW3 in Solaris 11."
parents
57231c12
804d931f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bridges/bridge_softmix/bridge_softmix_binaural.c
+3
-3
3 additions, 3 deletions
bridges/bridge_softmix/bridge_softmix_binaural.c
configure
+10
-10
10 additions, 10 deletions
configure
configure.ac
+1
-1
1 addition, 1 deletion
configure.ac
with
14 additions
and
14 deletions
bridges/bridge_softmix/bridge_softmix_binaural.c
+
3
−
3
View file @
ee3cbce5
...
@@ -193,12 +193,12 @@ int init_convolve_channel(struct convolve_channel *channel, unsigned int hrtf_le
...
@@ -193,12 +193,12 @@ int init_convolve_channel(struct convolve_channel *channel, unsigned int hrtf_le
float
*
hrir
;
float
*
hrir
;
/* Prepare FFTW. */
/* Prepare FFTW. */
channel
->
fftw_in
=
fftw_alloc
_real
(
hrtf_len
+
1
);
channel
->
fftw_in
=
(
double
*
)
fftw_
m
alloc
(
sizeof
(
double
)
*
(
hrtf_len
+
1
)
)
;
if
(
channel
->
fftw_in
==
NULL
)
{
if
(
channel
->
fftw_in
==
NULL
)
{
return
-
1
;
return
-
1
;
}
}
channel
->
fftw_out
=
fftw_alloc
_real
(
hrtf_len
+
1
);
channel
->
fftw_out
=
(
double
*
)
fftw_
m
alloc
(
sizeof
(
double
)
*
(
hrtf_len
+
1
)
)
;
if
(
channel
->
fftw_out
==
NULL
)
{
if
(
channel
->
fftw_out
==
NULL
)
{
fftw_free
(
channel
->
fftw_in
);
fftw_free
(
channel
->
fftw_in
);
return
-
1
;
return
-
1
;
...
@@ -239,7 +239,7 @@ int init_convolve_channel(struct convolve_channel *channel, unsigned int hrtf_le
...
@@ -239,7 +239,7 @@ int init_convolve_channel(struct convolve_channel *channel, unsigned int hrtf_le
}
}
fftw_execute
(
channel
->
fftw_plan
);
fftw_execute
(
channel
->
fftw_plan
);
channel
->
hrtf
=
fftw_alloc
_real
(
hrtf_len
);
channel
->
hrtf
=
(
double
*
)
fftw_
m
alloc
(
sizeof
(
double
)
*
hrtf_len
);
if
(
channel
->
hrtf
==
NULL
)
{
if
(
channel
->
hrtf
==
NULL
)
{
fftw_free
(
channel
->
fftw_in
);
fftw_free
(
channel
->
fftw_in
);
fftw_free
(
channel
->
fftw_out
);
fftw_free
(
channel
->
fftw_out
);
...
...
This diff is collapsed.
Click to expand it.
configure
+
10
−
10
View file @
ee3cbce5
...
@@ -28201,9 +28201,9 @@ if test "x${PBX_FFTW3}" != "x1" -a "${USE_FFTW3}" != "no"; then
...
@@ -28201,9 +28201,9 @@ if test "x${PBX_FFTW3}" != "x1" -a "${USE_FFTW3}" != "no"; then
ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
CFLAGS="${CFLAGS} "
CFLAGS="${CFLAGS} "
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_alloc
_real
in -lfftw3" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_
m
alloc in -lfftw3" >&5
$as_echo_n "checking for fftw_alloc
_real
in -lfftw3... " >&6; }
$as_echo_n "checking for fftw_
m
alloc in -lfftw3... " >&6; }
if ${ac_cv_lib_fftw3_fftw_alloc
_real
+:} false; then :
if ${ac_cv_lib_fftw3_fftw_
m
alloc+:} false; then :
$as_echo_n "(cached) " >&6
$as_echo_n "(cached) " >&6
else
else
ac_check_lib_save_LIBS=$LIBS
ac_check_lib_save_LIBS=$LIBS
...
@@ -28217,27 +28217,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
...
@@ -28217,27 +28217,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus
#ifdef __cplusplus
extern "C"
extern "C"
#endif
#endif
char fftw_alloc
_real
();
char fftw_
m
alloc ();
int
int
main ()
main ()
{
{
return fftw_alloc
_real
();
return fftw_
m
alloc ();
;
;
return 0;
return 0;
}
}
_ACEOF
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_fftw3_fftw_alloc
_real
=yes
ac_cv_lib_fftw3_fftw_
m
alloc=yes
else
else
ac_cv_lib_fftw3_fftw_alloc
_real
=no
ac_cv_lib_fftw3_fftw_
m
alloc=no
fi
fi
rm -f core conftest.err conftest.$ac_objext \
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
LIBS=$ac_check_lib_save_LIBS
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_alloc
_real
" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_
m
alloc" >&5
$as_echo "$ac_cv_lib_fftw3_fftw_alloc
_real
" >&6; }
$as_echo "$ac_cv_lib_fftw3_fftw_
m
alloc" >&6; }
if test "x$ac_cv_lib_fftw3_fftw_alloc
_real
" = xyes; then :
if test "x$ac_cv_lib_fftw3_fftw_
m
alloc" = xyes; then :
AST_FFTW3_FOUND=yes
AST_FFTW3_FOUND=yes
else
else
AST_FFTW3_FOUND=no
AST_FFTW3_FOUND=no
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
1
−
1
View file @
ee3cbce5
...
@@ -2389,7 +2389,7 @@ AST_EXT_LIB_CHECK([PRI_REVERSE_CHARGE], [pri], [pri_sr_set_reversecharge], [libp
...
@@ -2389,7 +2389,7 @@ AST_EXT_LIB_CHECK([PRI_REVERSE_CHARGE], [pri], [pri_sr_set_reversecharge], [libp
# ------------------------------------^
# ------------------------------------^
AST_EXT_LIB_CHECK([RESAMPLE], [resample], [resample_open], [libresample.h], [-lm])
AST_EXT_LIB_CHECK([RESAMPLE], [resample], [resample_open], [libresample.h], [-lm])
AST_EXT_LIB_CHECK([FFTW3], [fftw3], [fftw_alloc
_real
], [fftw3.h])
AST_EXT_LIB_CHECK([FFTW3], [fftw3], [fftw_
m
alloc], [fftw3.h])
AST_EXT_LIB_CHECK([SNDFILE], [sndfile], [sf_open], [sndfile.h])
AST_EXT_LIB_CHECK([SNDFILE], [sndfile], [sf_open], [sndfile.h])
AST_C_COMPILE_CHECK([SPANDSP], [
AST_C_COMPILE_CHECK([SPANDSP], [
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment