Audacity 3.2.0
FormantShifterLoggerInterface.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 FormantShifterLoggerInterface.h
7
8 A visualization helper for the development of the formant shifter.
9
10 Matthieu Hodgkinson
11
12**********************************************************************/
13#pragma once
14
15#include <complex>
16#include <functional>
17
19{
20public:
21 virtual ~FormantShifterLoggerInterface() = default;
22
23 virtual void NewSamplesComing(int sampleCount) = 0;
24
25 virtual void Log(int value, const char* name) const = 0;
26
27 virtual void
28 Log(const float* samples, size_t size, const char* name) const = 0;
29
30 virtual void Log(
31 const std::complex<float>* samples, size_t size, const char* name,
32 const std::function<float(const std::complex<float>&)>& transform)
33 const = 0;
34
40 virtual void
41 ProcessFinished(std::complex<float>* spectrum, size_t fftSize) = 0;
42};
wxString name
Definition: TagsEditor.cpp:166
virtual void Log(int value, const char *name) const =0
virtual void NewSamplesComing(int sampleCount)=0
virtual void ProcessFinished(std::complex< float > *spectrum, size_t fftSize)=0
If not already, disables the logging and marks the spectrum with an audible event to make clear where...
virtual void Log(const float *samples, size_t size, const char *name) const =0
virtual void Log(const std::complex< float > *samples, size_t size, const char *name, const std::function< float(const std::complex< float > &)> &transform) const =0
virtual ~FormantShifterLoggerInterface()=default
Positions or offsets within audio files need a wide type.
Definition: SampleCount.h:19