Audacity 3.2.0
ImportExport.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 ImportExport.h
7
8 Vitaly Sverchinsky
9
10**********************************************************************/
11
12#pragma once
13
14#include "ClientData.h"
15
16class AudacityProject;
17
18class IMPORT_EXPORT_API ImportExport final : public ClientData::Base
19{
20public:
21 static constexpr double InvalidRate = 0;
22
24 static const ImportExport& Get( const AudacityProject &project );
25
27 ImportExport( const ImportExport & ) = delete;
28 ImportExport &operator=( const ImportExport & ) = delete;
29
30 double GetPreferredExportRate() const;
31 void SetPreferredExportRate(double rate);
32
33private:
34 double mExportRate{InvalidRate};
35};
Utility ClientData::Site to register hooks into a host class that attach client data.
const auto project
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
ImportExport & operator=(const ImportExport &)=delete
ImportExport(const ImportExport &)=delete
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition: BasicUI.cpp:200
A convenient default parameter for class template Site.
Definition: ClientData.h:29