akon47 / ToneGenerator

🎧 A tone audio generation program that can be used in situations where testing of audio equipment or other constant audio signals are required.
MIT License
6 stars 1 forks source link

Can't go above 10khz? #2

Open fir3-1ce opened 10 months ago

fir3-1ce commented 10 months ago

I thought this software was exactly what I was looking for, but it can't go above 10khz. Why is that? I just wanted a simple offline tool for stress testing, much like the one here: https://www.szynalski.com/tone-generator/

Is there a way to override the 10khz limit?

akon47 commented 10 months ago

Could you possibly build this project yourself?? Just change the Maximum value in line 50 of the MainWindow.xaml file.

<Slider
    Value="{Binding Path=ToneAudioRenderer.Frequency, ElementName=root, Mode=TwoWay}"
    Minimum="0.0"
    Maximum="10000.0"  <!-- This Line !! -->
    IsSnapToTickEnabled="True"
    TickFrequency="1.0"
    Margin="5 5 5 3"
    SmallChange="1"
    LargeChange="10"
    />
fir3-1ce commented 10 months ago

I'm trying to compile this on Ubuntu but I'm having a bit of trouble getting xbuild to recognize the NAudio assembly references

fir3-1ce commented 10 months ago

Sorry, but I just spent an hour on this and can't figure it out. I have Mono with xbuild and I can't get it to recognize NAudio - I tried manually creating a packages folder with the NAudio latest release files inside because I thought it would satisfy the HintPath argument. Then I tried dotnet for Linux but the 4.7.2 SDK isn't available. I don't know much about developing with C sharp so I guess I'll have to boot into Windows sometime and try it again with Visual Studio

joshnoe94 commented 6 months ago

Would you be opposed to using App.config for this, so changing the values wouldn't require rebuilding? I have it working on my end.