添加音调升降调节
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
stopPanner,
|
||||
setConvolverMainGain,
|
||||
setConvolverSendGain,
|
||||
setPitchShifter,
|
||||
} from '@renderer/plugins/player'
|
||||
|
||||
import { appSetting } from '@renderer/store/setting'
|
||||
@@ -66,6 +67,9 @@ export default () => {
|
||||
setConvolver(buffer, appSetting['player.soundEffect.convolution.mainGain'] / 10, appSetting['player.soundEffect.convolution.sendGain'] / 10)
|
||||
})
|
||||
}
|
||||
if (appSetting['player.soundEffect.pitchShifter.playbackRate'] != 1) {
|
||||
setPitchShifter(appSetting['player.soundEffect.pitchShifter.playbackRate'])
|
||||
}
|
||||
|
||||
|
||||
watch(() => appSetting['player.soundEffect.panner.enable'], (enable) => {
|
||||
@@ -139,6 +143,10 @@ export default () => {
|
||||
bfs.get('hz16000')!.gain.value = hz16000
|
||||
})
|
||||
|
||||
watch(() => appSetting['player.soundEffect.pitchShifter.playbackRate'], (playbackRate) => {
|
||||
setPitchShifter(playbackRate)
|
||||
})
|
||||
|
||||
|
||||
// window.key_event.on(HOTKEY_PLAYER.volume_up.action, hotkeyVolumeUp)
|
||||
// window.key_event.on(HOTKEY_PLAYER.volume_down.action, hotkeyVolumeDown)
|
||||
|
||||
Reference in New Issue
Block a user