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 "SampleBlock.h"
#include "ShuttleGui.h"
#include "Project.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 48 of file Benchmark.cpp.

◆ SampleType

#define SampleType   short

Definition at line 47 of file Benchmark.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RunID 
BSaveID 
ClearID 
StaticTextID 
BlockSizeID 
DataSizeID 
NumEditsID 
RandSeedID 

Definition at line 116 of file Benchmark.cpp.

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

Function Documentation

◆ RunBenchmark()

void RunBenchmark ( wxWindow *  parent,
AudacityProject project 
)

Definition at line 89 of file Benchmark.cpp.

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

References project.

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

Here is the caller graph for this function: