2010-01-23 19:44:49 +00:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
|
|
|
|
AudacityHeaders.h
|
|
|
|
|
|
|
|
Dominic Mazzoni
|
|
|
|
|
|
|
|
This is not a normal include file - it's currently only used
|
|
|
|
on Mac OS X as a "precompiled header" file that's automatically
|
|
|
|
included by all source files, resulting in roughly a 2x increase
|
|
|
|
in compilation speed.
|
|
|
|
|
|
|
|
When gcc 3.4 is released, it will have precompiled header support
|
|
|
|
on other platforms, and this file could be adapted to support
|
|
|
|
precompiled headers on Linux, etc.
|
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
2021-05-09 15:16:56 +00:00
|
|
|
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <math.h>
|
2018-04-01 03:28:08 +00:00
|
|
|
#ifdef __WXMSW__
|
2018-03-30 20:49:22 +00:00
|
|
|
#include <initializer_list>
|
2018-04-01 03:28:08 +00:00
|
|
|
#endif
|
2014-01-13 20:35:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-23 19:44:49 +00:00
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/bitmap.h>
|
|
|
|
#include <wx/filefn.h>
|
|
|
|
#include <wx/image.h>
|
|
|
|
#include <wx/ffile.h>
|
|
|
|
#include <wx/filename.h>
|
|
|
|
#include <wx/textfile.h>
|
|
|
|
#include <wx/thread.h>
|
|
|
|
#include <wx/tooltip.h>
|
|
|
|
|
2021-05-23 03:20:14 +00:00
|
|
|
#include "Identifier.h"
|
The fabled realtime effects...
I've made it where you can enable and disable via experimentals:
EXPERIMENTAL_REALTIME_EFFECTS
EXPERIMENTAL_EFFECTS_RACK
You will notice that, as of now, the only effects currently set up for
realtime are VSTs. Now that this is in, I will start converting the
rest.
As I start to convert the effects, the astute of you may notice that
they no longer directly access tracks or any "internal" Audacity
objects. This isolates the effects from changes in Audacity and makes
it much easier to add new ones.
Anyway, all 3 platforms can now display VST effects in graphical mode.
Yes, that means Linux too. There are quite a few VSTs for Linux if
you search for them.
The so-called "rack" definitely needs some discussion, work, and attention
from someone much better at graphics than me. I'm not really sure it should
stay in as-is. I'd originally planned for it to be simply a utility window
where you can store your (preconfigured) favorite effects. It should probably
revert back to that idea.
You may notice that this DOES include the API work I did. The realtime effects
were too tied to it and I didn't want to redo the whole thing. As I mentioned
elsewhere, the API stuff may or may not be very future proof.
So, let the critter complaints commence. I absolute KNOW there will be some.
(I know I'll be hearing from the Linux peeps pretty darn quickly. ;-))
2014-10-26 03:24:10 +00:00
|
|
|
|
2010-01-23 19:44:49 +00:00
|
|
|
#include "AColor.h"
|
|
|
|
#include "AudioIO.h"
|
2015-04-17 21:10:54 +00:00
|
|
|
#include "Diags.h"
|
2010-01-23 19:44:49 +00:00
|
|
|
#include "Envelope.h"
|
|
|
|
#include "FFT.h"
|
|
|
|
#include "FileFormats.h"
|
|
|
|
#include "ImageManipulation.h"
|
|
|
|
#include "LabelTrack.h"
|
|
|
|
#include "Mix.h"
|
|
|
|
#include "NoteTrack.h"
|
|
|
|
#include "Prefs.h"
|
|
|
|
#include "Project.h"
|
|
|
|
#include "Sequence.h"
|
|
|
|
#include "TimeTrack.h"
|
|
|
|
#include "UndoManager.h"
|
|
|
|
#include "WaveTrack.h"
|
|
|
|
#include "widgets/ASlider.h"
|
|
|
|
#include "widgets/ProgressDialog.h"
|
|
|
|
#include "widgets/Ruler.h"
|
|
|
|
|
2014-10-05 17:10:09 +00:00
|
|
|
// PRL: These lines allow you to remove Project.h above.
|
2016-02-13 15:43:16 +00:00
|
|
|
// They must be included before the definition of macro NEW below.
|
2014-10-05 17:10:09 +00:00
|
|
|
#include <set>
|
|
|
|
#include <map>
|
|
|
|
|
2012-03-19 17:54:52 +00:00
|
|
|
//#ifdef __WXMSW__
|
|
|
|
// Enable this to diagnose memory leaks too!
|
2016-02-13 15:43:16 +00:00
|
|
|
// #include <wx/msw/msvcrt.h> // redefines the NEW() operator
|
2012-03-19 17:54:52 +00:00
|
|
|
//#endif
|
|
|
|
|
2020-05-27 20:45:03 +00:00
|
|
|
#ifdef _MSC_VER
|
2012-03-19 17:54:52 +00:00
|
|
|
#ifdef _DEBUG
|
|
|
|
#define _CRTDBG_MAP_ALLOC
|
|
|
|
#include <crtdbg.h>
|
2016-02-14 18:23:08 +00:00
|
|
|
#undef new
|
2012-03-19 17:54:52 +00:00
|
|
|
#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
#endif
|
|
|
|
#endif
|