-
|
Implementing 10 EQ audio filters works as expected when starting a media file with audio. However, when I attempt to alter any EQ
Is there a way to update only the changed EQ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
This should be possible with Player.AudioDecoder.UpdateFilter |
Beta Was this translation helpful? Give feedback.
-
|
Hello The UpdateFilter method is not working for me, did I use it correctly? Add Filter: config.Audio.FiltersEnabled = true;
config.Audio.Filters = new List<Filter>();
for (int i = 0; i < EQData.Bands.Count; i++)
{
var band = EQData.Bands[i];
config.Audio.Filters.Add(new Filter
{
Id = $"equalizerId{i}",
Name = $"equalizerName{i}",
Args = $"frequency={band.Frequency}:width={band.Width}:width_type=h:gain={band.Gain}"
});
}Update Filter: filter = Player.Config.Audio.Filters[0];
filter.Args = $"frequency={band.Frequency}:width={band.Width}:width_type=h:gain={band.Gain}";
Player.AudioDecoder.UpdateFilter(filter.Id, filter.Name, filter.Args);thank you |
Beta Was this translation helpful? Give feedback.
This should be possible with Player.AudioDecoder.UpdateFilter