mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-10 05:30:01 +01:00
naming improvements for clarity (e.g., aliasedFileName instead of aliasedFile for an instance of wxFileName -- it's not an instance of AliasedFile)
52 lines
1.8 KiB
C++
52 lines
1.8 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
PCMAliasBlockFile.h
|
|
|
|
Joshua Haberman
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_PCMALIASBLOCKFILE__
|
|
#define __AUDACITY_PCMALIASBLOCKFILE__
|
|
|
|
#include "../BlockFile.h"
|
|
#include "../DirManager.h"
|
|
|
|
/// An AliasBlockFile that references uncompressed data in an existing file
|
|
class PCMAliasBlockFile : public AliasBlockFile
|
|
{
|
|
public:
|
|
/// Constructs a PCMAliasBlockFile, writing the summary to disk
|
|
PCMAliasBlockFile(wxFileName baseFileName,
|
|
wxFileName aliasedFileName,
|
|
sampleCount aliasStart,
|
|
sampleCount aliasLen, int aliasChannel);
|
|
///Constructs a PCMAliasBlockFile with the option of not writing to disk
|
|
PCMAliasBlockFile(wxFileName fileName,
|
|
wxFileName aliasedFileName,
|
|
sampleCount aliasStart,
|
|
sampleCount aliasLen, int aliasChannel,bool writeSummary);
|
|
|
|
PCMAliasBlockFile(wxFileName existingSummaryFileName,
|
|
wxFileName aliasedFileName,
|
|
sampleCount aliasStart,
|
|
sampleCount aliasLen, int aliasChannel,
|
|
float min, float max, float rms);
|
|
virtual ~PCMAliasBlockFile();
|
|
|
|
/// Reads the specified data from the aliased file using libsndfile
|
|
virtual int ReadData(samplePtr data, sampleFormat format,
|
|
sampleCount start, sampleCount len);
|
|
|
|
virtual void SaveXML(XMLWriter &xmlFile);
|
|
virtual BlockFile *Copy(wxFileName fileName);
|
|
virtual void Recover();
|
|
|
|
static BlockFile *BuildFromXML(DirManager &dm, const wxChar **attrs);
|
|
};
|
|
|
|
#endif
|
|
|