~ubuntu-branches/ubuntu/gutsy/audacity/gutsy

« back to all changes in this revision

Viewing changes to src/DirManager.h

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2007-05-18 12:11:05 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070518121105-onhr7ojai3n5khzt
Tags: 1.3.3-1
* New upstream release
* Added watch file
* debian/patches:
   - updated libmp3lame patch
* debian/control:
   - as suggested upstream, depend on libgtk2.0-dev, otherwise 
     the code fails to build

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
   // but it doesn't already exist, SetProject fails and returns false.
49
49
   bool SetProject(wxString & projPath, wxString & projName, bool create);
50
50
 
 
51
   wxString GetProjectDataDir();
51
52
   wxString GetProjectName();
52
53
 
53
54
   wxLongLong GetFreeDiskSpace();
54
55
 
55
 
   BlockFile *NewSimpleBlockFile(samplePtr sampleData, sampleCount sampleLen,
56
 
                                 sampleFormat format);
 
56
   BlockFile *NewSimpleBlockFile(samplePtr sampleData,
 
57
                                 sampleCount sampleLen,
 
58
                                 sampleFormat format,
 
59
                                 bool allowDeferredWrite = false);
 
60
                                 
57
61
   BlockFile *NewAliasBlockFile( wxString aliasedFile, sampleCount aliasStart,
58
62
                                 sampleCount aliasLen, int aliasChannel);
59
63
 
84
88
   void SetLoadingTarget(BlockFile **target) { mLoadingTarget = target; }
85
89
   void SetLoadingFormat(sampleFormat format) { mLoadingFormat = format; }
86
90
   void SetLoadingBlockLength(sampleCount len) { mLoadingBlockLen = len; }
 
91
   void SetMaxSamples(sampleCount max) { mMaxSamples = max; }
87
92
   bool HandleXMLTag(const wxChar *tag, const wxChar **attrs);
88
93
   XMLTagHandler *HandleXMLChild(const wxChar *tag) { return NULL; }
89
94
   void WriteXML(XMLWriter &xmlFile) { };
123
128
   // Do not delete any temporary files on exit. This is only called if
124
129
   // auto recovery is cancelled and should be retried later
125
130
   static void SetDontDeleteTempFiles() { dontDeleteTempFiles = true; }
 
131
   
 
132
   // Write all write-cached block files to disc, if any
 
133
   void WriteCacheToDisk();
 
134
 
 
135
   // Fill cache of blockfiles, if caching is enabled (otherwise do nothing)
 
136
   void FillBlockfilesCache();
126
137
 
127
138
 private:
128
139
 
163
174
   sampleFormat mLoadingFormat;
164
175
   sampleCount mLoadingBlockLen;
165
176
 
 
177
   sampleCount mMaxSamples;
 
178
 
166
179
   static wxString globaltemp;
167
180
   wxString mytemp;
168
181
   static int numDirManagers;