From d682a369b04c862f3dfdc83a1e36226635ae7209 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Mon, 12 Nov 2012 04:40:02 +0000 Subject: [PATCH] small sample rate selection bug git-svn-id: https://svn.code.sf.net/p/freetel/code@961 01035d8c-6547-0410-b346-abe4f91aad63 --- fdmdv2/src/dlg_audiooptions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fdmdv2/src/dlg_audiooptions.cpp b/fdmdv2/src/dlg_audiooptions.cpp index a78f9d04..7363e2b7 100644 --- a/fdmdv2/src/dlg_audiooptions.cpp +++ b/fdmdv2/src/dlg_audiooptions.cpp @@ -596,9 +596,9 @@ int AudioOptsDialog:: buildListOfSupportedSampleRates(wxComboBox *cbSampleRate, err = Pa_IsFormatSupported(NULL, &outputParameters, standardSampleRates[i]); if( err == paFormatIsSupported ) { - str.Printf("%6.0f", standardSampleRates[i]); + str.Printf("%i", (int)standardSampleRates[i]); cbSampleRate->AppendString(str); - printf("%6.0f ", standardSampleRates[i]); + printf("%i ", (int)standardSampleRates[i]); numSampleRates++; } } @@ -713,7 +713,7 @@ void AudioOptsDialog::populateParams(AudioInfoDisplay ai) buf.Printf(wxT("%s"), Pa_GetHostApiInfo(deviceInfo->hostApi)->name); ctrl->SetItem(idx, col++, buf); - buf.Printf(wxT("%6.0f"), deviceInfo->defaultSampleRate); + buf.Printf(wxT("%i"), (int)deviceInfo->defaultSampleRate); ctrl->SetItem(idx, col++, buf); if (in_out == AUDIO_IN) -- 2.25.1