morse2txt-checkins Mailing List for Morse code decoder (Page 2)
Morse code decoder.
Brought to you by:
kprox
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(22) |
Sep
(4) |
Oct
(32) |
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(4) |
Feb
|
Mar
(9) |
Apr
(6) |
May
(10) |
Jun
(8) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(9) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
(1) |
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(22) |
Oct
(4) |
Nov
(6) |
Dec
(12) |
2009 |
Jan
(1) |
Feb
|
Mar
(4) |
Apr
(5) |
May
(15) |
Jun
(13) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ken P. <kp...@us...> - 2009-05-30 01:57:54
|
Update of /cvsroot/morse2txt/morse2txt In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv3464 Modified Files: morse2txt.spec.in Log Message: permissions Index: morse2txt.spec.in =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/morse2txt.spec.in,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** morse2txt.spec.in 13 Sep 2008 18:32:28 -0000 1.10 --- morse2txt.spec.in 30 May 2009 00:44:24 -0000 1.11 *************** *** 23,27 **** %changelog ! * Sat Sep 13 2008 Ken Prox <kp...@us...> - Update Fedora release version. - Added capability to Audio API to report device types supported. --- 23,27 ---- %changelog ! * Fri May 29 2009 Ken Prox <kp...@us...> - Update Fedora release version. - Added capability to Audio API to report device types supported. |
From: Ken P. <kp...@us...> - 2009-05-30 00:56:33
|
Update of /cvsroot/morse2txt/morse2txt In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv4022 Modified Files: morse2txt.spec.in Log Message: permissions again |
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv3589 Modified Files: Doxyfile Makefile.am agc.c agc.h audio.c audio.h audio_alsa.c audio_alsa.h audio_loopback.c audio_loopback.h audio_oss.c audio_oss.h callbacks.c callbacks.h dglitch.c dglitch.h dt_window.c dt_window.h fir_win.c fir_win.h interface.c interface.h interface_il.c interface_il.h main.c morse.c morse.desktop.in morse.h morse_stats_cb.c morse_stats_cb.h morse_stats_i.c morse_stats_i.h preferences.c preferences.h prop_callbacks.c prop_callbacks.h prop_interface.c prop_interface.h support.c support.h utility.c utility.h Log Message: fix permissions |
From: Ken P. <kp...@us...> - 2009-04-12 16:18:40
|
Update of /cvsroot/morse2txt/morse2txt In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv17629 Modified Files: configure.in Log Message: updated to 2.61 Index: configure.in =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/configure.in,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** configure.in 4 Apr 2009 17:18:06 -0000 1.11 --- configure.in 12 Apr 2009 16:18:35 -0000 1.12 *************** *** 1,13 **** dnl Process this file with autoconf to produce a configure script. AC_INIT(morse2txt, 1.0.0) AM_INIT_AUTOMAKE(morse2txt, 1.0.0) AM_MAINTAINER_MODE ! AM_CONFIG_HEADER(config.h) ! AC_ISC_POSIX AC_PROG_CC - AM_PROG_CC_STDC AC_HEADER_STDC pkg_modules="libgnomeui-2.0" --- 1,15 ---- dnl Process this file with autoconf to produce a configure script. + AC_PREREQ(2.61) AC_INIT(morse2txt, 1.0.0) AM_INIT_AUTOMAKE(morse2txt, 1.0.0) AM_MAINTAINER_MODE ! AC_CONFIG_SRCDIR([config.h.in]) ! AC_CONFIG_HEADER([config.h]) ! AC_PROG_CXX AC_PROG_CC AC_HEADER_STDC + AC_CHECK_HEADERS([fcntl.h malloc.h stdint.h stdlib.h string.h strings.h sys/ioctl.h sys/timeb.h unistd.h sys/soundcard.h alsa/asoundlib.h]) pkg_modules="libgnomeui-2.0" *************** *** 23,62 **** AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) - dnl AM_PATH_GLIB( , , gthread) - - - dnl Checks for programs. - dnl AC_PROG_INSTALL - dnl AC_PROG_LN_S - dnl AC_PROG_MAKE_SET - - dnl AC_SUBST(LDFLAGS) - dnl AC_SUBST(CFLAGS) - dnl AC_SUBST(CPPFLAGS) - - dnl Utility conditional - - dnl Checks for header files. - AC_CHECK_HEADERS(fcntl.h \ - limits.h \ - malloc.h \ - strings.h \ - sys/ioctl.h \ - unistd.h \ - sys/timeb.h \ - sys/soundcard.h \ - alsa/asoundlib.h) - dnl Checks for typedefs, structures, and compiler characteristics. ! dnl AC_C_CONST ! dnl AC_C_INLINE ! AC_TYPE_SIZE_T dnl Checks for library functions. ! dnl AC_FUNC_ALLOCA ! dnl AC_PROG_GCC_TRADITIONAL ! dnl AC_FUNC_MMAP ! dnl AC_CHECK_FUNCS(getcwd getwd putenv strdup strerror) dnl --- 25,43 ---- AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) dnl Checks for typedefs, structures, and compiler characteristics. ! AC_C_CONST ! AC_TYPE_INT16_T ! AC_TYPE_INT32_T ! AC_TYPE_INT8_T ! AC_TYPE_SIZE_T ! AC_TYPE_UINT32_T ! AC_TYPE_UINT8_T ! AC_C_VOLATILE AC_TYPE_SIZE_T dnl Checks for library functions. ! AC_PROG_GCC_TRADITIONAL ! AC_FUNC_MALLOC ! AC_CHECK_FUNCS([ftime pow sqrt]) dnl *************** *** 69,79 **** AM_GLIB_GNU_GETTEXT ! AC_OUTPUT([ ! morse2txt.spec ! Makefile ! po/Makefile.in ! src/morse.desktop ! src/Makefile ! gui/Makefile ! ]) --- 50,59 ---- AM_GLIB_GNU_GETTEXT ! AC_CONFIG_FILES([morse2txt.spec ! Makefile ! po/Makefile.in ! src/morse.desktop ! src/Makefile ! gui/Makefile]) + AC_OUTPUT |
From: Ken P. <kp...@us...> - 2009-04-05 00:49:04
|
Update of /cvsroot/morse2txt/morse2txt In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5814 Modified Files: ChangeLog Log Message: added old changes that were captured in the spec.in file Index: ChangeLog =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/ChangeLog,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ChangeLog 3 Apr 2009 01:19:41 -0000 1.13 --- ChangeLog 5 Apr 2009 00:48:50 -0000 1.14 *************** *** 7,10 **** --- 7,12 ---- - Added 22050 and 44100 Hz sampling rates for those audio cards that do not support the slower rates. + - Added capability to Audio API to report device types supported. + Done for future expansion. * Sat Jun 09 2006 Ken Prox <kp...@us...> |
From: Ken P. <kp...@us...> - 2009-04-04 17:18:20
|
Update of /cvsroot/morse2txt/morse2txt In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv1941 Modified Files: configure.in Log Message: fix automake warnings Index: configure.in =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/configure.in,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** configure.in 13 Sep 2008 18:31:36 -0000 1.10 --- configure.in 4 Apr 2009 17:18:06 -0000 1.11 *************** *** 1,6 **** dnl Process this file with autoconf to produce a configure script. ! AC_INIT(configure.in) ! AM_INIT_AUTOMAKE(morse2txt, 0.3.1) AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) --- 1,6 ---- dnl Process this file with autoconf to produce a configure script. ! AC_INIT(morse2txt, 1.0.0) ! AM_INIT_AUTOMAKE(morse2txt, 1.0.0) AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) |
From: Ken P. <kp...@us...> - 2009-04-03 01:19:53
|
Update of /cvsroot/morse2txt/morse2txt In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv31572 Modified Files: ChangeLog Log Message: prepare for next release Index: ChangeLog =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/ChangeLog,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** ChangeLog 11 Jun 2006 14:17:35 -0000 1.12 --- ChangeLog 3 Apr 2009 01:19:41 -0000 1.13 *************** *** 1,2 **** --- 1,11 ---- + * TBD Apr XX 2009 Ken Prox <kp...@us...> + - Fixed build problems on Debian 5, and probably some other systems as well. + - Replaced depreciated GList boxes with GTK Combo Boxes. + - Fixed some types 'size_t' which were causing problems on 64 bit systems + in morse and audio. + - Added missing oss read function in default audio API with no OSS. + - Added 22050 and 44100 Hz sampling rates for those audio cards that do not + support the slower rates. + * Sat Jun 09 2006 Ken Prox <kp...@us...> - Added GUI Window that displays Morse Timing Statistics. |
From: Ken P. <kp...@us...> - 2009-04-01 02:24:55
|
Update of /cvsroot/morse2txt/morse2txt In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv23680 Modified Files: config.h.in Log Message: new default for size_t Index: config.h.in =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/config.h.in,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** config.h.in 2 Aug 2005 02:09:00 -0000 1.2 --- config.h.in 1 Apr 2009 02:02:20 -0000 1.3 *************** *** 94,97 **** #undef VERSION ! /* Define to `unsigned' if <sys/types.h> does not define. */ #undef size_t --- 94,97 ---- #undef VERSION ! /* Define to `unsigned int' if <sys/types.h> does not define. */ #undef size_t |
From: Ken P. <kp...@us...> - 2009-03-31 00:26:03
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv28324/src Modified Files: Makefile.am Log Message: add the missing \ in the includes macro Index: Makefile.am =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/Makefile.am,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile.am 29 May 2006 19:43:26 -0000 1.5 --- Makefile.am 31 Mar 2009 00:25:50 -0000 1.6 *************** *** 6,20 **** -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ ! @PACKAGE_CFLAGS@ ! -I$(top_srcdir) \ ! -Wall -Wimplicit \ ! -Wreturn-type \ ! -Wunused \ ! -Wswitch \ ! -Wcomment \ ! -Wuninitialized \ ! -Wparentheses \ ! -Wpointer-arith \ ! -Wmissing-prototypes \ $(GSL_CFLAGS) --- 6,20 ---- -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ ! @PACKAGE_CFLAGS@ \ ! -I$(top_srcdir) \ ! -Wall -Wimplicit \ ! -Wreturn-type \ ! -Wunused \ ! -Wswitch \ ! -Wcomment \ ! -Wuninitialized \ ! -Wparentheses \ ! -Wpointer-arith \ ! -Wmissing-prototypes \ $(GSL_CFLAGS) |
From: Ken P. <kp...@us...> - 2009-03-08 19:53:10
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv17154/src Modified Files: prop_interface.c Log Message: Add 22,050 and 44,100 Hz sampling rates. Not all audio devices support the slower rates. Index: prop_interface.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/prop_interface.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** prop_interface.c 4 Oct 2008 02:06:20 -0000 1.9 --- prop_interface.c 8 Mar 2009 19:52:57 -0000 1.10 *************** *** 139,142 **** --- 139,143 ---- gtk_combo_box_append_text (GTK_COMBO_BOX (comboboxentrySampleFrequency), _("16000")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboboxentrySampleFrequency), _("22050")); + gtk_combo_box_append_text (GTK_COMBO_BOX (comboboxentrySampleFrequency), _("44100")); comboboxentryFFTPacketLength = gtk_combo_box_entry_new_text (); |
From: Ken P. <kp...@us...> - 2009-03-08 19:47:45
|
Update of /cvsroot/morse2txt/morse2txt/gui In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16806/gui Modified Files: properites_gui-gtk-2.x.glade Log Message: add higher sampling rates Index: properites_gui-gtk-2.x.glade =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/gui/properites_gui-gtk-2.x.glade,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** properites_gui-gtk-2.x.glade 17 Sep 2008 00:56:13 -0000 1.8 --- properites_gui-gtk-2.x.glade 8 Mar 2009 19:47:29 -0000 1.9 *************** *** 212,216 **** 11025 16000 ! 22050</property> <property name="add_tearoffs">False</property> <property name="has_frame">True</property> --- 212,217 ---- 11025 16000 ! 22050 ! 44100</property> <property name="add_tearoffs">False</property> <property name="has_frame">True</property> |
From: Ken P. <kp...@us...> - 2009-03-08 02:16:45
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv26286/src Modified Files: callbacks.c Log Message: Bug fix #2336303 Enable Preferences upon audio device, or thread start error. Index: callbacks.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/callbacks.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** callbacks.c 6 Dec 2008 18:56:11 -0000 1.11 --- callbacks.c 8 Mar 2009 01:32:08 -0000 1.12 *************** *** 149,155 **** { if(morse_get_thread_state() == THREADS_NOT_RUNNING) { ! if(plot_fft_data_array_create( get_tone_packet_size() ) == 0) { preferences_enabled(FALSE); - (void)morse_start_threads(); } else { --- 149,159 ---- { if(morse_get_thread_state() == THREADS_NOT_RUNNING) { ! if( ! (0 == plot_fft_data_array_create( get_tone_packet_size() )) ! && \ ! (0 == morse_start_threads()) ! ) ! { preferences_enabled(FALSE); } else { |
From: Ken P. <kp...@us...> - 2009-01-18 01:14:28
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv11855/src Modified Files: morse.c Log Message: fix type cast for the returned parameter from morse_get_filter_bandwidth Index: morse.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/morse.c,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** morse.c 6 Dec 2008 19:01:56 -0000 1.66 --- morse.c 18 Jan 2009 01:14:14 -0000 1.67 *************** *** 108,112 **** #define DEBUG_RAW_FFT_ARRAY(a) /* printf a */ #define DEBUG_DGLITCHED_FFT_ARRAY(a) /* printf a */ ! #define DEBUG_DATA_COLLECTION_THREAD(a) printf a #define DEBUG_AUDIO_PP_THREAD(a) /* printf a */ #define DEBUG_MORSE_THREAD(a) /* printf a */ --- 108,112 ---- #define DEBUG_RAW_FFT_ARRAY(a) /* printf a */ #define DEBUG_DGLITCHED_FFT_ARRAY(a) /* printf a */ ! #define DEBUG_DATA_COLLECTION_THREAD(a) /* printf a */ #define DEBUG_AUDIO_PP_THREAD(a) /* printf a */ #define DEBUG_MORSE_THREAD(a) /* printf a */ *************** *** 960,964 **** morse_recompute_filter(); } ! int32_t morse_get_filter_bandwidth(void) { return morse_thread.filter_bandwidth; } void morse_set_filter_taps(uint32_t taps) { morse_thread.filter_taps = taps; } uint32_t morse_get_filter_taps(void) { return morse_thread.filter_taps; } --- 960,964 ---- morse_recompute_filter(); } ! int32_t morse_get_filter_bandwidth(void) { return (int32_t)morse_thread.filter_bandwidth; } void morse_set_filter_taps(uint32_t taps) { morse_thread.filter_taps = taps; } uint32_t morse_get_filter_taps(void) { return morse_thread.filter_taps; } |
From: Ken P. <kp...@us...> - 2008-12-06 19:02:02
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv19840/src Modified Files: morse.h morse.c Log Message: fix more uint32 mixed with int32 Index: morse.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/morse.c,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** morse.c 6 Dec 2008 18:57:14 -0000 1.65 --- morse.c 6 Dec 2008 19:01:56 -0000 1.66 *************** *** 319,323 **** double words_per_minute; /*! Number of taps in the FIR filter. */ ! int32_t filter_taps; /*! FFT filter (High - Low) frequency. */ double filter_bandwidth; --- 319,323 ---- double words_per_minute; /*! Number of taps in the FIR filter. */ ! uint32_t filter_taps; /*! FFT filter (High - Low) frequency. */ double filter_bandwidth; *************** *** 961,966 **** } int32_t morse_get_filter_bandwidth(void) { return morse_thread.filter_bandwidth; } ! void morse_set_filter_taps(int32_t taps) { morse_thread.filter_taps = taps; } ! int32_t morse_get_filter_taps(void) { return morse_thread.filter_taps; } uint32_t morse_get_tone_packet_size(void) { return morse_settings.tone_packet_size; } void morse_set_tone_packet_size(int32_t tone_packet_size) { morse_settings.tone_packet_size = tone_packet_size; } --- 961,966 ---- } int32_t morse_get_filter_bandwidth(void) { return morse_thread.filter_bandwidth; } ! void morse_set_filter_taps(uint32_t taps) { morse_thread.filter_taps = taps; } ! uint32_t morse_get_filter_taps(void) { return morse_thread.filter_taps; } uint32_t morse_get_tone_packet_size(void) { return morse_settings.tone_packet_size; } void morse_set_tone_packet_size(int32_t tone_packet_size) { morse_settings.tone_packet_size = tone_packet_size; } Index: morse.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/morse.h,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** morse.h 6 Dec 2008 18:57:14 -0000 1.32 --- morse.h 6 Dec 2008 19:01:56 -0000 1.33 *************** *** 104,110 **** /** Set the number of taps in the FIR window filter. */ ! void morse_set_filter_taps(int32_t taps); /** Get the number of taps in the FIR window filter. */ ! int32_t morse_get_filter_taps(void); /** Enables or disables filter. --- 104,110 ---- /** Set the number of taps in the FIR window filter. */ ! void morse_set_filter_taps(uint32_t taps); /** Get the number of taps in the FIR window filter. */ ! uint32_t morse_get_filter_taps(void); /** Enables or disables filter. |
From: Ken P. <kp...@us...> - 2008-12-06 18:57:19
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv19603/src Modified Files: morse.h morse.c Log Message: fix type casts Index: morse.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/morse.c,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** morse.c 2 Dec 2008 02:13:44 -0000 1.64 --- morse.c 6 Dec 2008 18:57:14 -0000 1.65 *************** *** 108,112 **** #define DEBUG_RAW_FFT_ARRAY(a) /* printf a */ #define DEBUG_DGLITCHED_FFT_ARRAY(a) /* printf a */ ! #define DEBUG_DATA_COLLECTION_THREAD(a) /* printf a */ #define DEBUG_AUDIO_PP_THREAD(a) /* printf a */ #define DEBUG_MORSE_THREAD(a) /* printf a */ --- 108,112 ---- #define DEBUG_RAW_FFT_ARRAY(a) /* printf a */ #define DEBUG_DGLITCHED_FFT_ARRAY(a) /* printf a */ ! #define DEBUG_DATA_COLLECTION_THREAD(a) printf a #define DEBUG_AUDIO_PP_THREAD(a) /* printf a */ #define DEBUG_MORSE_THREAD(a) /* printf a */ *************** *** 963,970 **** void morse_set_filter_taps(int32_t taps) { morse_thread.filter_taps = taps; } int32_t morse_get_filter_taps(void) { return morse_thread.filter_taps; } ! int32_t morse_get_tone_packet_size(void) { return morse_settings.tone_packet_size; } void morse_set_tone_packet_size(int32_t tone_packet_size) { morse_settings.tone_packet_size = tone_packet_size; } ! int32_t morse_get_fft_data_size(void) { return morse_settings.fft_data_size; } ! void morse_set_fft_data_size(int32_t fft_data_size) { morse_settings.fft_data_size = fft_data_size; } double morse_get_fft_graph_top(void) { return FFT_GRAPH_TOP; } p_audio_device morse_audio_rec_dev_get(void) { return morse_settings.audio_rec_dev; } --- 963,970 ---- void morse_set_filter_taps(int32_t taps) { morse_thread.filter_taps = taps; } int32_t morse_get_filter_taps(void) { return morse_thread.filter_taps; } ! uint32_t morse_get_tone_packet_size(void) { return morse_settings.tone_packet_size; } void morse_set_tone_packet_size(int32_t tone_packet_size) { morse_settings.tone_packet_size = tone_packet_size; } ! uint32_t morse_get_fft_data_size(void) { return morse_settings.fft_data_size; } ! void morse_set_fft_data_size(uint32_t fft_data_size) { morse_settings.fft_data_size = fft_data_size; } double morse_get_fft_graph_top(void) { return FFT_GRAPH_TOP; } p_audio_device morse_audio_rec_dev_get(void) { return morse_settings.audio_rec_dev; } Index: morse.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/morse.h,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** morse.h 4 Dec 2008 00:42:46 -0000 1.31 --- morse.h 6 Dec 2008 18:57:14 -0000 1.32 *************** *** 68,72 **** //! Inteface functions for morse GUI handling. ! typedef void (*UI_update_status)(int32_t ffts, uint32_t samples, double wpm); typedef void (*UI_scope_plot)(double *vector, uint32_t num_points); typedef void (*UI_display_character)(char *character); --- 68,72 ---- //! Inteface functions for morse GUI handling. ! typedef void (*UI_update_status)(uint32_t ffts, uint32_t samples, double wpm); typedef void (*UI_scope_plot)(double *vector, uint32_t num_points); typedef void (*UI_display_character)(char *character); *************** *** 121,132 **** //! Returns the current packet size for FFT tone detection. ! int32_t morse_get_tone_packet_size(void); //! Sets the FFT data packet size to be used for morse tone detection. void morse_set_tone_packet_size(int32_t tone_packet_size); //! Returns the array size for the FFT data. ! int32_t morse_get_fft_data_size(void); //! Sets the array data size for the FFT data array. ! void morse_set_fft_data_size(int32_t fft_data_size); //! Returns the top (max amplitude) of the current FFT window. double morse_get_fft_graph_top(void); --- 121,132 ---- //! Returns the current packet size for FFT tone detection. ! uint32_t morse_get_tone_packet_size(void); //! Sets the FFT data packet size to be used for morse tone detection. void morse_set_tone_packet_size(int32_t tone_packet_size); //! Returns the array size for the FFT data. ! uint32_t morse_get_fft_data_size(void); //! Sets the array data size for the FFT data array. ! void morse_set_fft_data_size(uint32_t fft_data_size); //! Returns the top (max amplitude) of the current FFT window. double morse_get_fft_graph_top(void); |
From: Ken P. <kp...@us...> - 2008-12-06 18:56:56
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv19586/src Modified Files: prop_callbacks.c Log Message: fix type casts Index: prop_callbacks.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/prop_callbacks.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** prop_callbacks.c 2 Oct 2008 23:59:45 -0000 1.14 --- prop_callbacks.c 6 Dec 2008 18:56:51 -0000 1.15 *************** *** 44,52 **** morse_set_fft_data_size(morse_get_tone_packet_size() / FFT_DATA_SIZE_DIVISOR); ! gtk_curve_set_range (GTK_CURVE (main_gui.scope_v), 0.0, morse_get_fft_data_size(), 0.0, morse_get_fft_graph_top()); gtk_adjustment_set_value(GTK_ADJUSTMENT(main_gui.adjustment_frequency_v), 0.0); GTK_ADJUSTMENT(main_gui.adjustment_frequency_v)->lower = 0.0; ! GTK_ADJUSTMENT(main_gui.adjustment_frequency_v)->upper = (morse_get_fft_data_size() - 1); } --- 44,52 ---- morse_set_fft_data_size(morse_get_tone_packet_size() / FFT_DATA_SIZE_DIVISOR); ! gtk_curve_set_range (GTK_CURVE (main_gui.scope_v), 0.0, (gfloat)morse_get_fft_data_size(), 0.0, morse_get_fft_graph_top()); gtk_adjustment_set_value(GTK_ADJUSTMENT(main_gui.adjustment_frequency_v), 0.0); GTK_ADJUSTMENT(main_gui.adjustment_frequency_v)->lower = 0.0; ! GTK_ADJUSTMENT(main_gui.adjustment_frequency_v)->upper = (gfloat)(morse_get_fft_data_size() - 1); } |
From: Ken P. <kp...@us...> - 2008-12-06 18:56:17
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv19574/src Modified Files: callbacks.c Log Message: fix typecasts for gfloat Index: callbacks.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/callbacks.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** callbacks.c 29 May 2006 19:44:45 -0000 1.10 --- callbacks.c 6 Dec 2008 18:56:11 -0000 1.11 *************** *** 186,190 **** gtk_widget_hide(main_gui.label1_v); gtk_widget_hide(main_gui.hscale1_v); ! gtk_curve_set_range(GTK_CURVE(main_gui.scope_v), 0.0, morse_get_fft_data_size(), -32000.0, 32000.0); break; case PLOT_SCOPE: --- 186,190 ---- gtk_widget_hide(main_gui.label1_v); gtk_widget_hide(main_gui.hscale1_v); ! gtk_curve_set_range(GTK_CURVE(main_gui.scope_v), 0.0, (gfloat)morse_get_fft_data_size(), -32000.0, 32000.0); break; case PLOT_SCOPE: *************** *** 192,196 **** gtk_widget_show(main_gui.hscale1_v); gtk_widget_show(main_gui.label1_v); ! gtk_curve_set_range(GTK_CURVE(main_gui.scope_v), 0.0, morse_get_tone_packet_size(), 0.0, morse_get_fft_graph_top()); break; } --- 192,196 ---- gtk_widget_show(main_gui.hscale1_v); gtk_widget_show(main_gui.label1_v); ! gtk_curve_set_range(GTK_CURVE(main_gui.scope_v), 0.0, (gfloat)morse_get_tone_packet_size(), 0.0, morse_get_fft_graph_top()); break; } |
From: Ken P. <kp...@us...> - 2008-12-06 18:55:35
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv19542/src Modified Files: interface_il.h interface_il.c Log Message: fix typecasts Index: interface_il.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/interface_il.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** interface_il.c 2 Dec 2008 02:20:45 -0000 1.18 --- interface_il.c 6 Dec 2008 18:55:29 -0000 1.19 *************** *** 75,79 **** G_LOCK_DEFINE(buffer); ! static void update_status_bar(int32_t ffts, uint32_t samples, double wpm); static void update_statistics_window(const morse_stats_ts* stats_t); static void gui_append_character_2_morse_text(char *character); --- 75,79 ---- G_LOCK_DEFINE(buffer); ! static void update_status_bar(uint32_t ffts, uint32_t samples, double wpm); static void update_statistics_window(const morse_stats_ts* stats_t); static void gui_append_character_2_morse_text(char *character); *************** *** 115,119 **** ! int32_t plot_fft_data_array_create(int32_t num_points) { if((y = malloc(num_points * sizeof(gfloat))) == NULL) { --- 115,119 ---- ! int32_t plot_fft_data_array_create(uint32_t num_points) { if((y = malloc(num_points * sizeof(gfloat))) == NULL) { *************** *** 170,174 **** \param wpm code speed in Words per Minute */ ! static void update_status_bar(int32_t ffts, uint32_t samples, double wpm) { G_LOCK(buffer); --- 170,174 ---- \param wpm code speed in Words per Minute */ ! static void update_status_bar(uint32_t ffts, uint32_t samples, double wpm) { G_LOCK(buffer); *************** *** 240,246 **** } ! int32_t get_fft_data_size(void) { return morse_get_fft_data_size(); } int32_t get_fft_graph_top(void) { return morse_get_fft_graph_top(); } ! int32_t get_tone_packet_size(void) { return morse_get_tone_packet_size(); } int32_t threads_stop(void) --- 240,246 ---- } ! uint32_t get_fft_data_size(void) { return morse_get_fft_data_size(); } int32_t get_fft_graph_top(void) { return morse_get_fft_graph_top(); } ! uint32_t get_tone_packet_size(void) { return morse_get_tone_packet_size(); } int32_t threads_stop(void) Index: interface_il.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/interface_il.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** interface_il.h 5 Oct 2007 00:57:24 -0000 1.12 --- interface_il.h 6 Dec 2008 18:55:28 -0000 1.13 *************** *** 77,81 **** \param num_points size of array to create */ ! int32_t plot_fft_data_array_create(int32_t num_points); //! De-allocates array created by plot_fft_data_array_create. --- 77,81 ---- \param num_points size of array to create */ ! int32_t plot_fft_data_array_create(uint32_t num_points); //! De-allocates array created by plot_fft_data_array_create. *************** *** 87,93 **** void preferences_enabled(gboolean state); ! int32_t get_fft_data_size(void); int32_t get_fft_graph_top(void); ! int32_t get_tone_packet_size(void); //! Registers GUI handlers into Morse GUI Handler Interface. --- 87,93 ---- void preferences_enabled(gboolean state); ! uint32_t get_fft_data_size(void); int32_t get_fft_graph_top(void); ! uint32_t get_tone_packet_size(void); //! Registers GUI handlers into Morse GUI Handler Interface. |
From: Ken P. <kp...@us...> - 2008-12-04 00:42:51
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5703/src Modified Files: morse.h Log Message: fixed undeclared functions, audio sample rate get/set Index: morse.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/morse.h,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** morse.h 2 Dec 2008 02:20:45 -0000 1.30 --- morse.h 4 Dec 2008 00:42:46 -0000 1.31 *************** *** 138,141 **** --- 138,142 ---- */ int32_t morse_audio_device_type_id_get(void); + /** Set the current audio device type Id. * @param audio_device_type_id The Id of the audio device type.. *************** *** 143,146 **** --- 144,156 ---- void morse_audio_device_type_id_set(int32_t audio_device_type_id); + /** Set the audio sample rate. + * @param Hertz The desired sample rate in Hertz. + */ + void morse_audio_sample_rate_set(int32_t Hertz); + + /** Get the current audio sample rate. + * @returns Sample frequency. + */ + int32_t morse_audio_sample_rate_get(void); //! Returns the current plot type, FFT, Scope, or NONE. |
From: Ken P. <kp...@us...> - 2008-12-04 00:27:52
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv4666/src Modified Files: audio_loopback.h audio_loopback.c Log Message: removed size_t Index: audio_loopback.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/audio_loopback.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** audio_loopback.h 21 Jan 2006 17:18:14 -0000 1.1 --- audio_loopback.h 4 Dec 2008 00:27:49 -0000 1.2 *************** *** 15,19 **** int32_t audio_loopback_start(te_audio_device_types device_type, const char *device_name, ! size_t segment_size, int32_t sample_frequency); --- 15,19 ---- int32_t audio_loopback_start(te_audio_device_types device_type, const char *device_name, ! uint32_t segment_size, int32_t sample_frequency); Index: audio_loopback.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/audio_loopback.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** audio_loopback.c 18 Mar 2006 16:33:26 -0000 1.3 --- audio_loopback.c 4 Dec 2008 00:27:49 -0000 1.4 *************** *** 25,28 **** --- 25,29 ---- #include <string.h> #include <pthread.h> + #include <stdint.h> #include <semaphore.h> #include "audio_loopback.h" *************** *** 50,56 **** /** Number of audio samples in the destination buffer audio_data * @sa audio_data */ ! size_t dst_samples; /** Number of audio samples in the source buffer. */ ! size_t src_samples; /** Thread ID for the play thread. */ pthread_t play_id; --- 51,57 ---- /** Number of audio samples in the destination buffer audio_data * @sa audio_data */ ! uint32_t dst_samples; /** Number of audio samples in the source buffer. */ ! uint32_t src_samples; /** Thread ID for the play thread. */ pthread_t play_id; *************** *** 81,85 **** int32_t audio_loopback_start(te_audio_device_types device_type, const char *device_name, ! size_t segment_size, int32_t sample_frequency) { --- 82,86 ---- int32_t audio_loopback_start(te_audio_device_types device_type, const char *device_name, ! uint32_t segment_size, int32_t sample_frequency) { *************** *** 93,97 **** loopback.dst_samples = audio_device_samples_get(loopback.audio_device); loopback.src_samples = segment_size; ! loopback.audio_data = malloc((size_t)AUDIO_BUFFER_SEGMENTS * loopback.dst_samples * sizeof(double)); loopback.run = AUDIO_LOOPBACK_RUN; sem_init(&loopback_trigger, 0, 0); --- 94,98 ---- loopback.dst_samples = audio_device_samples_get(loopback.audio_device); loopback.src_samples = segment_size; ! loopback.audio_data = malloc((size_t)(AUDIO_BUFFER_SEGMENTS * loopback.dst_samples * sizeof(double))); loopback.run = AUDIO_LOOPBACK_RUN; sem_init(&loopback_trigger, 0, 0); |
From: Ken P. <kp...@us...> - 2008-12-02 02:25:55
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6430/src Modified Files: audio.c audio.h Log Message: fix type cast warnings Index: audio.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/audio.c,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** audio.c 2 Dec 2008 02:20:45 -0000 1.39 --- audio.c 2 Dec 2008 02:25:50 -0000 1.40 *************** *** 64,73 **** #define AUDIO_NUMBER_OF_DEVICE_TYPES ( (sizeof(AUDIO_DEVICE_TABLE) / sizeof(AUDIO_DEVICE_TABLE[0])) - 1) ! p_audio_device audio_create(int32_t device_type, te_audio_rec_play rec_play ) { p_audio_device tmp = NULL; ! int32_t i; if(NULL != (tmp = malloc(sizeof(ts_audio_device))) ) { --- 64,73 ---- #define AUDIO_NUMBER_OF_DEVICE_TYPES ( (sizeof(AUDIO_DEVICE_TABLE) / sizeof(AUDIO_DEVICE_TABLE[0])) - 1) ! p_audio_device audio_create(uint32_t device_type, te_audio_rec_play rec_play ) { p_audio_device tmp = NULL; ! uint32_t i; if(NULL != (tmp = malloc(sizeof(ts_audio_device))) ) { *************** *** 281,284 **** --- 281,286 ---- int32_t audio_sample_rate_get(p_audio_device device) { + int32_t tmp; + /** @note This assumes record and playback are at the same rate. * The audio API could support multiple cards at different rates, but that *************** *** 286,291 **** */ if(NULL != device) { ! return device->audio_pub.sample_frequency; } } --- 288,297 ---- */ if(NULL != device) { ! tmp = device->audio_pub.sample_frequency; ! } ! else { ! tmp = 0; } + return tmp; } Index: audio.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/audio.h,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** audio.h 2 Dec 2008 02:20:45 -0000 1.28 --- audio.h 2 Dec 2008 02:25:50 -0000 1.29 *************** *** 111,115 **** * \returns Pointer to audio object. \sa p_audio_device */ ! p_audio_device audio_create(int32_t device_type, te_audio_rec_play rec_play ); --- 111,115 ---- * \returns Pointer to audio object. \sa p_audio_device */ ! p_audio_device audio_create(uint32_t device_type, te_audio_rec_play rec_play ); |
From: Ken P. <kp...@us...> - 2008-12-02 02:20:49
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5709/src Modified Files: morse.h audio.c dglitch.h audio.h fir_win.c dglitch.c interface_il.c Log Message: remove size_t Index: interface_il.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/interface_il.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** interface_il.c 18 Dec 2007 02:38:24 -0000 1.17 --- interface_il.c 2 Dec 2008 02:20:45 -0000 1.18 *************** *** 31,34 **** --- 31,35 ---- #include <string.h> #include <stdio.h> + #include <stdint.h> #include <gdk/gdkkeysyms.h> *************** *** 74,81 **** G_LOCK_DEFINE(buffer); ! static void update_status_bar(int32_t ffts, size_t samples, double wpm); static void update_statistics_window(const morse_stats_ts* stats_t); static void gui_append_character_2_morse_text(char *character); ! static void scope_fft_plot(double *vector, size_t num_points); static void dialog_box(char *message); --- 75,82 ---- G_LOCK_DEFINE(buffer); ! static void update_status_bar(int32_t ffts, uint32_t samples, double wpm); static void update_statistics_window(const morse_stats_ts* stats_t); static void gui_append_character_2_morse_text(char *character); ! static void scope_fft_plot(double *vector, uint32_t num_points); static void dialog_box(char *message); *************** *** 147,153 **** \param num_points size of array */ ! static void scope_fft_plot(double *vector, size_t num_points) { ! int32_t i; G_LOCK(y); --- 148,154 ---- \param num_points size of array */ ! static void scope_fft_plot(double *vector, uint32_t num_points) { ! uint32_t i; G_LOCK(y); *************** *** 169,173 **** \param wpm code speed in Words per Minute */ ! static void update_status_bar(int32_t ffts, size_t samples, double wpm) { G_LOCK(buffer); --- 170,174 ---- \param wpm code speed in Words per Minute */ ! static void update_status_bar(int32_t ffts, uint32_t samples, double wpm) { G_LOCK(buffer); Index: audio.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/audio.h,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** audio.h 26 Nov 2008 04:11:54 -0000 1.27 --- audio.h 2 Dec 2008 02:20:45 -0000 1.28 *************** *** 186,190 **** * \returns The number of samples to be acquired by the audio device. */ ! size_t audio_device_samples_get(p_audio_device device); /** Get the number of audio device types supported (OSS, Alsa, etc.). --- 186,190 ---- * \returns The number of samples to be acquired by the audio device. */ ! uint32_t audio_device_samples_get(p_audio_device device); /** Get the number of audio device types supported (OSS, Alsa, etc.). Index: dglitch.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/dglitch.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** dglitch.h 18 Mar 2006 16:59:33 -0000 1.6 --- dglitch.h 2 Dec 2008 02:20:45 -0000 1.7 *************** *** 22,25 **** --- 22,27 ---- #define DGLITCH_H + #include <stdint.h> + /** De-glitch algorithm types. */ typedef enum { *************** *** 36,40 **** * @returns Pointer to the created deglitch object. */ ! p_dglitch dglitch_create(te_dglitch_type type, size_t window_size); /** Destroys, and frees all memory from a deglitch object. --- 38,42 ---- * @returns Pointer to the created deglitch object. */ ! p_dglitch dglitch_create(te_dglitch_type type, uint32_t window_size); /** Destroys, and frees all memory from a deglitch object. *************** *** 48,52 **** * \param size Number of data points in data. */ ! void dglitch_apply(p_dglitch dg, double *data, size_t size); #endif /* DGLITCH_H */ --- 50,54 ---- * \param size Number of data points in data. */ ! void dglitch_apply(p_dglitch dg, double *data, uint32_t size); #endif /* DGLITCH_H */ Index: morse.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/morse.h,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** morse.h 13 Sep 2008 18:13:55 -0000 1.29 --- morse.h 2 Dec 2008 02:20:45 -0000 1.30 *************** *** 68,73 **** //! Inteface functions for morse GUI handling. ! typedef void (*UI_update_status)(int32_t ffts, size_t samples, double wpm); ! typedef void (*UI_scope_plot)(double *vector, size_t num_points); typedef void (*UI_display_character)(char *character); /** Inteface functions for debug plots */ --- 68,73 ---- //! Inteface functions for morse GUI handling. ! typedef void (*UI_update_status)(int32_t ffts, uint32_t samples, double wpm); ! typedef void (*UI_scope_plot)(double *vector, uint32_t num_points); typedef void (*UI_display_character)(char *character); /** Inteface functions for debug plots */ Index: audio.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/audio.c,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** audio.c 14 Sep 2008 13:58:00 -0000 1.38 --- audio.c 2 Dec 2008 02:20:45 -0000 1.39 *************** *** 218,224 **** } ! size_t audio_device_samples_get(p_audio_device device) { ! size_t tmp; tmp = 0; --- 218,224 ---- } ! uint32_t audio_device_samples_get(p_audio_device device) { ! uint32_t tmp; tmp = 0; Index: fir_win.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/fir_win.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** fir_win.c 2 Dec 2008 02:05:04 -0000 1.14 --- fir_win.c 2 Dec 2008 02:20:45 -0000 1.15 *************** *** 88,92 **** double *h; /*! FIR filter order N (taps). */ ! size_t taps; /*! Window function object for FIR filter coefficients. */ #if (FWIN_USE_WINDOW_FUNCTION == 1) --- 88,92 ---- double *h; /*! FIR filter order N (taps). */ ! uint32_t taps; /*! Window function object for FIR filter coefficients. */ #if (FWIN_USE_WINDOW_FUNCTION == 1) Index: dglitch.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/dglitch.c,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** dglitch.c 18 Mar 2006 16:33:26 -0000 1.12 --- dglitch.c 2 Dec 2008 02:20:45 -0000 1.13 *************** *** 59,63 **** double *sorted_stack; /*! The window size of the de-glitch filter. */ ! size_t window_size; /*! The de-glitch algorithm used. */ te_dglitch_type dglitch_algor; --- 59,63 ---- double *sorted_stack; /*! The window size of the de-glitch filter. */ ! uint32_t window_size; /*! The de-glitch algorithm used. */ te_dglitch_type dglitch_algor; *************** *** 72,80 **** /** Temporary. */ ! static void dg_sort(double *vector, size_t size); /** Temporary. */ static int32_t dg_compare(const void *val1, const void *val2); ! p_dglitch dglitch_create(te_dglitch_type type, size_t window_size) { p_dglitch dg; --- 72,80 ---- /** Temporary. */ ! static void dg_sort(double *vector, uint32_t size); /** Temporary. */ static int32_t dg_compare(const void *val1, const void *val2); ! p_dglitch dglitch_create(te_dglitch_type type, uint32_t window_size) { p_dglitch dg; *************** *** 99,105 **** } ! void dglitch_apply(p_dglitch dg, double *data, size_t size) { ! int32_t i; if(dg != NULL) { --- 99,105 ---- } ! void dglitch_apply(p_dglitch dg, double *data, uint32_t size) { ! uint32_t i; if(dg != NULL) { *************** *** 119,123 **** } ! static void dg_sort(double *vector, size_t size) { qsort((void*)vector, size, sizeof(double), dg_compare); --- 119,123 ---- } ! static void dg_sort(double *vector, uint32_t size) { qsort((void*)vector, size, sizeof(double), dg_compare); |
From: Ken P. <kp...@us...> - 2008-12-02 02:13:49
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv4516/src Modified Files: morse.c Log Message: remove size_t Index: morse.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/morse.c,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** morse.c 14 Sep 2008 13:57:03 -0000 1.63 --- morse.c 2 Dec 2008 02:13:44 -0000 1.64 *************** *** 148,152 **** c -.-. is represented by b1010 0000 0000 0100, or 0xA004 */ ! int32_t morse; /*! The character(s) represented by the morse data stream as defined in morse. */ char *character; --- 148,152 ---- c -.-. is represented by b1010 0000 0000 0100, or 0xA004 */ ! uint32_t morse; /*! The character(s) represented by the morse data stream as defined in morse. */ char *character; *************** *** 230,237 **** * to the tone packet size. */ ! size_t tone_packet_size; /*! The size of the fft to be plotted on the main gui. */ ! size_t fft_data_size; /*! Used to improve immunity to transient noise. */ /*! If cw tones are detected that are shorter this, it's considerd noise. */ --- 230,237 ---- * to the tone packet size. */ ! uint32_t tone_packet_size; /*! The size of the fft to be plotted on the main gui. */ ! uint32_t fft_data_size; /*! Used to improve immunity to transient noise. */ /*! If cw tones are detected that are shorter this, it's considerd noise. */ *************** *** 242,246 **** double fft_freq_step; /*! Size of the fft packet amplitude array. */ ! size_t fft_amp_pa_size; /** Audio Device Type, or audio type Id. */ int32_t audio_type_id; --- 242,246 ---- double fft_freq_step; /*! Size of the fft packet amplitude array. */ ! uint32_t fft_amp_pa_size; /** Audio Device Type, or audio type Id. */ int32_t audio_type_id; *************** *** 390,396 **** /** Interface handler for GUI status */ ! static void update_status(int32_t ffts, size_t samples, double wpm); /** Interface handler that plots a graph on the GUI. */ ! static void scope_plot(double *vector, size_t num_points); /** Interface handler to display a received character on the GUI. */ static void display_character(char *character); --- 390,396 ---- /** Interface handler for GUI status */ ! static void update_status(int32_t ffts, uint32_t samples, double wpm); /** Interface handler that plots a graph on the GUI. */ ! static void scope_plot(double *vector, uint32_t num_points); /** Interface handler to display a received character on the GUI. */ static void display_character(char *character); *************** *** 549,555 **** static void data_collection(void *param) { ! static int32_t buffer_segment; ! int32_t i; ! buffer_segment = BUFFER_SEGMENT_1; while(run == THREADS_RUNNING) { --- 549,556 ---- static void data_collection(void *param) { ! static uint32_t buffer_segment; ! ! param = param; ! buffer_segment = BUFFER_SEGMENT_1; while(run == THREADS_RUNNING) { *************** *** 568,571 **** --- 569,574 ---- static te_audio_segments buffer_segment; + param = param; + buffer_segment = BUFFER_SEGMENT_1; while(run == THREADS_RUNNING) { *************** *** 620,624 **** /* Update the status display. */ ! update_status(fft_performed, (size_t)samples_processed, tmp->words_per_minute); update_morse_statistics(tmp); } --- 623,627 ---- /* Update the status display. */ ! update_status(fft_performed, (uint32_t)samples_processed, tmp->words_per_minute); update_morse_statistics(tmp); } *************** *** 628,632 **** static void morse_create_fft_amp_array(p_morse_data morse_thread_data) { ! int32_t i, j, k; int32_t gsl_error; --- 631,635 ---- static void morse_create_fft_amp_array(p_morse_data morse_thread_data) { ! uint32_t i, j, k; int32_t gsl_error; *************** *** 676,680 **** static void morse_measure_fft_packet_timing(p_morse_data morse_thread_data) { ! int32_t i; /** \todo - Is de-glitching necessary here? */ --- 679,683 ---- static void morse_measure_fft_packet_timing(p_morse_data morse_thread_data) { ! uint32_t i; /** \todo - Is de-glitching necessary here? */ *************** *** 886,890 **** static char *morse2txt(p_morse_char morse_char) { ! int32_t i, j; char *text = "~"; --- 889,893 ---- static char *morse2txt(p_morse_char morse_char) { ! uint32_t i, j; char *text = "~"; *************** *** 1013,1017 **** * GUI Interface function for status. */ ! static void update_status(int32_t ffts, size_t samples, double wpm) { static int32_t i; --- 1016,1020 ---- * GUI Interface function for status. */ ! static void update_status(int32_t ffts, uint32_t samples, double wpm) { static int32_t i; *************** *** 1031,1035 **** * GUI Interface function for plotter. */ ! static void scope_plot(double *vector, size_t num_points) { if(user_interface.cb_scope_plot != NULL) { --- 1034,1038 ---- * GUI Interface function for plotter. */ ! static void scope_plot(double *vector, uint32_t num_points) { if(user_interface.cb_scope_plot != NULL) { |
From: Ken P. <kp...@us...> - 2008-12-02 02:05:15
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv3912/src Modified Files: fir_win.c fir_win.h Log Message: remove size_t Index: fir_win.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/fir_win.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** fir_win.c 17 Nov 2008 23:50:33 -0000 1.13 --- fir_win.c 2 Dec 2008 02:05:04 -0000 1.14 *************** *** 136,140 **** te_fir_win_filter_type filter_type, te_fir_win_window_type window_type, ! size_t taps) { p_fwin fw; --- 136,140 ---- te_fir_win_filter_type filter_type, te_fir_win_window_type window_type, ! uint32_t taps) { p_fwin fw; *************** *** 188,194 **** * Applied in double z fashion. */ ! void fwin_apply(p_fwin fw, double *data, size_t size) { ! int32_t i, j, state; double accum; double *p_z, *p_h; --- 188,195 ---- * Applied in double z fashion. */ ! void fwin_apply(p_fwin fw, double *data, uint32_t size) { ! uint32_t i, j; ! int32_t state; double accum; double *p_z, *p_h; *************** *** 232,236 **** static void band_pass(p_fwin fw) { ! int32_t i; double w1, w2; double den, num; --- 233,237 ---- static void band_pass(p_fwin fw) { ! uint32_t i; double w1, w2; double den, num; *************** *** 253,263 **** } ! static void band_stop(p_fwin fw){} ! static void low_pass(p_fwin fw){} ! static void high_pass(p_fwin fw){} static void average(p_fwin fw) { ! int32_t i; double tmp = 1.0 / (double)fw->taps; --- 254,275 ---- } ! static void band_stop(p_fwin fw) ! { ! fw = fw; ! } ! ! static void low_pass(p_fwin fw) ! { ! fw = fw; ! } ! ! static void high_pass(p_fwin fw) ! { ! fw = fw; ! } static void average(p_fwin fw) { ! uint32_t i; double tmp = 1.0 / (double)fw->taps; Index: fir_win.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/fir_win.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** fir_win.h 18 Mar 2006 16:59:33 -0000 1.7 --- fir_win.h 2 Dec 2008 02:05:04 -0000 1.8 *************** *** 22,25 **** --- 22,27 ---- #define FIR_WIN_H + #include <stdint.h> + /** Enables (1) or disables (0) Window function support. */ #define FWIN_USE_WINDOW_FUNCTION 1 *************** *** 68,72 **** te_fir_win_filter_type filter_type, te_fir_win_window_type window_type, ! size_t taps); /** Changes the frequency response of an existing FIR filter. --- 70,74 ---- te_fir_win_filter_type filter_type, te_fir_win_window_type window_type, ! uint32_t taps); /** Changes the frequency response of an existing FIR filter. *************** *** 89,93 **** * \param size Number of data points in data. */ ! void fwin_apply(p_fwin fw, double *data, size_t size); #endif /* FIR_WIN_H */ --- 91,95 ---- * \param size Number of data points in data. */ ! void fwin_apply(p_fwin fw, double *data, uint32_t size); #endif /* FIR_WIN_H */ |
From: Ken P. <kp...@us...> - 2008-12-02 01:56:18
|
Update of /cvsroot/morse2txt/morse2txt/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv3217/src Modified Files: dt_window.h dt_window.c Log Message: remove size_t Index: dt_window.c =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/dt_window.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** dt_window.c 18 Mar 2006 16:33:26 -0000 1.7 --- dt_window.c 2 Dec 2008 01:56:14 -0000 1.8 *************** *** 37,40 **** --- 37,41 ---- #include <stdio.h> + #include <stdint.h> #include <math.h> #include <string.h> *************** *** 48,52 **** typedef struct x_dt_window { ! size_t size; double *elements; ts_window_function window_function; --- 49,53 ---- typedef struct x_dt_window { ! uint32_t size; double *elements; ts_window_function window_function; *************** *** 70,76 **** /* Generic discrete time window function. */ ! static double* dt_window_compute(te_dt_window_type type, size_t size); ! dt_window dt_window_create(te_dt_window_type type, size_t size) { dt_window window; --- 71,77 ---- /* Generic discrete time window function. */ ! static double* dt_window_compute(te_dt_window_type type, uint32_t size); ! dt_window dt_window_create(te_dt_window_type type, uint32_t size) { dt_window window; *************** *** 94,98 **** void dt_window_apply(dt_window w, double *data) { ! int32_t i; if(w != NULL) { --- 95,99 ---- void dt_window_apply(dt_window w, double *data) { ! uint32_t i; if(w != NULL) { *************** *** 114,120 **** } ! static double* dt_window_compute(te_dt_window_type type, size_t size) { ! int32_t i, j; double *w; --- 115,121 ---- } ! static double* dt_window_compute(te_dt_window_type type, uint32_t size) { ! uint32_t i, j; double *w; *************** *** 166,170 **** { te_dt_window_type i; ! int32_t j, n; dt_window w; --- 167,171 ---- { te_dt_window_type i; ! uint32_t j; dt_window w; Index: dt_window.h =================================================================== RCS file: /cvsroot/morse2txt/morse2txt/src/dt_window.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** dt_window.h 18 Mar 2006 16:59:33 -0000 1.5 --- dt_window.h 2 Dec 2008 01:56:14 -0000 1.6 *************** *** 23,26 **** --- 23,27 ---- #include <stdlib.h> + #include <stdint.h> typedef enum { *************** *** 38,42 **** \param size the size of the window function, same as the audio packet data size. */ ! dt_window dt_window_create(te_dt_window_type type, size_t size); //! De-allocates the discrete time window object. \sa dt_window_create --- 39,43 ---- \param size the size of the window function, same as the audio packet data size. */ ! dt_window dt_window_create(te_dt_window_type type, uint32_t size); //! De-allocates the discrete time window object. \sa dt_window_create |