Audacity 3.2.0
Classes | Macros | Enumerations | Functions
Benchmark.cpp File Reference
#include "Benchmark.h"
#include <wx/app.h>
#include <wx/log.h>
#include <wx/textctrl.h>
#include <wx/checkbox.h>
#include <wx/choice.h>
#include <wx/stattext.h>
#include <wx/stopwatch.h>
#include <wx/valgen.h>
#include <wx/valtext.h>
#include "Project.h"
#include "ProjectTimeSignature.h"
#include "SampleBlock.h"
#include "ShuttleGui.h"
#include "TempoChange.h"
#include "WaveClip.h"
#include "WaveTrack.h"
#include "Sequence.h"
#include "Prefs.h"
#include "ProjectRate.h"
#include "FileNames.h"
#include "SelectFile.h"
#include "AudacityMessageBox.h"
#include "wxPanelWrapper.h"
Include dependency graph for Benchmark.cpp:

Go to the source code of this file.

Classes

class  BenchmarkDialog
 BenchmarkDialog is used for measuring performance and accuracy of sample block storage. More...
 

Macros

#define SampleType   short
 
#define SampleFormat   int16Sample
 

Enumerations

enum  {
  RunID = 1000 , BSaveID , ClearID , StaticTextID ,
  BlockSizeID , DataSizeID , NumEditsID , RandSeedID
}
 

Functions

void RunBenchmark (wxWindow *parent, AudacityProject &project)
 

Macro Definition Documentation

◆ SampleFormat

#define SampleFormat   int16Sample

Definition at line 50 of file Benchmark.cpp.

◆ SampleType

#define SampleType   short

Definition at line 49 of file Benchmark.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RunID 
BSaveID 
ClearID 
StaticTextID 
BlockSizeID 
DataSizeID 
NumEditsID 
RandSeedID 

Definition at line 118 of file Benchmark.cpp.

118 {
119 RunID = 1000,
120 BSaveID,
121 ClearID,
127};
@ StaticTextID
Definition: Benchmark.cpp:122
@ ClearID
Definition: Benchmark.cpp:121
@ NumEditsID
Definition: Benchmark.cpp:125
@ BlockSizeID
Definition: Benchmark.cpp:123
@ DataSizeID
Definition: Benchmark.cpp:124
@ BSaveID
Definition: Benchmark.cpp:120
@ RunID
Definition: Benchmark.cpp:119
@ RandSeedID
Definition: Benchmark.cpp:126

Function Documentation

◆ RunBenchmark()

void RunBenchmark ( wxWindow *  parent,
AudacityProject project 
)

Definition at line 91 of file Benchmark.cpp.

92{
93 /*
94 int action = AudacityMessageBox(
95XO("This will close all project windows (without saving)\nand open the Audacity Benchmark dialog.\n\nAre you sure you want to do this?"),
96 XO("Benchmark"),
97 wxYES_NO | wxICON_EXCLAMATION,
98 NULL);
99
100 if (action != wxYES)
101 return;
102
103 for ( auto pProject : AllProjects{} )
104 GetProjectFrame( *pProject ).Close();
105 */
106
107 BenchmarkDialog dlog{ parent, project };
108
109 dlog.CentreOnParent();
110
111 dlog.ShowModal();
112}
const auto project
BenchmarkDialog is used for measuring performance and accuracy of sample block storage.
Definition: Benchmark.cpp:53

References project.

Referenced by AudacityApp::InitPart2(), and anonymous_namespace{PluginMenus.cpp}::OnBenchmark().

Here is the caller graph for this function: