summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudio.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBAudio.m')
-rw-r--r--macosx/HBAudio.m25
1 files changed, 25 insertions, 0 deletions
diff --git a/macosx/HBAudio.m b/macosx/HBAudio.m
index 6eae9a1f6..be50a51b3 100644
--- a/macosx/HBAudio.m
+++ b/macosx/HBAudio.m
@@ -575,6 +575,31 @@ static NSMutableArray *masterBitRateArray = nil;
return retval;
}
+#pragma mark - NSCopying
+
+- (instancetype)copyWithZone:(NSZone *)zone
+{
+ HBAudio *copy = [[[self class] alloc] init];
+
+ if (copy)
+ {
+ copy->_track = [_track copy];
+ copy->_codec = [_codec copy];
+ copy->_mixdown = [_mixdown copy];
+ copy->_sampleRate = [_sampleRate copy];
+ copy->_bitRate = [_bitRate copy];
+ copy->_drc = [_drc copy];
+ copy->_gain = [_gain copy];
+ copy->_videoContainerTag = [_videoContainerTag copy];
+
+ copy->_codecs = [_codecs copy];
+ copy->_mixdowns = [_mixdowns copy];
+ copy->_bitRates = [_bitRates copy];
+ }
+
+ return copy;
+}
+
#pragma mark - NSCoding
- (void)encodeWithCoder:(NSCoder *)coder