Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
a6371e2e
Commit
a6371e2e
authored
Jan 02, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: disable C++ exceptions
We don't use exceptions currently. Since allowing exceptions means a lot of overhead, this commit disables the feature.
parent
7768baa4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
configure.ac
configure.ac
+1
-0
dsd2pcm.hpp
src/dsd2pcm/dsd2pcm.hpp
+2
-4
noiseshape.hpp
src/dsd2pcm/noiseshape.hpp
+3
-6
No files found.
configure.ac
View file @
a6371e2e
...
...
@@ -1541,6 +1541,7 @@ if test "x$enable_debug" = xno; then
AX_APPEND_COMPILE_FLAGS([-fvisibility=hidden])
AX_APPEND_COMPILE_FLAGS([-fno-threadsafe-statics])
AX_APPEND_COMPILE_FLAGS([-fmerge-all-constants])
AX_APPEND_COMPILE_FLAGS([-fno-exceptions])
AC_LANG_POP
AX_APPEND_LINK_FLAGS([-Wl,--gc-sections])
...
...
src/dsd2pcm/dsd2pcm.hpp
View file @
a6371e2e
...
...
@@ -13,11 +13,9 @@ class dxd
{
dsd2pcm_ctx
*
handle
;
public
:
dxd
()
:
handle
(
dsd2pcm_init
())
{
if
(
!
handle
)
throw
std
::
runtime_error
(
"wtf?!"
);
}
dxd
()
:
handle
(
dsd2pcm_init
())
{}
dxd
(
dxd
const
&
x
)
:
handle
(
dsd2pcm_clone
(
x
.
handle
))
{
if
(
!
handle
)
throw
std
::
runtime_error
(
"wtf?!"
);
}
dxd
(
dxd
const
&
x
)
:
handle
(
dsd2pcm_clone
(
x
.
handle
))
{}
~
dxd
()
{
dsd2pcm_destroy
(
handle
);
}
...
...
src/dsd2pcm/noiseshape.hpp
View file @
a6371e2e
...
...
@@ -14,14 +14,12 @@ class noise_shaper
public
:
noise_shaper
(
int
sos_count
,
const
float
*
bbaa
)
{
if
(
noise_shape_init
(
&
ctx
,
sos_count
,
bbaa
))
throw
std
::
runtime_error
(
"noise shaper initialization failed"
);
noise_shape_init
(
&
ctx
,
sos_count
,
bbaa
);
}
noise_shaper
(
noise_shaper
const
&
x
)
{
if
(
noise_shape_clone
(
&
x
.
ctx
,
&
ctx
))
throw
std
::
runtime_error
(
"noise shaper initialization failed"
);
noise_shape_clone
(
&
x
.
ctx
,
&
ctx
);
}
~
noise_shaper
()
...
...
@@ -31,8 +29,7 @@ public:
{
if
(
this
!=
&
x
)
{
noise_shape_destroy
(
&
ctx
);
if
(
noise_shape_clone
(
&
x
.
ctx
,
&
ctx
))
throw
std
::
runtime_error
(
"noise shaper initialization failed"
);
noise_shape_clone
(
&
x
.
ctx
,
&
ctx
);
}
return
*
this
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment