<Project Name="pa_enum" Path="../tests/pa_enum/pa_enum.project" Active="Yes"/>
<Project Name="appWithDlg" Path="../tests/appWithDlg/appWithDlg.project" Active="No"/>
<BuildMatrix>
- <WorkspaceConfiguration Name="Debug" Selected="yes">
+ <WorkspaceConfiguration Name="Debug" Selected="no">
<Project Name="fdmdv2" ConfigName="Debug"/>
<Project Name="rawbits" ConfigName="Debug"/>
<Project Name="pa_enum" ConfigName="Debug"/>
<Project Name="appWithDlg" ConfigName="Debug"/>
</WorkspaceConfiguration>
- <WorkspaceConfiguration Name="Release" Selected="no">
+ <WorkspaceConfiguration Name="Release" Selected="yes">
<Project Name="fdmdv2" ConfigName="Release"/>
<Project Name="rawbits" ConfigName="Release"/>
<Project Name="pa_enum" ConfigName="Release"/>
.PHONY: clean All
All:
- @echo ----------Building project:[ pa_enum - Debug ]----------
+ @echo ----------Building project:[ pa_enum - Release ]----------
@cd "C:\bin\Projects\Radio\fdmdv2\tests\pa_enum" && "$(MAKE)" -f "pa_enum.mk"
clean:
- @echo ----------Cleaning project:[ pa_enum - Debug ]----------
+ @echo ----------Cleaning project:[ pa_enum - Release ]----------
@cd "C:\bin\Projects\Radio\fdmdv2\tests\pa_enum" && "$(MAKE)" -f "pa_enum.mk" clean
void AudioOptsDialog::OnInitDialog( wxInitDialogEvent& event )
{
ExchangeData(EXCHANGE_DATA_IN);
- populateAudioInfo();
+ //populateAudioInfo();
}
//-------------------------------------------------------------------------
wxConfigBase *pConfig = wxConfigBase::Get();
if(inout == EXCHANGE_DATA_IN)
{
- m_textRxInput->SetValue(wxGetApp().m_strRxInAudio);
- m_textTxOutput->SetValue(wxGetApp().m_strRxOutAudio);
- m_textVoiceInput->SetValue(wxGetApp().m_textVoiceInput);
- m_textVoiceOutput->SetValue(wxGetApp().m_textVoiceOutput);
+ m_textCtrlRxIn->SetValue(wxGetApp().m_strRxInAudio);
+ m_textCtrlRxOut->SetValue(wxGetApp().m_strRxOutAudio);
+ m_textCtrlTxIn->SetValue(wxGetApp().m_textVoiceInput);
+ m_textCtrlTxOut->SetValue(wxGetApp().m_textVoiceOutput);
}
if(inout == EXCHANGE_DATA_OUT)
{
- wxGetApp().m_strRxInAudio = m_textRxInput->GetValue();
- wxGetApp().m_strRxOutAudio = m_textTxOutput->GetValue();
- wxGetApp().m_textVoiceInput = m_textVoiceInput->GetValue();
- wxGetApp().m_textVoiceOutput = m_textVoiceOutput->GetValue();
+ wxGetApp().m_strRxInAudio = m_textCtrlRxIn->GetValue();
+ wxGetApp().m_strRxOutAudio = m_textCtrlRxOut->GetValue();
+ wxGetApp().m_textVoiceInput = m_textCtrlTxIn->GetValue();
+ wxGetApp().m_textVoiceOutput = m_textCtrlTxOut->GetValue();
pConfig->Write(wxT("/Audio/RxIn"), wxGetApp().m_strRxInAudio);
pConfig->Write(wxT("/Audio/RxOut"), wxGetApp().m_strRxOutAudio);
//-------------------------------------------------------------------------\r
void AudioOptsDialog::OnApplyAudioParameters(wxCommandEvent& event)\r
{\r
+ ExchangeData(EXCHANGE_DATA_OUT);
if(m_isPaInitialized)\r
{\r
if((pa_err = Pa_Terminate()) == paNoError)\r
//-------------------------------------------------------------------------\r
void AudioOptsDialog::OnOkAudioParameters(wxCommandEvent& event)\r
{\r
+ ExchangeData(EXCHANGE_DATA_OUT);
if(m_isPaInitialized)\r
{\r
if((pa_err = Pa_Terminate()) == paNoError)\r
MainFrame::MainFrame(wxWindow *parent) : MainFrameBase(parent)\r
{\r
wxInitAllImageHandlers();\r
+ wxConfigBase *pConfig = wxConfigBase::Get();
+
+ // restore frame position and size
+// int x = pConfig->Read(wxT("/MainFrame/top"), 50);
+// int y = pConfig->Read(wxT("/MainFrame/left"), 50);
+// int w = pConfig->Read(wxT("/MainFrame/width"), 650);
+// int h = pConfig->Read(wxT("/MainFrame/height"), 400);
+// wxGetApp().m_show_wf = pConfig->Read(wxT("/MainFrame/show_wf"), 1);
+// wxGetApp().m_show_spect = pConfig->Read(wxT("/MainFrame/show_spect"), 1);
+// wxGetApp().m_show_scatter = pConfig->Read(wxT("/MainFrame/show_scatter"), 1);
+// wxGetApp().m_show_timing = pConfig->Read(wxT("/MainFrame/show_timing"), 1);
+// wxGetApp().m_show_freq = pConfig->Read(wxT("/MainFrame/show_freq"), 1);
+\r
+ wxGetApp().m_strRxInAudio = pConfig->Read(wxT("/Audio/RxIn"), wxT("<m_strRxInAudio>"));
+ wxGetApp().m_strRxOutAudio = pConfig->Read(wxT("/Audio/RxOut"), wxT("<m_strRxOutAudio>"));
+ wxGetApp().m_textVoiceInput = pConfig->Read(wxT("/Audio/TxIn"), wxT("<m_textVoiceInput>"));
+ wxGetApp().m_textVoiceOutput = pConfig->Read(wxT("/Audio/TxOut"), wxT("<m_textVoiceOutput>"));
+ wxGetApp().m_strSampleRate = pConfig->Read(wxT("/Audio/SampleRate"), wxT("48000"));
+
+// wxGetApp().m_strRigCtrlPort = pConfig->Read("/Rig/Port", wxT("\\\\.\\com1"));
+// wxGetApp().m_strRigCtrlBaud = pConfig->Read("/Rig/Baud", wxT("9600"));
+// wxGetApp().m_strRigCtrlDatabits = pConfig->Read("/Rig/DataBits", wxT("8"));
+// wxGetApp().m_strRigCtrlStopbits = pConfig->Read("/Rig/StopBits", wxT("1"));
+// wxGetApp().m_strRigCtrlParity = pConfig->Read("/Rig/Parity", wxT("n"));
+
+ pConfig->SetPath(wxT("/"));
\r
this->Connect(ID_AUDIO_OPTIONS, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnAudioOptsDialog));\r
}\r
MainFrame::~MainFrame()\r
{\r
this->Disconnect(ID_AUDIO_OPTIONS, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnAudioOptsDialog));\r
+ wxConfigBase *pConfig = wxConfigBase::Get();
+ if(pConfig)
+ {
+// GetClientSize(&w, &h);
+// GetPosition(&x, &y);
+// pConfig->Write(wxT("/MainFrame/top"), (long) x);
+// pConfig->Write(wxT("/MainFrame/left"), (long) y);
+// pConfig->Write(wxT("/MainFrame/width"), (long) w);
+// pConfig->Write(wxT("/MainFrame/height"), (long) h);
+// pConfig->Write(wxT("/MainFrame/show_wf"), wxGetApp().m_show_wf);
+// pConfig->Write(wxT("/MainFrame/show_spect"), wxGetApp().m_show_spect);
+// pConfig->Write(wxT("/MainFrame/show_scatter"), wxGetApp().m_show_scatter);
+// pConfig->Write(wxT("/MainFrame/show_timing"), wxGetApp().m_show_timing);
+// pConfig->Write(wxT("/MainFrame/show_freq"), wxGetApp().m_show_freq);
+
+ pConfig->Write(wxT("/Audio/RxIn"), wxGetApp().m_strRxInAudio);
+ pConfig->Write(wxT("/Audio/RxOut"), wxGetApp().m_strRxOutAudio);
+ pConfig->Write(wxT("/Audio/TxIn"), wxGetApp().m_textVoiceInput);
+ pConfig->Write(wxT("/Audio/TxOut"), wxGetApp().m_textVoiceOutput);
+ pConfig->Write(wxT("/Audio/SampleRate"), wxGetApp().m_strSampleRate);
+
+// pConfig->Write(wxT("/Rig/Port"), wxGetApp().m_strRigCtrlPort);
+// pConfig->Write(wxT("/Rig/Baud"), wxGetApp().m_strRigCtrlBaud);
+// pConfig->Write(wxT("/Rig/DataBits"), wxGetApp().m_strRigCtrlDatabits);
+// pConfig->Write(wxT("/Rig/StopBits"), wxGetApp().m_strRigCtrlStopbits);
+// pConfig->Write(wxT("/Rig/Parity"), wxGetApp().m_strRigCtrlParity);
+ }
}\r
\r
//-------------------------------------------------------------------------
#include <wx/textctrl.h>\r
#include <wx/artprov.h>\r
#include <wx/xrc/xmlres.h>\r
+#include "wx/config.h"
#include <wx/intl.h>\r
#include <wx/listctrl.h>\r
#include <wx/menu.h>\r
{
public:
virtual bool OnInit();
+ wxString m_strRxInAudio;
+ wxString m_strRxOutAudio;
+ wxString m_textVoiceInput;
+ wxString m_textVoiceOutput;
+ wxString m_strSampleRate;
+ wxString m_strBitrate;
};
\r
// declare global static function wxGetApp()
## Auto Generated makefile by CodeLite IDE\r
## any manual changes will be erased \r
##\r
-## Debug\r
+## Release\r
ProjectName :=pa_enum\r
-ConfigurationName :=Debug\r
+ConfigurationName :=Release\r
WorkspacePath := "C:\bin\Projects\Radio\fdmdv2\build"\r
ProjectPath := "C:\bin\Projects\Radio\fdmdv2\tests\pa_enum"\r
-IntermediateDirectory :=./Debug\r
+IntermediateDirectory :=./Release\r
OutDir := $(IntermediateDirectory)\r
CurrentFileName :=\r
CurrentFilePath :=\r
CurrentFileFullPath :=\r
User :=OFA-Staff\r
-Date :=10/26/2012\r
+Date :=11/1/2012\r
CodeLitePath :="C:\bin\CodeLite"\r
LinkerName :=g++\r
SharedObjectLinkerName :=g++ -shared -fPIC\r
ObjectsFileList :="C:\bin\Projects\Radio\fdmdv2\tests\pa_enum\pa_enum.txt"\r
PCHCompileFlags :=\r
MakeDirCommand :=makedir\r
-LinkOptions := -mwindows $(shell wx-config --debug=yes --libs --unicode=yes)\r
+LinkOptions := -mwindows -s $(shell wx-config --debug=no --libs --unicode=yes)\r
IncludePath := $(IncludeSwitch). $(IncludeSwitch)/bin/MinGW-4.6.1/msys/1.0/local/include $(IncludeSwitch)../../codec2-dev/src $(IncludeSwitch)/bin/Projects/Audio/libsndfile/ \r
IncludePCH := \r
RcIncludePath := \r
AR := ar rcus\r
CXX := g++\r
CC := gcc\r
-CXXFLAGS := -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes) -DSVN_REVISION=\"824\" $(Preprocessors)\r
-CFLAGS := -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes) -DSVN_REVISION=\"824\" $(Preprocessors)\r
+CXXFLAGS := -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) -DSVN_REVISION=\"886\" $(Preprocessors)\r
+CFLAGS := -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) -DSVN_REVISION=\"886\" $(Preprocessors)\r
\r
\r
##\r
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)\r
\r
$(IntermediateDirectory)/.d:\r
- @$(MakeDirCommand) "./Debug"\r
+ @$(MakeDirCommand) "./Release"\r
\r
PreBuild:\r
\r
$(RM) $(IntermediateDirectory)/AudioOptsDialog$(PreprocessSuffix)\r
$(RM) $(OutputFile)\r
$(RM) $(OutputFile).exe\r
- $(RM) "C:\bin\Projects\Radio\fdmdv2\build\.build-debug\pa_enum"\r
+ $(RM) "C:\bin\Projects\Radio\fdmdv2\build\.build-release\pa_enum"\r
\r
\r
-./Debug/gui.o ./Debug/main.o ./Debug/AudioOptsDialog.o \r
+./Release/gui.o ./Release/main.o ./Release/AudioOptsDialog.o \r