Commit Graph

12 Commits

Author SHA1 Message Date
midnightmagic
fd998e2bf7 libsndfile can be used to open a UNIX-style pipe on many platforms
In specific, it can be used to read in data almost directly from Gqrx
Currently, this will not function correctly using -i /dev/stdin on OS X
because stdin is not seekable, and it is not actually a file; also, for
ongoing raw data, there are no hints for libsndfile to identify the
sample.

So, we can use the UNIX-y '-' to do libsndfile-approved fd handle open.

Tested with the dsd-samples wav after converting it to correct sampletype
(stereo) -> sox p25_raw_unencrypted_edf.wav -c 2 ~/gqrx_last_recorded_filename.wav
.. and then pressing 'play' in the Gqrx interface while running:

socat udp-listen:7355 - | dsd -i - -o pa:2

.. in the background. And it decoded it nicely as many times as I played it,
which was 5 or 10.
2014-09-11 03:32:22 -07:00
Jiri Wichern
74fa117850 Tweaking the delay a bit... 0,050 s for output seems too little; it results in choppy audio and ultimately, a heap of errors. 0,100 seems ok for the output buffer. But the input buffer needs to be much larger else it overflows. Also, an extra stop stream before terminating to make sure all audio from the audio buffer is played. 2014-06-07 20:49:35 +02:00
jpwichern
5dd236ec96 Update dsd_audio.c
Small oops
2014-06-06 17:26:50 +02:00
jpwichern
55b190ef49 Update dsd.h, dsd_audio.c, dsd_main.c and dsd_symbol.c
Adding portaudio support. Implementing it as a new audio_..._type in dsd.h.

Update CMakeLists.txt and create FindLibPortAudio.cmake

CMake portaudio check
2014-06-05 21:54:38 +02:00
EdFuentetaja
9e6b3b7978 Included error correction on P25 TDULC.
Added a new "heuristics" module for P25 that improves the estimation of the symbol (dibit) that corresponds to a given analog signal value.
Added a BER (bit error reate) estimation for P25.
2014-05-11 08:14:29 +08:00
balr0g
4763717b59 Improvements to CLI input parsing and filtering 2013-12-16 14:50:20 -05:00
balr0g
040ea148b0 Initial working DSTAR voice support 2013-12-16 13:00:18 -05:00
balr0g
de3e5e7f60 Use libsndfile for wav output as well 2013-12-12 20:09:08 -05:00
balr0g
e3bafe96e9 Use libsndfile for wav file input 2013-12-12 19:50:07 -05:00
balr0g
e40c32d8ad Convert build system to use cmake and fix for Mac OS X build 2013-07-07 17:55:42 -04:00
Jared Szechy
b1024fba95 version 1.4.1 2011-08-21 03:36:53 -04:00
Jared Szechy
59f8d3890e version 1.3 2011-08-21 03:31:35 -04:00