diff options
author | Max Kellermann <max@duempel.org> | 2013-01-02 19:12:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-02 19:12:27 +0100 |
commit | a6371e2e664e4bc1ff78d881cfd2c9b5fa3909e8 (patch) | |
tree | 39da37ce46f6874f17267b00de099e87a235486c /src/dsd2pcm/noiseshape.hpp | |
parent | 7768baa4d13ca508080bb95fe58fe62e7ef69ee9 (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.
Diffstat (limited to 'src/dsd2pcm/noiseshape.hpp')
-rw-r--r-- | src/dsd2pcm/noiseshape.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/dsd2pcm/noiseshape.hpp b/src/dsd2pcm/noiseshape.hpp index 726272f9..1fc698b3 100644 --- a/src/dsd2pcm/noiseshape.hpp +++ b/src/dsd2pcm/noiseshape.hpp @@ -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; } |