summaryrefslogtreecommitdiff
path: root/libs/ptformat/ptfformat.h
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2016-04-16 16:31:44 +1000
committerRobin Gareus <robin@gareus.org>2016-04-16 12:21:12 +0200
commit277893b130f5ec1efa4aba44d92f038dad2793ef (patch)
tree7af786a3eb95a2a67ef1a80d5adbb2bbfa5f5253 /libs/ptformat/ptfformat.h
parent241f734af475cec96dcb6f9d1aad77a6e2ec2a8d (diff)
ptformat: Make PT import more resilient to bad user choices and display messages
Previously, libptformat would attempt to parse all kinds of files, now the library stops parsing when the version number and session rate is outside valid ranges, returning an error code to the caller. If there is a valid PT file detected, but some audio files are missing, Ardour now pops up an error message to inform the user that some files may be missing from the import. A success message is displayed otherwise. Signed-off-by: Damien Zammit <damien@zamaudio.com>
Diffstat (limited to 'libs/ptformat/ptfformat.h')
-rw-r--r--libs/ptformat/ptfformat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ptformat/ptfformat.h b/libs/ptformat/ptfformat.h
index 1ae362d672..785544daa0 100644
--- a/libs/ptformat/ptfformat.h
+++ b/libs/ptformat/ptfformat.h
@@ -117,7 +117,7 @@ public:
private:
bool foundin(std::string haystack, std::string needle);
- void parse(void);
+ int parse(void);
void unxor10(void);
void setrates(void);
void parse5header(void);