summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob+HBJobConversion.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-24 10:50:27 +0200
committerDamiano Galassi <[email protected]>2015-10-24 10:50:27 +0200
commit7e32b94a04e073aa94b51811200b664a5001f983 (patch)
tree8b328e88162db42ee1d9237a61ea2c97f4c0183d /macosx/HBJob+HBJobConversion.m
parent97e6ad384476b97cbc36bfb0a81ac179b1fc7d70 (diff)
MacGui: add redo/undo supports to the audio part of HBJob.
Diffstat (limited to 'macosx/HBJob+HBJobConversion.m')
-rw-r--r--macosx/HBJob+HBJobConversion.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m
index 4ed4e4390..a07ca98ff 100644
--- a/macosx/HBJob+HBJobConversion.m
+++ b/macosx/HBJob+HBJobConversion.m
@@ -226,7 +226,7 @@
{
if (subTrack.isEnabled)
{
- // Shift the source index by 2 to componsate
+ // Subtract 2 to the source indexes to compensate
// for the none and foreign audio search tracks.
int sourceIdx = ((int)subTrack.sourceTrackIdx) - 2;
@@ -380,7 +380,7 @@
// output is not passthru so apply gain
if (!([[audioTrack codec][keyAudioCodec] intValue] & HB_ACODEC_PASS_FLAG))
{
- audio->out.gain = [audioTrack.gain doubleValue];
+ audio->out.gain = audioTrack.gain;
}
else
{
@@ -392,7 +392,7 @@
[audioTrack.track[keyAudioInputCodecParam] intValue],
[audioTrack.codec[keyAudioCodec] intValue]))
{
- audio->out.dynamic_range_compression = [audioTrack.drc doubleValue];
+ audio->out.dynamic_range_compression = audioTrack.drc;
}
else
{