You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In HTTPWebServerConnection, for using Audio Devices input, a text field was added to the HTML form where the user can specify a sox filter. The default value is "vol 1". Typically, the user might want to adjust the volume to 2 or more.
In SDRController, use the new sox filter string in the first stage chain, in the final sox task. Also, obtain the current sample rate for the audio input device and use it in the sox task that captures the audio input, typically 48000 or 44100. Previously, the standard macOS "Audio MIDI Setup.app" application could be used to adjust the device sample rate to 48000 before using LocalRadio to generate the audio stream, but now LocalRadio will obtain the correct value and use it automatically.
NSString * formAudioOutputFilterString = @"<label for='audio_output_filter'>Sox Audio Output Filter:</label>\n<input class='twelve columns value-prop' type='text' id='audio_output_filter' name='audio_output_filter' value='vol 1' title='The Audio Output Filter is used by the Sox audio tool for several purposes. This filter is for the final Sox output. The default value is \"vol 1\". Do not set a \"rate\" command here, LocalRadio automatically sets the sample rate to 48000.'>\n";
NSString * listenButtonString = @"<br><br><input class='twelve columns button button-primary' type='button' value='Listen' onclick=\"var deviceForm=getElementById('deviceForm'); deviceListenButtonClicked(deviceForm);\" title=\"Click the Listen button for the selected device. You may also need to click on the Play button in the audio controls below.\">";
NSString * formAudioOutputFilterString = [NSStringstringWithFormat:@"<label for='frequency'>Sox Audio Output Filter:</label>\n<input class='twelve columns value-prop' type='text' id='audio_output_filter' name='audio_output_filter' value='%@' title='The Audio Output Filter is used by the Sox audio tool for several purposes. This filter is for the final Sox output. The default value is \"vol 1\". Do not set a \"rate\" command here, LocalRadio automatically sets the sample rate to 48000.'>\n", audioOutputFilterString];
3258
+
NSString * formAudioOutputFilterString = [NSStringstringWithFormat:@"<label for='audio_output_filter'>Sox Audio Output Filter:</label>\n<input class='twelve columns value-prop' type='text' id='audio_output_filter' name='audio_output_filter' value='%@' title='The Audio Output Filter is used by the Sox audio tool for several purposes. This filter is for the final Sox output. The default value is \"vol 1\". Do not set a \"rate\" command here, LocalRadio automatically sets the sample rate to 48000.'>\n", audioOutputFilterString];
0 commit comments