git-svn-id: https://svn.code.sf.net/p/freetel/code@761 01035d8c-6547-0410-b346-abe4f9...
authorwittend99 <wittend99@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 16 Oct 2012 02:01:27 +0000 (02:01 +0000)
committerwittend99 <wittend99@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 16 Oct 2012 02:01:27 +0000 (02:01 +0000)
fdmdv2/build/fdmdv2.mk
fdmdv2/build/fdmdv2.project
fdmdv2/build/fdmdv2.txt
fdmdv2/build/fdmdv2.workspace
fdmdv2/build/fdmdv2_wsp.mk
fdmdv2/src/Makefile
fdmdv2/src/fdmdv2_main.cpp
fdmdv2/src/fdmdv2_main.h
fdmdv2/src/fdmdv2_plot.cpp

index d06bdb59ccc4140adc91d607b4f35a560c1a51d1..0539a6edc9c2481f23878f198767e1711864241e 100644 (file)
@@ -2,18 +2,18 @@
 ## Auto Generated makefile by CodeLite IDE\r
 ## any manual changes will be erased      \r
 ##\r
-## Debug\r
+## Release\r
 ProjectName            :=fdmdv2\r
-ConfigurationName      :=Debug\r
+ConfigurationName      :=Release\r
 WorkspacePath          := "C:\bin\Projects\Radio\fdmdv2\build"\r
 ProjectPath            := "C:\bin\Projects\Radio\fdmdv2\build"\r
-IntermediateDirectory  :=./Debug\r
+IntermediateDirectory  :=./Release\r
 OutDir                 := $(IntermediateDirectory)\r
 CurrentFileName        :=\r
 CurrentFilePath        :=\r
 CurrentFileFullPath    :=\r
 User                   :=OFA-Staff\r
-Date                   :=10/12/2012\r
+Date                   :=10/15/2012\r
 CodeLitePath           :="C:\bin\CodeLite"\r
 LinkerName             :=g++\r
 SharedObjectLinkerName :=g++ -shared -fPIC\r
@@ -35,13 +35,13 @@ PreprocessOnlySwitch   :=-E
 ObjectsFileList        :="C:\bin\Projects\Radio\fdmdv2\build\fdmdv2.txt"\r
 PCHCompileFlags        :=\r
 MakeDirCommand         :=makedir\r
-LinkOptions            :=  -mwindows $(shell wx-config --debug=yes --libs --unicode=yes)\r
-IncludePath            :=  $(IncludeSwitch). $(IncludeSwitch)/bin/MinGW/msys/1.0/local/include $(IncludeSwitch)../../codec2-dev/src $(IncludeSwitch)../3rdparty/portaudio/include $(IncludeSwitch)../3rdparty/portaudio/bindings/cpp/include $(IncludeSwitch)../3rdparty/libsndfile/include $(IncludeSwitch)../3rdparty/libsamplerate-0.1.8/src \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 \r
 IncludePCH             := \r
 RcIncludePath          := \r
 Libs                   := $(LibrarySwitch)sndfile-1 $(LibrarySwitch)codec2 $(LibrarySwitch)portaudio $(LibrarySwitch)portaudiocpp \r
-ArLibs                 :=  "libsndfile-1.dll" "libcodec2.a" "libportaudio.a" "libportaudiocpp.a" \r
-LibPath                := $(LibraryPathSwitch). $(LibraryPathSwitch)/bin/MinGW/msys/1.0/local/lib $(LibraryPathSwitch)../extern/lib \r
+ArLibs                 :=  "libsndfile-1.dll" "codec2" "libportaudio.a" "libportaudiocpp.a" \r
+LibPath                := $(LibraryPathSwitch). $(LibraryPathSwitch)/bin/Projects/Radio/codec2-dev/src/.libs $(LibraryPathSwitch)/bin/MinGW-4.6.1/msys/1.0/local/lib \r
 \r
 ##\r
 ## Common variables\r
@@ -50,8 +50,8 @@ LibPath                := $(LibraryPathSwitch). $(LibraryPathSwitch)/bin/MinGW/m
 AR       := ar rcus\r
 CXX      := g++\r
 CC       := gcc\r
-CXXFLAGS :=  -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes)  -DSVN_REVISION=\"744\"  $(Preprocessors)\r
-CFLAGS   :=  -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes)  -DSVN_REVISION=\"744\"  $(Preprocessors)\r
+CXXFLAGS :=  -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no)  -DSVN_REVISION=\"760\"  $(Preprocessors)\r
+CFLAGS   :=  -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no)  -DSVN_REVISION=\"760\"  $(Preprocessors)\r
 \r
 \r
 ##\r
@@ -78,7 +78,7 @@ $(OutputFile): $(IntermediateDirectory)/.d $(Objects)
        $(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)\r
 \r
 $(IntermediateDirectory)/.d:\r
-       @$(MakeDirCommand) "./Debug"\r
+       @$(MakeDirCommand) "./Release"\r
 \r
 PreBuild:\r
 \r
@@ -237,6 +237,6 @@ clean:
        $(RM) $(IntermediateDirectory)/src_fdmdv2_hdw_ports$(PreprocessSuffix)\r
        $(RM) $(OutputFile)\r
        $(RM) $(OutputFile).exe\r
-       $(RM) "C:\bin\Projects\Radio\fdmdv2\build\.build-debug\fdmdv2"\r
+       $(RM) "C:\bin\Projects\Radio\fdmdv2\build\.build-release\fdmdv2"\r
 \r
 \r
index 1bc2029473e1346115f814d74038c9e5d92a05a3..13082e868a50029848eceb3a2de51b9e421ddeb0 100644 (file)
@@ -71,6 +71,8 @@
   <VirtualDirectory Name="resources">
     <File Name="../src/FDMDV2.fbp"/>
   </VirtualDirectory>
+  <Dependencies Name="Debug"/>
+  <Dependencies Name="Release"/>
   <Settings Type="Executable">
     <GlobalSettings>
       <Compiler Options="" C_Options="">
         <IncludePath Value="../3rdparty/portaudio/include"/>
         <IncludePath Value="../3rdparty/portaudio/bindings/cpp/include"/>
         <IncludePath Value="../3rdparty/libsndfile/include"/>
-        <IncludePath Value="../3rdparty/libsamplerate-0.1.8/src"/>
         <Preprocessor Value="__WX__"/>
       </Compiler>
       <Linker Options="-mwindows;$(shell wx-config --debug=yes --libs --unicode=yes)" Required="yes">
         <LibraryPath Value="/bin/MinGW/msys/1.0/local/lib"/>
-        <LibraryPath Value="../extern/lib"/>
-        <Library Value="libsndfile-1.dll"/>
         <Library Value="libcodec2.a"/>
         <Library Value="libportaudio.a"/>
         <Library Value="libportaudiocpp.a"/>
     </Configuration>
     <Configuration Name="Release" CompilerType="gnu g++" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
       <Compiler Options="-O2;-Wall;$(shell wx-config --cxxflags --unicode=yes --debug=no)" C_Options="-O2;-Wall;$(shell wx-config --cxxflags --unicode=yes --debug=no)" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" UseDifferentPCHFlags="no" PCHFlags="">
-        <IncludePath Value="/bin/MinGW/msys/1.0/local/include"/>
+        <IncludePath Value="/bin/MinGW-4.6.1/msys/1.0/local/include"/>
         <IncludePath Value="../../codec2-dev/src"/>
-        <IncludePath Value="../3rdparty/portaudio/include"/>
-        <IncludePath Value="../3rdparty/portaudio/bindings/cpp/include"/>
-        <IncludePath Value="../3rdparty/libsndfile/include"/>
-        <IncludePath Value="../3rdparty/libsamplerate-0.1.8/src"/>
         <Preprocessor Value="__WX__"/>
       </Compiler>
       <Linker Options="-mwindows;-s;$(shell wx-config --debug=no --libs --unicode=yes)" Required="yes">
-        <LibraryPath Value="/bin/MinGW/msys/1.0/local/lib"/>
-        <LibraryPath Value="../extern/lib"/>
+        <LibraryPath Value="/bin/Projects/Radio/codec2-dev/src/.libs"/>
+        <LibraryPath Value="/bin/MinGW-4.6.1/msys/1.0/local/lib"/>
         <Library Value="libsndfile-1.dll"/>
-        <Library Value="libcodec2.a"/>
+        <Library Value="codec2"/>
         <Library Value="libportaudio.a"/>
         <Library Value="libportaudiocpp.a"/>
       </Linker>
       </Completion>
     </Configuration>
   </Settings>
-  <Dependencies Name="Debug"/>
-  <Dependencies Name="Release"/>
 </CodeLite_Project>
index 4368000624e11ec720e306a265978e474ee7b86a..4221d1f3a2589f80b3891a132c6e1e731378990b 100644 (file)
@@ -1 +1 @@
-./Debug/src_dlg_about.o ./Debug/src_dlg_audio.o ./Debug/src_dlg_comports.o ./Debug/src_dlg_options.o ./Debug/src_fdmdv2_main.o ./Debug/src_fdmdv2_plot.o ./Debug/src_topFrame.o ./Debug/src_fdmdv2_plot_scatter.o ./Debug/src_fdmdv2_plot_waterfall.o ./Debug/src_fdmdv2_plot_spectrum.o  ./Debug/src_fdmdv2_pa_wrapper.o ./Debug/src_fdmdv2_plot_scalar.o ./Debug/src_fdmdv2_hdw_ports.o  \r
+./Release/src_dlg_about.o ./Release/src_dlg_audio.o ./Release/src_dlg_comports.o ./Release/src_dlg_options.o ./Release/src_fdmdv2_main.o ./Release/src_fdmdv2_plot.o ./Release/src_topFrame.o ./Release/src_fdmdv2_plot_scatter.o ./Release/src_fdmdv2_plot_waterfall.o ./Release/src_fdmdv2_plot_spectrum.o  ./Release/src_fdmdv2_pa_wrapper.o ./Release/src_fdmdv2_plot_scalar.o ./Release/src_fdmdv2_hdw_ports.o  \r
index db92989ab7c69607d465d92742caba9dc97696d4..6c12b0fd2ddc29d71092b062d17d9f07a36a6e4e 100644 (file)
@@ -1,15 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <CodeLite_Workspace Name="fdmdv2" Database="./fdmdv2.tags">
   <Project Name="fdmdv2" Path="fdmdv2.project" Active="Yes"/>
+  <Environment>
+    <![CDATA[]]>
+  </Environment>
   <BuildMatrix>
-    <WorkspaceConfiguration Name="Debug" Selected="yes">
+    <WorkspaceConfiguration Name="Debug" Selected="no">
       <Project Name="fdmdv2" ConfigName="Debug"/>
     </WorkspaceConfiguration>
     <WorkspaceConfiguration Name="Release" Selected="yes">
       <Project Name="fdmdv2" ConfigName="Release"/>
     </WorkspaceConfiguration>
   </BuildMatrix>
-  <Environment>
-    <![CDATA[]]>
-  </Environment>
 </CodeLite_Workspace>
index 4ea617a27f67fd1c8affb214583d0600e2a5783b..59fb53ea6a70e2d3e0e9130c933698d6a46b4b21 100644 (file)
@@ -1,8 +1,8 @@
 .PHONY: clean All
 
 All:
-       @echo ----------Building project:[ fdmdv2 - Debug ]----------
+       @echo ----------Building project:[ fdmdv2 - Release ]----------
        @"$(MAKE)" -f "fdmdv2.mk"
 clean:
-       @echo ----------Cleaning project:[ fdmdv2 - Debug ]----------
+       @echo ----------Cleaning project:[ fdmdv2 - Release ]----------
        @"$(MAKE)" -f "fdmdv2.mk" clean
index 954acb1f7029c4247d9c572414cc3cc41ee52721..f726ab5183ce2e01b327d4ee4feb9b71a16db325 100644 (file)
@@ -42,11 +42,11 @@ CONFIG_CLEAN_VPATH_FILES =
 SOURCES =
 DIST_SOURCES =
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /home/david/fdmdv2/missing --run aclocal-1.11
-AMTAR = ${SHELL} /home/david/fdmdv2/missing --run tar
-AUTOCONF = ${SHELL} /home/david/fdmdv2/missing --run autoconf
-AUTOHEADER = ${SHELL} /home/david/fdmdv2/missing --run autoheader
-AUTOMAKE = ${SHELL} /home/david/fdmdv2/missing --run automake-1.11
+ACLOCAL = ${SHELL} /p/Radio/fdmdv2/missing --run aclocal-1.11
+AMTAR = ${SHELL} /p/Radio/fdmdv2/missing --run tar
+AUTOCONF = ${SHELL} /p/Radio/fdmdv2/missing --run autoconf
+AUTOHEADER = ${SHELL} /p/Radio/fdmdv2/missing --run autoheader
+AUTOMAKE = ${SHELL} /p/Radio/fdmdv2/missing --run automake-1.11
 AWK = gawk
 CC = gcc
 CCDEPMODE = depmode=none
@@ -60,9 +60,9 @@ ECHO_C =
 ECHO_N = -n
 ECHO_T = 
 EGREP = /bin/grep -E
-EXEEXT = 
+EXEEXT = .exe
 GREP = /bin/grep
-INSTALL = /usr/bin/install -c
+INSTALL = /bin/install -c
 INSTALL_DATA = ${INSTALL} -m 644
 INSTALL_PROGRAM = ${INSTALL}
 INSTALL_SCRIPT = ${INSTALL}
@@ -105,7 +105,7 @@ LIBS = -lsndfile-1 \
 -lwsock32 
 
 LTLIBOBJS = 
-MAKEINFO = ${SHELL} /home/david/fdmdv2/missing --run makeinfo
+MAKEINFO = ${SHELL} /p/Radio/fdmdv2/missing --run makeinfo
 MKDIR_P = /bin/mkdir -p
 OBJEXT = o
 PACKAGE = fdmdv2
@@ -117,13 +117,13 @@ PACKAGE_URL =
 PACKAGE_VERSION = 0.2
 PATH_SEPARATOR = :
 SET_MAKE = 
-SHELL = /bin/bash
+SHELL = /bin/sh
 STRIP = 
 VERSION = 0.2
-abs_builddir = /home/david/fdmdv2/src
-abs_srcdir = /home/david/fdmdv2/src
-abs_top_builddir = /home/david/fdmdv2
-abs_top_srcdir = /home/david/fdmdv2
+abs_builddir = /p/Radio/fdmdv2/src
+abs_srcdir = /p/Radio/fdmdv2/src
+abs_top_builddir = /p/Radio/fdmdv2
+abs_top_srcdir = /p/Radio/fdmdv2
 ac_ct_CC = gcc
 am__include = include
 am__leading_dot = .
@@ -142,7 +142,7 @@ host_alias =
 htmldir = ${docdir}
 includedir = ${prefix}/include
 infodir = ${datarootdir}/info
-install_sh = ${SHELL} /home/david/fdmdv2/install-sh
+install_sh = ${SHELL} /p/Radio/fdmdv2/install-sh
 libdir = ${exec_prefix}/lib
 libexecdir = ${exec_prefix}/libexec
 localedir = ${datarootdir}/locale
index 0db8ab68169210766d202e739ee3c542c7639c3c..820046210dae1a0a85d119ace84a3b4a65715941 100644 (file)
@@ -801,6 +801,22 @@ void MainFrame::OnTogBtnOnOff(wxCommandEvent& event)
     }
 }
 
+//----------------------------------------------------------
+// OnTogBtnLoopRx()
+//----------------------------------------------------------
+void MainFrame::OnTogBtnLoopRx( wxCommandEvent& event )
+{
+    wxMessageBox(wxT("Got Click!"), wxT("OnTogBtnLoopRx()"), wxOK);
+}
+
+//----------------------------------------------------------
+// OnTogBtnLoopTx()
+//----------------------------------------------------------
+void MainFrame::OnTogBtnLoopTx( wxCommandEvent& event )
+{
+    wxMessageBox(wxT("Got Click!"), wxT("OnTogBtnLoopRx()"), wxOK);
+}
+
 //----------------------------------------------------------
 // Audio stream processing loop states (globals).
 //----------------------------------------------------------
@@ -878,7 +894,7 @@ void MainFrame::startRxStream()
         {
             wxMessageBox(wxT("Rx Error: No default output device."), wxT("Error"), wxOK);
            delete m_rxPa;
-           m_RxRunning = false;            
+           m_RxRunning = false;
             return;
         }
         m_rxErr = m_rxPa->setOutputDevice(m_rxDevOut);
@@ -918,7 +934,6 @@ void MainFrame::startRxStream()
            delete m_rxPa;
            fifo_destroy(m_rxUserdata->infifo);
            fifo_destroy(m_rxUserdata->outfifo);
-           m_RxRunning = false;            
            return;
         }
         m_rxErr = m_rxPa->streamStart();
@@ -928,7 +943,6 @@ void MainFrame::startRxStream()
            delete m_rxPa;
            fifo_destroy(m_rxUserdata->infifo);
            fifo_destroy(m_rxUserdata->outfifo);
-           m_RxRunning = false;            
            return;
         }
     }
@@ -1123,8 +1137,7 @@ int MainFrame::rxCallback(
 
     assert(inputBuffer != NULL);
     assert(outputBuffer != NULL);
-
-    /* 
+    /*
        framesPerBuffer is portaudio-speak for number of samples we
        actually get from the record side and need to provide to the
        play side. On Linux (at least) it was found that
@@ -1169,10 +1182,9 @@ int MainFrame::rxCallback(
        }
        g_nInputBuf += FDMDV_NOM_SAMPLES_PER_FRAME;
        per_frame_rx_processing(g_pRxOutBuf, &g_nOutputBuf, g_CodecBits, g_RxInBuf, &g_nInputBuf, &g_nRxIn, &g_State, g_pCodec2);
-    
        //cbData->pWFPanel->m_newdata = true;
        //cbData->pSPPanel->m_newdata = true;
-    
+
        // if demod out of sync copy input audio from A/D to aid in tuning
        if (g_nOutputBuf >= N8)
         {
@@ -1198,7 +1210,7 @@ int MainFrame::rxCallback(
         {
            g_pRxOutBuf[i] = g_pRxOutBuf[i + N8];
        }
-  
+
        /* test: echo input to output, make this loopback option */
        for(i=0; i<N8; i++)
            in8k[MEM8+i] = out8k[i];
@@ -1228,16 +1240,16 @@ int MainFrame::rxCallback(
        /* write signal to both channels */
 
        for(i=0; i<framesPerBuffer; i++,wptr+=2) {
-           wptr[0] = outdata[i]; 
-           wptr[1] = outdata[i]; 
+           wptr[0] = outdata[i];
+           wptr[1] = outdata[i];
        }
     }
     else {
        //printf("no data\n");
        /* zero output if no data available */
        for(i=0; i<framesPerBuffer; i++,wptr+=2) {
-           wptr[0] = 0; 
-           wptr[1] = 0; 
+           wptr[0] = 0;
+           wptr[1] = 0;
        }
     }
 
index cad24dedc70620887943f2b07c6223975636d820..9fde48fea3faaf38f6f72c2e8bddcdeea202dd2f 100644 (file)
@@ -245,6 +245,8 @@ class MainFrame : public TopFrame
         void OnTogBtnTxID( wxCommandEvent& event );
         void OnTogBtnTXClick( wxCommandEvent& event );
         void OnTogBtnOnOff( wxCommandEvent& event );
+        void OnTogBtnLoopRx( wxCommandEvent& event );
+        void OnTogBtnLoopTx( wxCommandEvent& event );
 
         void OnTogBtnSplitClickUI(wxUpdateUIEvent& event);
         void OnTogBtnAnalogClickUI(wxUpdateUIEvent& event);
index 8413c6c04f1e29553eee6ea58611643d328abb63..898dd4f7186adedf454e089a6372283a9a993a3d 100644 (file)
@@ -208,7 +208,7 @@ void PlotPanel::draw(wxAutoBufferedPaintDC& pDC)
         m_newdata = false;
         int t = m_rPlot.GetTop();
         int l = m_rPlot.GetLeft();
-        int r = m_rPlot.GetRight();
+//        int r = m_rPlot.GetRight();
         int h = m_rPlot.GetHeight();
         int w = m_rPlot.GetWidth();
         pDC.Blit(l, t, w, h, &m_mDC, l, t);