mirror of
https://github.com/staxrip/staxrip.git
synced 2026-10-22 09:23:18 +08:00
17 lines
465 B
PowerShell
17 lines
465 B
PowerShell
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
Register-ObjectEvent -InputObject ([ShortcutModule]::g) -EventName BeforeProcessing -Action {
|
|
$activeProject = [ShortcutModule]::p
|
|
|
|
foreach ($audio in $activeProject.Audio0, $activeProject.Audio1)
|
|
{
|
|
if ($audio.GetType().Name -eq 'GUIAudioProfile' -and
|
|
$audio.File.EndsWith('flac') -and
|
|
$audio.GetEncoder() -eq 'qaac')
|
|
{
|
|
$audio.DecodingMode = 'Pipe'
|
|
}
|
|
}
|
|
}
|