1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 14:13:32 +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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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