Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

refine(editor): match the audio-track pane to the global Audio pane

Benjamin Freeman1e78df902287
diff --git a/src/components/ai-edition/RightPanes.tsx b/src/components/ai-edition/RightPanes.tsx
index 31effb9fb..37bf689c0 100644
--- a/src/components/ai-edition/RightPanes.tsx
+++ b/src/components/ai-edition/RightPanes.tsx
@@ -2390,7 +2390,7 @@ export function AudioTrackPane({ tl }: { tl: TimelineApi }) {
</div>
<div className={styles.sliderGrid}>
<SliderCell
- label={ts("audioTrack.volume")}
+ label={ts("audio.outputGain")}
value={liveGain ?? track.gainDb}
min={-AUDIO_GAIN_DB_LIMIT}
max={AUDIO_GAIN_DB_LIMIT}
@@ -2404,6 +2404,16 @@ export function AudioTrackPane({ tl }: { tl: TimelineApi }) {
}}
/>
</div>
+ <button
+ type="button"
+ className={styles.secondaryBtn}
+ onClick={() => {
+ setLiveGain(null);
+ void tl.setAudioTrackGain(track.id, 0);
+ }}
+ >
+ {ts("audio.reset")}
+ </button>
<button
type="button"
onClick={() => void tl.removeAudioTrack(track.id)}
diff --git a/src/i18n/locales/ar/settings.json b/src/i18n/locales/ar/settings.json
index 25beaec51..c97a9c024 100644
--- a/src/i18n/locales/ar/settings.json
+++ b/src/i18n/locales/ar/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/en/settings.json b/src/i18n/locales/en/settings.json
index fda9fb853..eda95eabb 100644
--- a/src/i18n/locales/en/settings.json
+++ b/src/i18n/locales/en/settings.json
@@ -84,7 +84,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume for this imported audio track. It mixes over the recording in the preview and the export. Drag the track on the timeline to move or trim it.",
- "volume": "Volume",
"remove": "Delete track"
},
"effects": {
diff --git a/src/i18n/locales/es/settings.json b/src/i18n/locales/es/settings.json
index 1ee68eeae..2904ea0f4 100644
--- a/src/i18n/locales/es/settings.json
+++ b/src/i18n/locales/es/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/fr/settings.json b/src/i18n/locales/fr/settings.json
index 169dbb28f..41acd38d5 100644
--- a/src/i18n/locales/fr/settings.json
+++ b/src/i18n/locales/fr/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/it/settings.json b/src/i18n/locales/it/settings.json
index 29fbeed47..83f0ae3c2 100644
--- a/src/i18n/locales/it/settings.json
+++ b/src/i18n/locales/it/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/ja-JP/settings.json b/src/i18n/locales/ja-JP/settings.json
index 32b5338f6..665fdf2e5 100644
--- a/src/i18n/locales/ja-JP/settings.json
+++ b/src/i18n/locales/ja-JP/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/ko-KR/settings.json b/src/i18n/locales/ko-KR/settings.json
index 4b521a107..be3e85813 100644
--- a/src/i18n/locales/ko-KR/settings.json
+++ b/src/i18n/locales/ko-KR/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/pt-BR/settings.json b/src/i18n/locales/pt-BR/settings.json
index c7abe3e8a..c67bf76f3 100644
--- a/src/i18n/locales/pt-BR/settings.json
+++ b/src/i18n/locales/pt-BR/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/ru/settings.json b/src/i18n/locales/ru/settings.json
index 4e8549493..e8cdd5353 100644
--- a/src/i18n/locales/ru/settings.json
+++ b/src/i18n/locales/ru/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/tr/settings.json b/src/i18n/locales/tr/settings.json
index 962b33abb..29b54ba66 100644
--- a/src/i18n/locales/tr/settings.json
+++ b/src/i18n/locales/tr/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/vi/settings.json b/src/i18n/locales/vi/settings.json
index 3c71e50b6..0a039ee2d 100644
--- a/src/i18n/locales/vi/settings.json
+++ b/src/i18n/locales/vi/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/zh-CN/settings.json b/src/i18n/locales/zh-CN/settings.json
index ed7f5e585..4d0df64df 100644
--- a/src/i18n/locales/zh-CN/settings.json
+++ b/src/i18n/locales/zh-CN/settings.json
@@ -332,7 +332,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}
diff --git a/src/i18n/locales/zh-TW/settings.json b/src/i18n/locales/zh-TW/settings.json
index 5269c76bf..a34d7217d 100644
--- a/src/i18n/locales/zh-TW/settings.json
+++ b/src/i18n/locales/zh-TW/settings.json
@@ -333,7 +333,6 @@
"importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
- "volume": "Volume",
"remove": "Delete track"
}
}