Browse Source

Replace AUDACITY_DLL_API with TENACITY_DLL_API

Signed-off-by: Leon Marz <main@lmarz.org>
pull/523/head
Leon Marz 2 years ago
parent
commit
80dc2cb7d6
  1. 2
      audacity.dox.in
  2. 2
      images/Cursors.h
  3. 2
      include/tenacity/ComponentInterface.h
  4. 2
      include/tenacity/ConfigInterface.h
  5. 10
      include/tenacity/EffectInterface.h
  6. 2
      include/tenacity/PluginInterface.h
  7. 2
      modules/mod-script-pipe/ScripterCallback.h
  8. 2
      src/AColor.h
  9. 2
      src/AboutDialog.h
  10. 2
      src/AdornedRulerPanel.h
  11. 4
      src/AudacityException.h
  12. 2
      src/AudacityFileConfig.h
  13. 2
      src/AudacityLogger.h
  14. 10
      src/AudioIO.h
  15. 18
      src/AudioIOBase.h
  16. 2
      src/AudioIOListener.h
  17. 2
      src/Benchmark.h
  18. 6
      src/CMakeLists.txt
  19. 2
      src/CellularPanel.h
  20. 4
      src/ClientData.h
  21. 4
      src/Clipboard.h
  22. 14
      src/CommonCommandFlags.h
  23. 2
      src/DBConnection.h
  24. 6
      src/DeviceManager.h
  25. 2
      src/Dither.h
  26. 2
      src/Envelope.h
  27. 2
      src/EnvelopeEditor.h
  28. 16
      src/FFT.h
  29. 2
      src/FileException.h
  30. 30
      src/FileFormats.h
  31. 2
      src/FileIO.h
  32. 96
      src/FileNames.h
  33. 2
      src/FreqWindow.h
  34. 8
      src/HelpText.h
  35. 18
      src/ImageManipulation.h
  36. 2
      src/InconsistencyException.h
  37. 2
      src/InterpolateAudio.h
  38. 16
      src/KeyboardCapture.h
  39. 12
      src/LabelTrack.h
  40. 12
      src/MacroMagic.h
  41. 4
      src/Menus.h
  42. 8
      src/Mix.h
  43. 6
      src/ModuleManager.h
  44. 2
      src/NoteTrack.h
  45. 16
      src/PitchName.h
  46. 2
      src/PlatformCompatibility.h
  47. 2
      src/PlaybackSchedule.h
  48. 4
      src/PluginManager.h
  49. 18
      src/Prefs.h
  50. 10
      src/Project.cpp
  51. 20
      src/Project.h
  52. 2
      src/ProjectAudioIO.h
  53. 10
      src/ProjectAudioManager.h
  54. 10
      src/ProjectFileIO.h
  55. 2
      src/ProjectFileIORegistry.h
  56. 2
      src/ProjectFileManager.h
  57. 2
      src/ProjectHistory.h
  58. 2
      src/ProjectManager.cpp
  59. 2
      src/ProjectManager.h
  60. 2
      src/ProjectSelectionManager.h
  61. 2
      src/ProjectSerializer.h
  62. 4
      src/ProjectSettings.h
  63. 6
      src/ProjectStatus.h
  64. 2
      src/ProjectWindow.h
  65. 2
      src/ProjectWindowBase.h
  66. 12
      src/RealFFTf.h
  67. 2
      src/Registrar.h
  68. 16
      src/Registry.h
  69. 2
      src/Resample.h
  70. 14
      src/SampleFormat.h
  71. 2
      src/Screenshot.h
  72. 16
      src/SelectUtilities.h
  73. 2
      src/SelectedRegion.h
  74. 4
      src/SelectionState.h
  75. 4
      src/Sequence.h
  76. 6
      src/Shuttle.h
  77. 2
      src/ShuttleGetDefinition.h
  78. 10
      src/ShuttleGui.h
  79. 2
      src/Snap.h
  80. 2
      src/Spectrum.h
  81. 4
      src/SpectrumAnalyst.h
  82. 2
      src/Tags.h
  83. 14
      src/TempDirectory.h
  84. 2
      src/Theme.cpp
  85. 12
      src/Theme.h
  86. 2
      src/TimeDialog.h
  87. 2
      src/TimeTrack.h
  88. 24
      src/Track.h
  89. 16
      src/TrackArtist.h
  90. 46
      src/TrackInfo.h
  91. 6
      src/TrackPanel.h
  92. 4
      src/TrackPanelAx.h
  93. 6
      src/TrackPanelCell.h
  94. 2
      src/TrackPanelDrawable.h
  95. 2
      src/TrackPanelListener.h
  96. 10
      src/TrackUtilities.h
  97. 2
      src/UIHandle.h
  98. 14
      src/UndoManager.h
  99. 2
      src/UserException.h
  100. 6
      src/ViewInfo.h

2
audacity.dox.in

@ -2061,7 +2061,7 @@ INCLUDE_FILE_PATTERNS =
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
PREDEFINED = AUDACITY_DLL_API \
PREDEFINED = TENACITY_DLL_API \
USE_VST=1 \
USE_FFMPEG=1 \
USE_LV2=1 \

2
images/Cursors.h

@ -33,5 +33,5 @@
#include "Cursors32/ArrowRightCursor.xpm"
#include "Cursors32/DrawToolSmoothing.xpm"
AUDACITY_DLL_API
TENACITY_DLL_API
std::unique_ptr<wxCursor> MakeCursor(int WXUNUSED(CursorId), const char * const pXpm[36], int HotX, int HotY);

2
include/tenacity/ComponentInterface.h

@ -58,7 +58,7 @@ plugins. It is what makes a class a plug-in. Additionally it provides an
optional parameter definitions function, for those components such as commands,
effects and (soon) preference pagess that define parameters.
********************************************************************************/
class AUDACITY_DLL_API ComponentInterface /* not final */
class TENACITY_DLL_API ComponentInterface /* not final */
{
public:
virtual ~ComponentInterface() {};

2
include/tenacity/ConfigInterface.h

@ -53,7 +53,7 @@ differentiates between private and shared config. It should probably be replace
with a Shuttle.
*******************************************************************************************/
class AUDACITY_DLL_API ConfigClientInterface /* not final */
class TENACITY_DLL_API ConfigClientInterface /* not final */
{
public:
virtual ~ConfigClientInterface() {};

10
include/tenacity/EffectInterface.h

@ -71,7 +71,7 @@ typedef enum EffectType : int
flag-functions for interactivity, play-preview and whether the effect can run without a GUI.
*******************************************************************************************/
class AUDACITY_DLL_API EffectDefinitionInterface /* not final */ : public ComponentInterface
class TENACITY_DLL_API EffectDefinitionInterface /* not final */ : public ComponentInterface
{
public:
virtual ~EffectDefinitionInterface() {};
@ -116,7 +116,7 @@ virtual (abstract) functions to get presets and actually apply the effect. It u
ConfigClientInterface to add Getters/setters for private and shared configs.
*******************************************************************************************/
class AUDACITY_DLL_API EffectHostInterface /* not final */ : public ConfigClientInterface
class TENACITY_DLL_API EffectHostInterface /* not final */ : public ConfigClientInterface
{
public:
virtual ~EffectHostInterface() {};
@ -141,7 +141,7 @@ Effect into a plug-in command. It has functions for realtime that are not part
AudacityCommand.
*******************************************************************************************/
class AUDACITY_DLL_API EffectClientInterface /* not final */ : public EffectDefinitionInterface
class TENACITY_DLL_API EffectClientInterface /* not final */ : public EffectDefinitionInterface
{
public:
using EffectDialogFactory = std::function<
@ -213,7 +213,7 @@ can call SetHostUI passing in a pointer to an EffectUIHostInterface. It contain
functionality and is provided, apparently, for type checking. Since only EffectUIHost
uses it, EffectUIHost could be used instead.
*******************************************************************************************/
class AUDACITY_DLL_API EffectUIHostInterface
class TENACITY_DLL_API EffectUIHostInterface
{
public:
virtual ~EffectUIHostInterface() {};
@ -227,7 +227,7 @@ public:
values. It can import and export presets.
*******************************************************************************************/
class AUDACITY_DLL_API EffectUIClientInterface /* not final */
class TENACITY_DLL_API EffectUIClientInterface /* not final */
{
public:
virtual ~EffectUIClientInterface() {};

2
include/tenacity/PluginInterface.h

@ -50,7 +50,7 @@
class ModuleInterface;
class AUDACITY_DLL_API PluginManagerInterface /* not final */
class TENACITY_DLL_API PluginManagerInterface /* not final */
{
public:

2
modules/mod-script-pipe/ScripterCallback.h

@ -19,7 +19,7 @@
#elif _DLL
#define SCRIPT_PIPE_DLL_API _declspec(dllimport)
#else
#define AUDACITY_DLL_API
#define TENACITY_DLL_API
#endif
#endif //_MSC_VER

2
src/AColor.h

@ -22,7 +22,7 @@ class wxDC;
class wxGraphicsContext;
class wxRect;
class AUDACITY_DLL_API AColor {
class TENACITY_DLL_API AColor {
public:
enum ColorGradientChoice {

2
src/AboutDialog.h

@ -27,7 +27,7 @@ struct AboutDialogCreditItem
using AboutDialogCreditItemsList = std::vector<AboutDialogCreditItem>;
class AUDACITY_DLL_API AboutDialog final : public wxDialogWrapper{
class TENACITY_DLL_API AboutDialog final : public wxDialogWrapper{
DECLARE_DYNAMIC_CLASS(AboutDialog)
public:

2
src/AdornedRulerPanel.h

@ -23,7 +23,7 @@ class SnapManager;
class TrackList;
// This is an Audacity Specific ruler panel.
class AUDACITY_DLL_API AdornedRulerPanel final
class TENACITY_DLL_API AdornedRulerPanel final
: public CellularPanel
, private PrefsListener
{

4
src/AudacityException.h

@ -53,7 +53,7 @@ protected:
//! Abstract AudacityException subclass displays a message, specified by further subclass
/*! At most one message will be displayed for each pass through the main event idle loop,
no matter how many exceptions were caught. */
class AUDACITY_DLL_API MessageBoxException /* not final */
class TENACITY_DLL_API MessageBoxException /* not final */
: public AudacityException
{
//! Privatize the inherited function
@ -86,7 +86,7 @@ protected:
};
//! A MessageBoxException that shows a given, unvarying string.
class AUDACITY_DLL_API SimpleMessageBoxException /* not final */
class TENACITY_DLL_API SimpleMessageBoxException /* not final */
: public MessageBoxException
{
public:

2
src/AudacityFileConfig.h

@ -16,7 +16,7 @@ Paul Licameli split from Prefs.h
#include "widgets/FileConfig.h" // to inherit
/// \brief Our own specialisation of FileConfig.
class AUDACITY_DLL_API AudacityFileConfig final : public FileConfig
class TENACITY_DLL_API AudacityFileConfig final : public FileConfig
{
public:
//! Require a call to this factory, to guarantee proper two-phase initialization

2
src/AudacityLogger.h

@ -26,7 +26,7 @@
class wxFrame;
class wxTextCtrl;
class AUDACITY_DLL_API AudacityLogger final : public wxEvtHandler,
class TENACITY_DLL_API AudacityLogger final : public wxEvtHandler,
public wxLog,
public PrefsListener
{

10
src/AudioIO.h

@ -66,11 +66,11 @@ bool ValidateDeviceNames();
#define MAX_MIDI_BUFFER_SIZE 5000
#define DEFAULT_SYNTH_LATENCY 5
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
EVT_AUDIOIO_PLAYBACK, wxCommandEvent);
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
EVT_AUDIOIO_CAPTURE, wxCommandEvent);
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
EVT_AUDIOIO_MONITOR, wxCommandEvent);
// PRL:
@ -228,7 +228,7 @@ void MessageBuffer<Data>::Write( Data &&data )
mSlots[idx].mBusy.store( false, std::memory_order_release );
}
class AUDACITY_DLL_API AudioIoCallback /* not final */
class TENACITY_DLL_API AudioIoCallback /* not final */
: public AudioIOBase
{
public:
@ -580,7 +580,7 @@ protected:
PlaybackSchedule mPlaybackSchedule;
};
class AUDACITY_DLL_API AudioIO final : public AudioIoCallback
class TENACITY_DLL_API AudioIO final : public AudioIoCallback
{
AudioIO();

18
src/AudioIOBase.h

@ -118,7 +118,7 @@ struct AudioIOStartStreamOptions
///\brief A singleton object supporting queries of the state of any active
/// audio streams, and audio device capabilities
class AUDACITY_DLL_API AudioIOBase /* not final */
class TENACITY_DLL_API AudioIOBase /* not final */
: public NonInterferingBase
{
public:
@ -344,11 +344,11 @@ protected:
#include "Prefs.h"
extern AUDACITY_DLL_API StringSetting AudioIOHost;
extern AUDACITY_DLL_API DoubleSetting AudioIOLatencyCorrection;
extern AUDACITY_DLL_API DoubleSetting AudioIOLatencyDuration;
extern AUDACITY_DLL_API StringSetting AudioIOPlaybackDevice;
extern AUDACITY_DLL_API IntSetting AudioIORecordChannels;
extern AUDACITY_DLL_API StringSetting AudioIORecordingDevice;
extern AUDACITY_DLL_API StringSetting AudioIORecordingSource;
extern AUDACITY_DLL_API IntSetting AudioIORecordingSourceIndex;
extern TENACITY_DLL_API StringSetting AudioIOHost;
extern TENACITY_DLL_API DoubleSetting AudioIOLatencyCorrection;
extern TENACITY_DLL_API DoubleSetting AudioIOLatencyDuration;
extern TENACITY_DLL_API StringSetting AudioIOPlaybackDevice;
extern TENACITY_DLL_API IntSetting AudioIORecordChannels;
extern TENACITY_DLL_API StringSetting AudioIORecordingDevice;
extern TENACITY_DLL_API StringSetting AudioIORecordingSource;
extern TENACITY_DLL_API IntSetting AudioIORecordingSourceIndex;

2
src/AudioIOListener.h

@ -19,7 +19,7 @@ class WaveTrack;
using WaveTrackArray =
std::vector < std::shared_ptr < WaveTrack > >;
class AUDACITY_DLL_API AudioIOListener /* not final */ {
class TENACITY_DLL_API AudioIOListener /* not final */ {
public:
AudioIOListener() {}
virtual ~AudioIOListener() {}

2
src/Benchmark.h

@ -14,7 +14,7 @@
class wxWindow;
class AudacityProject;
AUDACITY_DLL_API
TENACITY_DLL_API
void RunBenchmark( wxWindow *parent, AudacityProject &project );
#endif // define __AUDACITY_BENCHMARK__

6
src/CMakeLists.txt

@ -1336,9 +1336,9 @@ source_group(
${_INTDIR}/CMakeFiles/Tenacity.dir/cmake_pch.hxx
)
# Define AUDACITY_DLL_API
import_symbol_define( import_symbol AUDACITY_DLL )
export_symbol_define( export_symbol AUDACITY_DLL )
# Define TENACITY_DLL_API
import_symbol_define( import_symbol TENACITY_DLL )
export_symbol_define( export_symbol TENACITY_DLL )
list( APPEND DEFINES PRIVATE "${export_symbol}" INTERFACE "${import_symbol}" )
target_sources( ${TARGET} PRIVATE ${HEADERS} ${SOURCES} ${RESOURCES} ${MAC_RESOURCES} ${WIN_RESOURCES} )

2
src/CellularPanel.h

@ -31,7 +31,7 @@ using UIHandlePtr = std::shared_ptr<UIHandle>;
// cells, that each implement hit tests returning click-drag-release handler
// objects, and other services.
// It has no dependency on the Track class.
class AUDACITY_DLL_API CellularPanel : public OverlayPanel {
class TENACITY_DLL_API CellularPanel : public OverlayPanel {
public:
CellularPanel(wxWindow * parent, wxWindowID id,
const wxPoint & pos,

4
src/ClientData.h

@ -24,7 +24,7 @@ Paul Licameli
namespace ClientData {
//! A convenient default parameter for class template @b Site
struct AUDACITY_DLL_API Base
struct TENACITY_DLL_API Base
{
virtual ~Base() {}
};
@ -44,7 +44,7 @@ template< typename Object > using BarePtr = Object*;
*/
template<
template<typename> class Owner = UniquePtr
> struct AUDACITY_DLL_API Cloneable
> struct TENACITY_DLL_API Cloneable
{
using Base = Cloneable;
using PointerType = Owner< Base >;

4
src/Clipboard.h

@ -20,10 +20,10 @@ class AudacityProject;
class TrackList;
// An event emitted by the clipboard whenever its contents change.
wxDECLARE_EXPORTED_EVENT( AUDACITY_DLL_API,
wxDECLARE_EXPORTED_EVENT( TENACITY_DLL_API,
EVT_CLIPBOARD_CHANGE, wxCommandEvent );
class AUDACITY_DLL_API Clipboard final
class TENACITY_DLL_API Clipboard final
: public wxEvtHandler
{
public:

14
src/CommonCommandFlags.h

@ -15,19 +15,19 @@ Paul Licameli split from Menus.cpp
#include "commands/CommandFlag.h"
AUDACITY_DLL_API
TENACITY_DLL_API
bool EditableTracksSelectedPred( const AudacityProject &project );
AUDACITY_DLL_API
TENACITY_DLL_API
bool AudioIOBusyPred( const AudacityProject &project );
AUDACITY_DLL_API
TENACITY_DLL_API
bool TimeSelectedPred( const AudacityProject &project );
AUDACITY_DLL_API
TENACITY_DLL_API
const CommandFlagOptions &cutCopyOptions();
extern AUDACITY_DLL_API const ReservedCommandFlag
extern TENACITY_DLL_API const ReservedCommandFlag
&AudioIONotBusyFlag(),
&StereoRequiredFlag(), //lda
&NoiseReductionTimeSelectedFlag(),
@ -38,11 +38,11 @@ extern AUDACITY_DLL_API const ReservedCommandFlag
&AnyTracksSelectedFlag(),
&TrackPanelHasFocus(); //lll
extern AUDACITY_DLL_API const ReservedCommandFlag
extern TENACITY_DLL_API const ReservedCommandFlag
&AudioIOBusyFlag(), // lll
&CaptureNotBusyFlag();
extern AUDACITY_DLL_API const ReservedCommandFlag
extern TENACITY_DLL_API const ReservedCommandFlag
&LabelTracksExistFlag(),
&UnsavedChangesFlag(),
&UndoAvailableFlag(),

2
src/DBConnection.h

@ -132,7 +132,7 @@ private:
Commit() must not be called again after one successful call.
An exception is thrown from the constructor if the transaction cannot open.
*/
class AUDACITY_DLL_API TransactionScope
class TENACITY_DLL_API TransactionScope
{
public:
TransactionScope(DBConnection &connection, const char *name);

6
src/DeviceManager.h

@ -29,7 +29,7 @@
#endif
// Event sent to the application
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
EVT_RESCANNED_DEVICES, wxCommandEvent);
typedef struct DeviceSourceMap {
@ -43,10 +43,10 @@ typedef struct DeviceSourceMap {
wxString hostString;
} DeviceSourceMap;
AUDACITY_DLL_API
TENACITY_DLL_API
wxString MakeDeviceSourceString(const DeviceSourceMap *map);
class AUDACITY_DLL_API DeviceManager final
class TENACITY_DLL_API DeviceManager final
#if defined(EXPERIMENTAL_DEVICE_CHANGE_HANDLER)
#if defined(HAVE_DEVICE_CHANGE)
: public DeviceChangeHandler

2
src/Dither.h

@ -25,7 +25,7 @@ public:
static DitherType FastDitherChoice();
static DitherType BestDitherChoice();
static AUDACITY_DLL_API EnumSetting< DitherType > FastSetting, BestSetting;
static TENACITY_DLL_API EnumSetting< DitherType > FastSetting, BestSetting;
/// Default constructor
Dither();

2
src/Envelope.h

@ -68,7 +68,7 @@ private:
typedef std::vector<EnvPoint> EnvArray;
struct TrackPanelDrawingContext;
class AUDACITY_DLL_API Envelope /* not final */ : public XMLTagHandler {
class TENACITY_DLL_API Envelope /* not final */ : public XMLTagHandler {
public:
// Envelope can define a piecewise linear function, or piecewise exponential.
Envelope(bool exponential, double minValue, double maxValue, double defaultValue);

2
src/EnvelopeEditor.h

@ -19,7 +19,7 @@ class ZoomInfo;
// A class that holds state for the duration of dragging
// of an envelope point.
class AUDACITY_DLL_API EnvelopeEditor
class TENACITY_DLL_API EnvelopeEditor
{
public:
static void DrawPoints(

16
src/FFT.h

@ -72,7 +72,7 @@ void PowerSpectrum(size_t NumSamples, const float *In, float *Out);
* NumSamples must be a power of two.
*/
AUDACITY_DLL_API
TENACITY_DLL_API
void RealFFT(size_t NumSamples,
const float *RealIn, float *RealOut, float *ImagOut);
@ -81,7 +81,7 @@ void RealFFT(size_t NumSamples,
* so the output is purely real. NumSamples must be a power of
* two.
*/
AUDACITY_DLL_API
TENACITY_DLL_API
void InverseRealFFT(size_t NumSamples,
const float *RealIn, const float *ImagIn, float *RealOut);
@ -91,7 +91,7 @@ void InverseRealFFT(size_t NumSamples,
* inverse transform as well.
*/
AUDACITY_DLL_API
TENACITY_DLL_API
void FFT(size_t NumSamples,
bool InverseTransform,
const float *RealIn, const float *ImagIn, float *RealOut, float *ImagOut);
@ -120,7 +120,7 @@ enum eWindowFunctions
eWinFuncCount
};
AUDACITY_DLL_API
TENACITY_DLL_API
void WindowFunc(int whichFunction, size_t NumSamples, float *data);
/*
@ -129,7 +129,7 @@ void WindowFunc(int whichFunction, size_t NumSamples, float *data);
* otherwise about (NumSamples - 1) / 2
* All functions have 0 in data[0] except Rectangular, Hamming and Gaussians
*/
AUDACITY_DLL_API
TENACITY_DLL_API
void NewWindowFunc(int whichFunction, size_t NumSamples, bool extraSample, float *data);
/*
@ -139,20 +139,20 @@ void NewWindowFunc(int whichFunction, size_t NumSamples, bool extraSample, float
* otherwise about (NumSamples - 1) / 2
* All functions have 0 in data[0] except Rectangular, Hamming and Gaussians
*/
AUDACITY_DLL_API
TENACITY_DLL_API
void DerivativeOfWindowFunc(int whichFunction, size_t NumSamples, bool extraSample, float *data);
/*
* Returns the name of the windowing function (for UI display)
*/
AUDACITY_DLL_API const TranslatableString WindowFuncName(int whichFunction);
TENACITY_DLL_API const TranslatableString WindowFuncName(int whichFunction);
/*
* Returns the number of windowing functions supported
*/
AUDACITY_DLL_API int NumWindowFuncs();
TENACITY_DLL_API int NumWindowFuncs();
void DeinitFFT();

2
src/FileException.h

@ -14,7 +14,7 @@
#include <wx/filename.h> // wxFileName member variable
//! Thrown for failure of file or database operations in deeply nested places
class AUDACITY_DLL_API FileException /* not final */
class TENACITY_DLL_API FileException /* not final */
: public MessageBoxException
{
public:

30
src/FileFormats.h

@ -31,7 +31,7 @@ class wxString;
/** @brief Get the number of container formats supported by libsndfile
*
* Uses SFC_GET_FORMAT_MAJOR_COUNT in sf_command interface */
AUDACITY_DLL_API
TENACITY_DLL_API
int sf_num_headers();
/** @brief Get the name of a container format from libsndfile
@ -41,10 +41,10 @@ int sf_num_headers();
* @param format_num The libsndfile format number for the container format
* required
*/
AUDACITY_DLL_API
TENACITY_DLL_API
wxString sf_header_index_name(int format_num);
AUDACITY_DLL_API
TENACITY_DLL_API
unsigned int sf_header_index_to_type(int format_num);
//
@ -52,14 +52,14 @@ unsigned int sf_header_index_to_type(int format_num);
//
/** @brief Get the number of data encodings libsndfile supports (in any
* container or none */
AUDACITY_DLL_API
TENACITY_DLL_API
int sf_num_encodings();
/** @brief Get the string name of the data encoding of the requested format
*
* uses SFC_GET_FORMAT_SUBTYPE */
AUDACITY_DLL_API
TENACITY_DLL_API
wxString sf_encoding_index_name(int encoding_num);
AUDACITY_DLL_API
TENACITY_DLL_API
unsigned int sf_encoding_index_to_subtype(int encoding_num);
//
@ -71,7 +71,7 @@ unsigned int sf_encoding_index_to_subtype(int encoding_num);
* then use SFC_GET_FORMAT_INFO to get the description
* @param format the libsndfile format to get the name for (only the container
* part is used) */
AUDACITY_DLL_API
TENACITY_DLL_API
wxString sf_header_name(int format);
/** @brief Get an abbreviated form of the string name of the specified format
*
@ -79,7 +79,7 @@ wxString sf_header_name(int format);
* to get just the first word of the format name.
* @param format the libsndfile format to get the name for (only the container
* part is used) */
AUDACITY_DLL_API
TENACITY_DLL_API
wxString sf_header_shortname(int format);
/** @brief Get the most common file extension for the given format
*
@ -87,7 +87,7 @@ wxString sf_header_shortname(int format);
* format, then retrieve the most common extension using SFC_GET_FORMAT_INFO.
* @param format the libsndfile format to get the name for (only the container
* part is used) */
AUDACITY_DLL_API
TENACITY_DLL_API
wxString sf_header_extension(int format);
/** @brief Get the string name of the specified data encoding
*
@ -108,18 +108,18 @@ SF_FORMAT_INFO *sf_simple_format(int i);
// other utility functions
//
AUDACITY_DLL_API
TENACITY_DLL_API
bool sf_subtype_more_than_16_bits(unsigned int format);
AUDACITY_DLL_API
TENACITY_DLL_API
bool sf_subtype_is_integer(unsigned int format);
AUDACITY_DLL_API
TENACITY_DLL_API
int sf_subtype_bytes_per_sample(unsigned int format);
AUDACITY_DLL_API
TENACITY_DLL_API
//! Choose the narrowest value in the sampleFormat enumeration for a given libsndfile format
sampleFormat sf_subtype_to_effective_format(unsigned int format);
AUDACITY_DLL_API
TENACITY_DLL_API
extern FileExtensions sf_get_all_extensions();
wxString sf_normalize_name(const char *name);
@ -138,7 +138,7 @@ inline R SFCall(F fun, Args&&... args)
}
//RAII for SNDFILE*
struct AUDACITY_DLL_API SFFileCloser { int operator () (SNDFILE*) const; };
struct TENACITY_DLL_API SFFileCloser { int operator () (SNDFILE*) const; };
struct SFFile : public std::unique_ptr<SNDFILE, ::SFFileCloser>
{
SFFile() = default;

2
src/FileIO.h

@ -18,7 +18,7 @@ class wxOutputStream;
class wxFFileOutputStream;
class wxFileNameWrapper;
class AUDACITY_DLL_API FileIO
class TENACITY_DLL_API FileIO
{
public:
typedef enum FileIOMode

96
src/FileNames.h

@ -69,7 +69,7 @@ namespace FileNames
};
// Frequently used types
extern AUDACITY_DLL_API const FileType
extern TENACITY_DLL_API const FileType
AllFiles // *
, AudacityProjects // *.aup3
, DynamicLibraries // depends on the operating system
@ -80,21 +80,21 @@ namespace FileNames
// Convert fileTypes into a single string as expected by wxWidgets file
// selection dialog
AUDACITY_DLL_API wxString FormatWildcard( const FileTypes &fileTypes );
TENACITY_DLL_API wxString FormatWildcard( const FileTypes &fileTypes );
// This exists to compensate for bugs in wxCopyFile:
AUDACITY_DLL_API bool DoCopyFile(
TENACITY_DLL_API bool DoCopyFile(
const FilePath& file1, const FilePath& file2, bool overwrite = true);
// wxWidgets doesn't have a function to do this: make a hard file-system
// link if possible. It might not be, as when the paths are on different
// storage devices.
AUDACITY_DLL_API
TENACITY_DLL_API
bool HardLinkFile( const FilePath& file1, const FilePath& file2);
AUDACITY_DLL_API wxString MkDir(const wxString &Str);
TENACITY_DLL_API wxString MkDir(const wxString &Str);
AUDACITY_DLL_API bool IsMidi(const FilePath &fName);
TENACITY_DLL_API bool IsMidi(const FilePath &fName);
/** \brief A list of directories that should be searched for Audacity files
* (plug-ins, help files, etc.).
@ -104,14 +104,14 @@ namespace FileNames
* directories can be specified using the AUDACITY_PATH environment
* variable. On Windows or Mac OS, this will include the directory
* which contains the Audacity program. */
AUDACITY_DLL_API const FilePaths &AudacityPathList();
AUDACITY_DLL_API void SetAudacityPathList( FilePaths list );
TENACITY_DLL_API const FilePaths &AudacityPathList();
TENACITY_DLL_API void SetAudacityPathList( FilePaths list );
// originally an ExportMultipleDialog method. Append suffix if newName appears in otherNames.
AUDACITY_DLL_API void MakeNameUnique(
TENACITY_DLL_API void MakeNameUnique(
FilePaths &otherNames, wxFileName &newName);
AUDACITY_DLL_API wxString LowerCaseAppNameInPath( const wxString & dirIn);
TENACITY_DLL_API wxString LowerCaseAppNameInPath( const wxString & dirIn);
/** \brief Tenacity user config directory
*
* Where Tenacity keeps its settigns squirreled away, by default ~/.config/tenacity/
@ -122,39 +122,39 @@ namespace FileNames
* Where Tenacity keeps its settings and other user data squirreled away,
* by default ~/.local/share/tenacity/ on Unix, Application Data/Tenacity on
* windows system */
AUDACITY_DLL_API FilePath DataDir();
AUDACITY_DLL_API FilePath ResourcesDir();
AUDACITY_DLL_API FilePath HtmlHelpDir();
AUDACITY_DLL_API FilePath HtmlHelpIndexFile(bool quick);
AUDACITY_DLL_API FilePath LegacyChainDir();
AUDACITY_DLL_API FilePath MacroDir();
AUDACITY_DLL_API FilePath NRPDir();
AUDACITY_DLL_API FilePath NRPFile();
AUDACITY_DLL_API FilePath PluginRegistry();
AUDACITY_DLL_API FilePath PluginSettings();
AUDACITY_DLL_API FilePath BaseDir();
AUDACITY_DLL_API FilePath ModulesDir();
TENACITY_DLL_API FilePath DataDir();
TENACITY_DLL_API FilePath ResourcesDir();
TENACITY_DLL_API FilePath HtmlHelpDir();
TENACITY_DLL_API FilePath HtmlHelpIndexFile(bool quick);
TENACITY_DLL_API FilePath LegacyChainDir();
TENACITY_DLL_API FilePath MacroDir();
TENACITY_DLL_API FilePath NRPDir();
TENACITY_DLL_API FilePath NRPFile();
TENACITY_DLL_API FilePath PluginRegistry();
TENACITY_DLL_API FilePath PluginSettings();
TENACITY_DLL_API FilePath BaseDir();
TENACITY_DLL_API FilePath ModulesDir();
/** \brief The user plug-in directory (not a system one)
*
* This returns the string path to where the user may have put plug-ins
* if they don't have system admin rights. Under default settings, it's
* <DataDir>/Plug-Ins/ */
AUDACITY_DLL_API FilePath PlugInDir();
AUDACITY_DLL_API FilePath ThemeDir();
AUDACITY_DLL_API FilePath ThemeComponentsDir();
AUDACITY_DLL_API FilePath ThemeCachePng();
AUDACITY_DLL_API FilePath ThemeCacheAsCee();
AUDACITY_DLL_API FilePath ThemeComponent(const wxString &Str);
AUDACITY_DLL_API FilePath ThemeCacheHtm();
AUDACITY_DLL_API FilePath ThemeImageDefsAsCee();
TENACITY_DLL_API FilePath PlugInDir();
TENACITY_DLL_API FilePath ThemeDir();
TENACITY_DLL_API FilePath ThemeComponentsDir();
TENACITY_DLL_API FilePath ThemeCachePng();
TENACITY_DLL_API FilePath ThemeCacheAsCee();
TENACITY_DLL_API FilePath ThemeComponent(const wxString &Str);
TENACITY_DLL_API FilePath ThemeCacheHtm();
TENACITY_DLL_API FilePath ThemeImageDefsAsCee();
// Obtain name of loaded module that contains address
AUDACITY_DLL_API FilePath PathFromAddr(void *addr);
TENACITY_DLL_API FilePath PathFromAddr(void *addr);
AUDACITY_DLL_API bool IsPathAvailable( const FilePath & Path);
AUDACITY_DLL_API wxFileNameWrapper DefaultToDocumentsFolder
TENACITY_DLL_API bool IsPathAvailable( const FilePath & Path);
TENACITY_DLL_API wxFileNameWrapper DefaultToDocumentsFolder
(const wxString &preference);
// If not None, determines a preference key (for the default path string) to
@ -182,10 +182,10 @@ namespace FileNames
LastUsed
};
AUDACITY_DLL_API wxString PreferenceKey(FileNames::Operation op, FileNames::PathType type);
TENACITY_DLL_API wxString PreferenceKey(FileNames::Operation op, FileNames::PathType type);
AUDACITY_DLL_API FilePath FindDefaultPath(Operation op);
AUDACITY_DLL_API void UpdateDefaultPath(Operation op, const FilePath &path);
TENACITY_DLL_API FilePath FindDefaultPath(Operation op);
TENACITY_DLL_API void UpdateDefaultPath(Operation op, const FilePath &path);
// F is a function taking a wxString, returning wxString
template<typename F>
@ -200,7 +200,7 @@ namespace FileNames
return result;
}
AUDACITY_DLL_API FilePath
TENACITY_DLL_API FilePath
SelectFile(Operation op, // op matters only when default_path is empty
const TranslatableString& message,
const FilePath& default_path,
@ -211,11 +211,11 @@ namespace FileNames
wxWindow *parent);
// Useful functions for working with search paths
AUDACITY_DLL_API void AddUniquePathToPathList(const FilePath &path,
TENACITY_DLL_API void AddUniquePathToPathList(const FilePath &path,
FilePaths &pathList);
AUDACITY_DLL_API void AddMultiPathsToPathList(const wxString &multiPathString,
TENACITY_DLL_API void AddMultiPathsToPathList(const wxString &multiPathString,
FilePaths &pathList);
AUDACITY_DLL_API void FindFilesInPathList(const wxString & pattern,
TENACITY_DLL_API void FindFilesInPathList(const wxString & pattern,
const FilePaths & pathList,
FilePaths &results,
int flags = wxDIR_FILES);
@ -223,26 +223,26 @@ namespace FileNames
/** \brief Protect against Unicode to multi-byte conversion failures
* on Windows */
#if defined(__WXMSW__)
AUDACITY_DLL_API char *VerifyFilename(const wxString &s, bool input = true);
TENACITY_DLL_API char *VerifyFilename(const wxString &s, bool input = true);
#endif
//! Check location on writable access and return true if checked successfully.
AUDACITY_DLL_API bool WritableLocationCheck(const FilePath& path);
TENACITY_DLL_API bool WritableLocationCheck(const FilePath& path);
// wxString compare function for sorting case, which is needed to load correctly.
AUDACITY_DLL_API int CompareNoCase(const wxString& first, const wxString& second);
TENACITY_DLL_API int CompareNoCase(const wxString& first, const wxString& second);
// Create a unique filename using the passed prefix and suffix
AUDACITY_DLL_API wxString CreateUniqueName(const wxString &prefix,
TENACITY_DLL_API wxString CreateUniqueName(const wxString &prefix,
const wxString &suffix = wxEmptyString);
// File extension used for unsaved/temporary project files
AUDACITY_DLL_API wxString UnsavedProjectExtension();
TENACITY_DLL_API wxString UnsavedProjectExtension();
AUDACITY_DLL_API
TENACITY_DLL_API
bool IsOnFATFileSystem(const FilePath &path);
AUDACITY_DLL_API
TENACITY_DLL_API
//! Give enough of the path to identify the device. (On Windows, drive letter plus ':')
wxString AbbreviatePath(const wxFileName &fileName);
};

2
src/FreqWindow.h

@ -33,7 +33,7 @@ class FrequencyPlotDialog;
class FreqGauge;
class RulerPanel;
DECLARE_EXPORTED_EVENT_TYPE(AUDACITY_DLL_API, EVT_FREQWINDOW_RECALC, -1);
DECLARE_EXPORTED_EVENT_TYPE(TENACITY_DLL_API, EVT_FREQWINDOW_RECALC, -1);
class FreqPlot final : public wxWindow
{

8
src/HelpText.h

@ -19,10 +19,10 @@ struct URLStringTag;
//! Distinct type for URLs
using URLString = TaggedIdentifier< URLStringTag >;
AUDACITY_DLL_API wxString HelpText( const wxString & Key );
AUDACITY_DLL_API TranslatableString TitleText( const wxString & Key );
TENACITY_DLL_API wxString HelpText( const wxString & Key );
TENACITY_DLL_API TranslatableString TitleText( const wxString & Key );
extern AUDACITY_DLL_API const wxString VerCheckArgs();
extern AUDACITY_DLL_API wxString FormatHtmlText( const wxString & Text );
extern TENACITY_DLL_API const wxString VerCheckArgs();
extern TENACITY_DLL_API wxString FormatHtmlText( const wxString & Text );
#endif

18
src/ImageManipulation.h

@ -19,7 +19,7 @@ class wxRect;
// the entire image by the vector difference between that
// pixel and the dstColour. For better control, use
// ChangeImageColour(wxImage, wxColour*, wxColour*) below
AUDACITY_DLL_API
TENACITY_DLL_API
std::unique_ptr<wxImage> ChangeImageColour(wxImage * srcImage, wxColour & dstColour);
// This function takes a source image, which it assumes to
@ -29,7 +29,7 @@ std::unique_ptr<wxImage> ChangeImageColour(wxImage * srcImage, wxColour & dstCol
// Audacity uses this routines to make the buttons
// (skip-start, play, stop, record, skip-end) adapt to
// the color scheme of the user.
AUDACITY_DLL_API
TENACITY_DLL_API
std::unique_ptr<wxImage> ChangeImageColour(wxImage * srcImage,
wxColour & srcColour,
wxColour & dstColour);
@ -39,7 +39,7 @@ std::unique_ptr<wxImage> ChangeImageColour(wxImage * srcImage,
// returns a NEW image where the foreground has been
// overlaid onto the background using alpha-blending,
// at location (xoff, yoff).
AUDACITY_DLL_API
TENACITY_DLL_API
std::unique_ptr<wxImage> OverlayImage(wxImage * background, wxImage * foreground,
wxImage * mask, int xoff, int yoff);
@ -49,29 +49,29 @@ using teBmps = int; /// The index of a bitmap resource in Theme Resources.
// Same idea, but this time the mask is an alpha channel in
// the foreground bitmap, and it's all retrieved from Themes.
AUDACITY_DLL_API
TENACITY_DLL_API
std::unique_ptr<wxImage> OverlayImage(teBmps eBack, teBmps eForeground,
int xoff, int yoff);
// Creates an image with a solid background color
AUDACITY_DLL_API
TENACITY_DLL_API
std::unique_ptr<wxImage> CreateBackground(int width, int height, wxColour colour);
// Creates an image with the Mac OS X Aqua stripes, to be used
// as a background
AUDACITY_DLL_API
TENACITY_DLL_API
std::unique_ptr<wxImage> CreateAquaBackground(int width, int height, int offset);
// Uses color on all OS except Mac, uses Aqua
AUDACITY_DLL_API
TENACITY_DLL_API
std::unique_ptr<wxImage> CreateSysBackground(int width, int height, int offset,
wxColour colour);
// Pastes one image into another at specified location.
AUDACITY_DLL_API
TENACITY_DLL_API
void PasteSubImage( wxImage * pDest, wxImage * pSrc, int x, int y );
// Gets a rectangle from within another image, INCLUDING the alpha channel
AUDACITY_DLL_API
TENACITY_DLL_API
wxImage GetSubImageWithAlpha( const wxImage & Src, const wxRect &rect );

2
src/InconsistencyException.h

@ -20,7 +20,7 @@
The error message identifies source file and line number, possibly the function too (depending on
the compiler), and suggests that the user inform the development team.
*/
class AUDACITY_DLL_API InconsistencyException final : public MessageBoxException
class TENACITY_DLL_API InconsistencyException final : public MessageBoxException
{
public:
InconsistencyException ()

2
src/InterpolateAudio.h

@ -36,7 +36,7 @@
// side (6x the number of bad samples on either side is great). However,
// it will work with less data, and with the bad samples on one end or
// the other.
void AUDACITY_DLL_API InterpolateAudio(float *buffer, size_t len,
void TENACITY_DLL_API InterpolateAudio(float *buffer, size_t len,
size_t firstBad, size_t numBad);
#endif // __AUDACITY_INTERPOLATE_AUDIO__

16
src/KeyboardCapture.h

@ -27,21 +27,21 @@
/// don't actually come from wxWidgets, but are simulated by Audacity, as
/// translations of the EVT_CHAR_HOOK event); or, wxEVT_KEY_UP (really from
/// wxWidgets).
DECLARE_EXPORTED_EVENT_TYPE(AUDACITY_DLL_API, EVT_CAPTURE_KEY, -1);
DECLARE_EXPORTED_EVENT_TYPE(TENACITY_DLL_API, EVT_CAPTURE_KEY, -1);
namespace KeyboardCapture
{
AUDACITY_DLL_API bool IsHandler(const wxWindow *handler);
AUDACITY_DLL_API wxWindow *GetHandler();
AUDACITY_DLL_API void Capture(wxWindow *handler);
AUDACITY_DLL_API void Release(wxWindow *handler);
TENACITY_DLL_API bool IsHandler(const wxWindow *handler);
TENACITY_DLL_API wxWindow *GetHandler();
TENACITY_DLL_API void Capture(wxWindow *handler);
TENACITY_DLL_API void Release(wxWindow *handler);
using FilterFunction = std::function< bool( wxKeyEvent& ) >;
/// \brief Install a pre-filter, returning the previously installed one
/// Pre-filter is called before passing the event to the captured window; if it
/// returns false, then skip the event entirely
AUDACITY_DLL_API
TENACITY_DLL_API
FilterFunction SetPreFilter( const FilterFunction &function );
/// \brief Install a post-filter, returning the previously installed one
@ -50,14 +50,14 @@ namespace KeyboardCapture
/// it skips only the wxEVT_CHAR or wxEVT_KEY_UP event); it is passed a
/// wxKEY_DOWN or a wxKEY_UP event; if it returns false, then the event is
/// skipped
AUDACITY_DLL_API
TENACITY_DLL_API
FilterFunction SetPostFilter( const FilterFunction &function );
/// \brief a function useful to implement a focus event handler
/// The window releases the keyboard if the event is for killing focus,
/// otherwise the window captures the keyboard; then refresh the window
/// and skip the event
AUDACITY_DLL_API
TENACITY_DLL_API
void OnFocus( wxWindow &window, wxFocusEvent &event );
}

12
src/LabelTrack.h

@ -26,7 +26,7 @@ class TimeWarper;
struct LabelTrackHit;
struct TrackPanelDrawingContext;
class AUDACITY_DLL_API LabelStruct
class TENACITY_DLL_API LabelStruct
{
public:
LabelStruct() = default;
@ -82,7 +82,7 @@ public:
using LabelArray = std::vector<LabelStruct>;
class AUDACITY_DLL_API LabelTrack final
class TENACITY_DLL_API LabelTrack final
: public Track
, public wxEvtHandler
{
@ -211,18 +211,18 @@ struct LabelTrackEvent : TrackListEvent
};
// Posted when a label is added.
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
EVT_LABELTRACK_ADDITION, LabelTrackEvent);
// Posted when a label is deleted.
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
EVT_LABELTRACK_DELETION, LabelTrackEvent);
// Posted when a label is repositioned in the sequence of labels.
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
EVT_LABELTRACK_PERMUTED, LabelTrackEvent);
// Posted when the track is selected or unselected.
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
EVT_LABELTRACK_SELECTION, LabelTrackEvent);
#endif

12
src/MacroMagic.h

@ -52,17 +52,17 @@ using teBmps = int; /// The index of a bitmap resource in Theme Resources.
#endif
#ifdef THEME_DECLARATIONS
#define DEFINE_IMAGE( name, initialiser, textual_name ) AUDACITY_DLL_API teBmps name=-1;
#define DEFINE_COLOUR( name, initialiser, textual_name ) AUDACITY_DLL_API int name=-1;
#define DEFINE_FONT( name, initialiser, textual_name ) AUDACITY_DLL_API int name=-1;
#define DEFINE_IMAGE( name, initialiser, textual_name ) TENACITY_DLL_API teBmps name=-1;
#define DEFINE_COLOUR( name, initialiser, textual_name ) TENACITY_DLL_API int name=-1;
#define DEFINE_FONT( name, initialiser, textual_name ) TENACITY_DLL_API int name=-1;
#define SET_THEME_FLAGS( flags )
#undef THEME_INITS
#undef THEME_EXTERNS
#endif
#ifdef THEME_EXTERNS
#define DEFINE_IMAGE( name, initialiser, textual_name ) extern AUDACITY_DLL_API teBmps name;
#define DEFINE_COLOUR( name, initialiser, textual_name ) extern AUDACITY_DLL_API int name;
#define DEFINE_FONT( name, initialiser, textual_name ) extern AUDACITY_DLL_API int name;
#define DEFINE_IMAGE( name, initialiser, textual_name ) extern TENACITY_DLL_API teBmps name;
#define DEFINE_COLOUR( name, initialiser, textual_name ) extern TENACITY_DLL_API int name;
#define DEFINE_FONT( name, initialiser, textual_name ) extern TENACITY_DLL_API int name;
#define SET_THEME_FLAGS( flags )
#endif

4
src/Menus.h

@ -34,7 +34,7 @@ typedef wxArrayString PluginIDs;
namespace Registry{ class Visitor; }
class AUDACITY_DLL_API MenuCreator
class TENACITY_DLL_API MenuCreator
{
public:
MenuCreator();
@ -70,7 +70,7 @@ public:
struct ToolbarMenuVisitor;
class AUDACITY_DLL_API MenuManager final
class TENACITY_DLL_API MenuManager final
: public MenuCreator
, public ClientData::Base
, private PrefsListener

8
src/Mix.h

@ -43,7 +43,7 @@ class WaveTrackCache;
* no explicit time range to process, and the whole occupied length of the
* input tracks is processed.
*/
void AUDACITY_DLL_API MixAndRender(TrackList * tracks, WaveTrackFactory *factory,
void TENACITY_DLL_API MixAndRender(TrackList * tracks, WaveTrackFactory *factory,
double rate, sampleFormat format,
double startTime, double endTime,
std::shared_ptr<WaveTrack> &uLeft,
@ -53,7 +53,7 @@ void MixBuffers(unsigned numChannels, int *channelFlags, float *gains,
samplePtr src,
samplePtr *dests, int len, bool interleaved);
class AUDACITY_DLL_API MixerSpec
class TENACITY_DLL_API MixerSpec
{
unsigned mNumTracks, mNumChannels, mMaxNumChannels;
@ -75,11 +75,11 @@ public:
MixerSpec& operator=( const MixerSpec &mixerSpec );
};
class AUDACITY_DLL_API Mixer {
class TENACITY_DLL_API Mixer {
public:
// An argument to Mixer's constructor
class AUDACITY_DLL_API WarpOptions
class TENACITY_DLL_API WarpOptions
{
public:
//! Construct with warp from the TimeTrack if there is one

6
src/ModuleManager.h

@ -68,7 +68,7 @@ typedef std::map<wxString, ModuleInterfaceHandle> ModuleMap;
typedef std::map<ModuleInterface *, std::unique_ptr<wxDynamicLibrary>> LibraryMap;
using PluginIDs = wxArrayString;
class AUDACITY_DLL_API ModuleManager final
class TENACITY_DLL_API ModuleManager final
{
public:
@ -143,9 +143,9 @@ private:
// ----------------------------------------------------------------------------
using ModuleMain = ModuleInterface *(*)();
AUDACITY_DLL_API
TENACITY_DLL_API
void RegisterProvider(ModuleMain rtn);
AUDACITY_DLL_API
TENACITY_DLL_API
void UnregisterProvider(ModuleMain rtn);
// Guarantee the registry exists before any registrations, so it will

2
src/NoteTrack.h

@ -61,7 +61,7 @@ using QuantizedTimeAndBeat = std::pair< double, double >;
class StretchHandle;
class TimeWarper;
class AUDACITY_DLL_API NoteTrack final
class TENACITY_DLL_API NoteTrack final
: public NoteTrackBase
{
public:

16
src/PitchName.h

@ -26,39 +26,39 @@ class TranslatableString;
// Each register starts with C (e.g., for middle C and A440,
// it's register 4).
// MIDI note number 0 is C-1 in Scientific pitch notation.
AUDACITY_DLL_API double FreqToMIDInote(const double freq);
TENACITY_DLL_API double FreqToMIDInote(const double freq);
AUDACITY_DLL_API double MIDInoteToFreq(const double dMIDInote);
TENACITY_DLL_API double MIDInoteToFreq(const double dMIDInote);
// PitchIndex returns the [0,11] index for a double MIDI note number,
// per result from FreqToMIDInote, corresponding to modulo 12
// of the integer part of (dMIDInote + 0.5), so 0=C, 1=C#, etc.
AUDACITY_DLL_API unsigned int PitchIndex(const double dMIDInote);
TENACITY_DLL_API unsigned int PitchIndex(const double dMIDInote);
// PitchOctave returns the octave index for a double dMIDInote note number,
// per result from FreqToMIDInote.
// MIDI note number 0 is C-1 in Scientific pitch notation.
AUDACITY_DLL_API int PitchOctave(const double dMIDInote);
TENACITY_DLL_API int PitchOctave(const double dMIDInote);
enum class PitchNameChoice { Sharps, Flats, Both };
// PitchName takes dMIDInote (per result from
// FreqToMIDInote) and returns a standard pitch/note name [C, C#, etc.).
AUDACITY_DLL_API TranslatableString PitchName(
TENACITY_DLL_API TranslatableString PitchName(
const double dMIDInote,
const PitchNameChoice choice = PitchNameChoice::Sharps );
// PitchName_Absolute does the same thing as PitchName, but appends
// the octave number, e.g., instead of "C" it will return "C4"
// if the dMIDInote corresponds to middle C, i.e., is 60.
AUDACITY_DLL_API TranslatableString PitchName_Absolute(
TENACITY_DLL_API TranslatableString PitchName_Absolute(
const double dMIDInote,
const PitchNameChoice choice = PitchNameChoice::Sharps);
AUDACITY_DLL_API
TENACITY_DLL_API
double PitchToMIDInote(const unsigned int nPitchIndex, const int nPitchOctave);
AUDACITY_DLL_API
TENACITY_DLL_API
double PitchToFreq(const unsigned int nPitchIndex, const int nPitchOctave);
#endif // __AUDACITY_PITCHNAME__

2
src/PlatformCompatibility.h

@ -22,7 +22,7 @@
#include "Identifier.h"
class AUDACITY_DLL_API PlatformCompatibility
class TENACITY_DLL_API PlatformCompatibility
{
public:
//

2
src/PlaybackSchedule.h

@ -35,7 +35,7 @@ struct RecordingSchedule {
double ToDiscard() const;
};
struct AUDACITY_DLL_API PlaybackSchedule {
struct TENACITY_DLL_API PlaybackSchedule {
/// Playback starts at offset of mT0, which is measured in seconds.
double mT0;
/// Playback ends at offset of mT1, which is measured in seconds. Note that mT1 may be less than mT0 during scrubbing.

4
src/PluginManager.h

@ -40,7 +40,7 @@ typedef enum : unsigned {
} PluginType;
// TODO: Convert this to multiple derived classes
class AUDACITY_DLL_API PluginDescriptor