1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-03 01:19:24 +02:00

Remove ImportRaw.h from other headers

This commit is contained in:
Paul Licameli 2020-06-13 11:34:59 -04:00
parent a7408a7f80
commit da93757401
10 changed files with 20 additions and 5 deletions

View File

@ -15,7 +15,6 @@ Paul Licameli split from AudacityProject.h
#include <vector> #include <vector>
#include "ClientData.h" // to inherit #include "ClientData.h" // to inherit
#include "import/ImportRaw.h" // defines TrackHolders
#include "FileNames.h" // for FileType #include "FileNames.h" // for FileType
class wxString; class wxString;
@ -30,6 +29,7 @@ class XMLTagHandler;
namespace ProjectFileIORegistry{ struct Entry; } namespace ProjectFileIORegistry{ struct Entry; }
using WaveTrackArray = std::vector < std::shared_ptr < WaveTrack > >; using WaveTrackArray = std::vector < std::shared_ptr < WaveTrack > >;
using TrackHolders = std::vector< WaveTrackArray >;
class ProjectFileManager final class ProjectFileManager final
: public ClientData::Base : public ClientData::Base

View File

@ -58,6 +58,8 @@ and ImportLOF.cpp.
#include "../widgets/ProgressDialog.h" #include "../widgets/ProgressDialog.h"
using NewChannelGroup = std::vector< std::shared_ptr<WaveTrack> >;
// ============================================================================ // ============================================================================
// //
// Return reference to singleton // Return reference to singleton

View File

@ -11,7 +11,6 @@
#ifndef _IMPORT_ #ifndef _IMPORT_
#define _IMPORT_ #define _IMPORT_
#include "ImportRaw.h" // defines TrackHolders
#include "ImportForwards.h" #include "ImportForwards.h"
#include "audacity/Types.h" #include "audacity/Types.h"
#include <vector> #include <vector>
@ -34,8 +33,10 @@ class UnusableImportPlugin;
typedef bool (*progress_callback_t)( void *userData, float percent ); typedef bool (*progress_callback_t)( void *userData, float percent );
class ExtImportItem; class ExtImportItem;
class WaveTrack;
using ExtImportItems = std::vector< std::unique_ptr<ExtImportItem> >; using ExtImportItems = std::vector< std::unique_ptr<ExtImportItem> >;
using TrackHolders = std::vector< std::vector< std::shared_ptr<WaveTrack> > >;
class ExtImportItem class ExtImportItem
{ {

View File

@ -94,6 +94,7 @@ extern "C" {
class FLACImportFileHandle; class FLACImportFileHandle;
using NewChannelGroup = std::vector< std::shared_ptr<WaveTrack> >;
class MyFLACFile final : public FLAC::Decoder::File class MyFLACFile final : public FLAC::Decoder::File
{ {

View File

@ -100,6 +100,8 @@ public:
std::unique_ptr<ImportFileHandle> Open(const FilePath &Filename, AudacityProject*) override; std::unique_ptr<ImportFileHandle> Open(const FilePath &Filename, AudacityProject*) override;
}; };
using NewChannelGroup = std::vector< std::shared_ptr<WaveTrack> >;
class MP3ImportFileHandle final : public ImportFileHandle class MP3ImportFileHandle final : public ImportFileHandle
{ {
public: public:

View File

@ -77,6 +77,8 @@ static Importer::RegisteredUnusableImportPlugin registered{
#include "../WaveTrack.h" #include "../WaveTrack.h"
#include "ImportPlugin.h" #include "ImportPlugin.h"
using NewChannelGroup = std::vector< std::shared_ptr<WaveTrack> >;
class OggImportPlugin final : public ImportPlugin class OggImportPlugin final : public ImportPlugin
{ {
public: public:

View File

@ -404,6 +404,8 @@ struct id3_tag_deleter {
using id3_tag_holder = std::unique_ptr<id3_tag, id3_tag_deleter>; using id3_tag_holder = std::unique_ptr<id3_tag, id3_tag_deleter>;
#endif #endif
using NewChannelGroup = std::vector< std::shared_ptr<WaveTrack> >;
ProgressResult PCMImportFileHandle::Import(TrackFactory *trackFactory, ProgressResult PCMImportFileHandle::Import(TrackFactory *trackFactory,
TrackHolders &outTracks, TrackHolders &outTracks,
Tags *tags) Tags *tags)

View File

@ -49,8 +49,7 @@ but little else.
#include "audacity/Types.h" #include "audacity/Types.h"
#include "../Internat.h" #include "../Internat.h"
#include "../MemoryX.h"
#include "ImportRaw.h" // defines TrackHolders
class AudacityProject; class AudacityProject;
class ProgressDialog; class ProgressDialog;
@ -108,6 +107,9 @@ protected:
}; };
class WaveTrack;
using TrackHolders = std::vector< std::vector< std::shared_ptr<WaveTrack> > >;
class ImportFileHandle /* not final */ class ImportFileHandle /* not final */
{ {
public: public:

View File

@ -23,6 +23,7 @@
#include "../export/ExportMultiple.h" #include "../export/ExportMultiple.h"
#include "../import/Import.h" #include "../import/Import.h"
#include "../import/ImportMIDI.h" #include "../import/ImportMIDI.h"
#include "../import/ImportRaw.h"
#include "../widgets/AudacityMessageBox.h" #include "../widgets/AudacityMessageBox.h"
#include "../widgets/FileHistory.h" #include "../widgets/FileHistory.h"

View File

@ -16,7 +16,6 @@
#ifdef EXPERIMENTAL_OD_FFMPEG #ifdef EXPERIMENTAL_OD_FFMPEG
#include "../import/ImportRaw.h" // for TrackHolders
#include <vector> #include <vector>
#include "ODDecodeTask.h" #include "ODDecodeTask.h"
@ -27,6 +26,9 @@ using ScsPtr = std::shared_ptr<Scs>;
struct FFmpegContext; struct FFmpegContext;
class ODFileDecoder; class ODFileDecoder;
class WaveTrack; class WaveTrack;
using NewChannelGroup = std::vector< std::shared_ptr<WaveTrack> >;
using TrackHolders = std::vector< NewChannelGroup >;
/// A class representing a modular task to be used with the On-Demand structures. /// A class representing a modular task to be used with the On-Demand structures.
class ODDecodeFFmpegTask final : public ODDecodeTask class ODDecodeFFmpegTask final : public ODDecodeTask
{ {