2020-12-02, 23:42
my solution: i modified your "audioprofiles.py"
if channels:
if channels > 2:
channels_set = 'auto_multichannel'
# path where original file is located
sourcePath = "c:\\Program Files\\EqualizerAPO\\config\\mch.txt"
# path were a copy of file is needed
destinationPath = "c:\\Program Files\\EqualizerAPO\\config\\config.txt"
# call copyfile() method
shutil.copyfile(sourcePath, destinationPath)
else:
channels_set = 'auto_stereo'
# path where original file is located
sourcePath = "c:\\Program Files\\EqualizerAPO\\config\\2ch.txt"
# path were a copy of file is needed
destinationPath = "c:\\Program Files\\EqualizerAPO\\config\\config.txt"
# call copyfile() method
shutil.copyfile(sourcePath, destinationPath)
else:
channels_set = 'none'
now i can controll Equalizer APO thx
only problem: when i play music with Kodi it dosnt change the audio profile to stereo
if channels:
if channels > 2:
channels_set = 'auto_multichannel'
# path where original file is located
sourcePath = "c:\\Program Files\\EqualizerAPO\\config\\mch.txt"
# path were a copy of file is needed
destinationPath = "c:\\Program Files\\EqualizerAPO\\config\\config.txt"
# call copyfile() method
shutil.copyfile(sourcePath, destinationPath)
else:
channels_set = 'auto_stereo'
# path where original file is located
sourcePath = "c:\\Program Files\\EqualizerAPO\\config\\2ch.txt"
# path were a copy of file is needed
destinationPath = "c:\\Program Files\\EqualizerAPO\\config\\config.txt"
# call copyfile() method
shutil.copyfile(sourcePath, destinationPath)
else:
channels_set = 'none'
now i can controll Equalizer APO thx
only problem: when i play music with Kodi it dosnt change the audio profile to stereo