Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
resampler_backend.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Roc Streaming authors
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 
9 //! @file roc_audio/resampler_backend.h
10 //! @brief Resampler backend.
11 
12 #ifndef ROC_AUDIO_RESAMPLER_BACKEND_H_
13 #define ROC_AUDIO_RESAMPLER_BACKEND_H_
14 
15 namespace roc {
16 namespace audio {
17 
18 //! Resampler backends.
20  //! Default backend.
21  //! Resolved to one of other backends, depending on what
22  //! is enabled at build time.
24 
25  //! Built-in resampler.
26  //! High precision, high quality, slow.
28 
29  //! SpeexDSP resampler.
30  //! Low precision, high quality, fast.
31  //! May be disabled at build time.
33 
34  //! Combined SpeexDSP + decimating resampler.
35  //! Tolerable precision, tolerable quality, fast.
36  //! May be disabled at build time.
38 };
39 
40 //! Get string name of resampler backend.
42 
43 } // namespace audio
44 } // namespace roc
45 
46 #endif // ROC_AUDIO_RESAMPLER_BACKEND_H_
ResamplerBackend
Resampler backends.
@ ResamplerBackend_SpeexDec
Combined SpeexDSP + decimating resampler. Tolerable precision, tolerable quality, fast....
@ ResamplerBackend_Builtin
Built-in resampler. High precision, high quality, slow.
@ ResamplerBackend_Default
Default backend. Resolved to one of other backends, depending on what is enabled at build time.
@ ResamplerBackend_Speex
SpeexDSP resampler. Low precision, high quality, fast. May be disabled at build time.
const char * resampler_backend_to_str(ResamplerBackend)
Get string name of resampler backend.
Root namespace.