HiveMind
HiveMind
Explore posts from servers
CC#
Created by HiveMind on 9/12/2024 in #help
Change language at runtime in WPF
Hi! I have a set of *.resx files with translations and they work fine when I start the app. If I start on computer with english system, it chooses english translation, if I choose spanish system, it loads spanish translation, etc. But how can I change it at runtime? Currently, I'm doing it in this way:
C#
<Label FontSize="10" Foreground="Gray" Margin="0,10,0,0" Name="languageLabel" Content="{x:Static p:LanguageVersion.Settings_Language}"/>
C#
<Label FontSize="10" Foreground="Gray" Margin="0,10,0,0" Name="languageLabel" Content="{x:Static p:LanguageVersion.Settings_Language}"/>
And I guess, I will need to change every x:Static, but I'm ready for this sacrifice. I'm trying to change language in this manner:
C#
Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("pl");
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("pl");
C#
Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("pl");
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("pl");
But it doesn't do anything
5 replies
CC#
Created by HiveMind on 9/4/2024 in #help
Add sound to audio input
Hi! I have an api that takes an audio from some input, e.g. microphone, and passes it furher to some external device. How can I add some sounds, or modify the sound before its passed to audio port? I need to add some distortion to the audio, like e.g. phone talk with very pool connection. Unfortunately, I can't modify the api
9 replies
CC#
Created by HiveMind on 8/16/2024 in #help
Maui + Blazor hybrid app live coding
Does Maui + Blazor hybrid app support live coding? If so, how can I enable it?
8 replies
CC#
Created by HiveMind on 8/4/2024 in #help
Can't access interface method
No description
5 replies
CC#
Created by HiveMind on 8/2/2024 in #help
One aux, multiple sounds
Hi. I have such situation: multiple microphones, all connected to laptop via the same aux. Then, I need to record and save sound from each microphon to different files. The catch is, people can talk at the same time. If aux can even send multiple sounds and not combine them all into one, how can I distinguish them in C# in order to record them and save? Currently, for recording I'm using NAudio library, but just from one source. Can it handle it, or do I need to choose different library?
4 replies