Commit Graph

54 Commits

Author SHA1 Message Date
Charles J. Cliffe 3ec14fbe38 Licence fix, add SPDX-License-Identifier, remove unused code files 2017-01-02 21:07:43 -05:00
vsonnier 21c8a81c32 TH_CLEAN_3.5: push() cleanup side of things, assure SDRThread::readStream() to actually check for full + make ThreadQueue notify even in case on not-successfull push(), make it spam notify_all() everytime 2016-07-08 23:30:15 +02:00
vsonnier b495b388c9 TH_CLEAN_3: Use of non-blocking try_pop() when possible,
AudioThread concurrent access hardening and simplified,
and misc.
2016-07-05 21:45:42 +02:00
vsonnier 567d84711f THREAD_CLEAN_PART2: Assure correct terminate()/isTerminated(delay)/delete sequence +
Removed the NotifyQueue between DemodulatorInstance participants, actually not needed
since DemodulatorInstance::IsTerminated() is explicitly called on some events for cleanups

DELETE_CLEANUP: properly nullify deleted pointers when needed
2016-07-03 14:22:41 +02:00
vsonnier 52de909cfb THREAD_CLEAN: Clearly distinguish between a request to stop by terminate() from the actual termination isTerminated() 2016-06-28 22:16:34 +02:00
vsonnier 5bb43f5aaa Replace mutex lock/unlock pairs with guards, cleanups 2016-06-03 18:45:03 +02:00
vsonnier fc4fa3e74f MISC 2: Make ReferenceCounter refcount itself protected by the same mutex of the whole class, for state consistency 2016-06-01 19:46:45 +02:00
Charles J. Cliffe f22ef685f5 Static analysis related fixes 2016-03-30 19:34:36 -04:00
Charles J. Cliffe c303b68284 Basic X/Y scope plot while in digital mode 2015-11-29 13:35:12 -05:00
Charles J. Cliffe c30cce9114 Add functional Spectrum view to demodulator visuals
- Might need to do some renaming from Scope->AVDisplay or something for
ScopeCanvas to avoid confusion.
2015-08-24 01:31:37 -04:00
Charles J. Cliffe 10e35002f1 AudioThread & demod worker IOThread queues, cleanup 2015-07-30 19:30:46 -04:00
Charles J. Cliffe 05cd99bbf1 IOThread all the things! 2015-07-29 20:57:02 -04:00
Charles J. Cliffe 57e988572f type updates 2015-07-19 23:19:10 -04:00
Charles J. Cliffe 2a9eadbf9a Issue #81 patches from @dovandung 2015-05-27 23:22:19 -04:00
Charles J. Cliffe 4147582d2a Refactor for sample rate changes, audio thread race crash fixes 2015-03-15 21:02:26 -04:00
Charles J. Cliffe b197a7ddb2 Can now set output sample rate, demodulator sample rate doesn't adjust yet so I find it rather hilarious at the moment :) 2015-03-13 22:25:07 -04:00
Charles J. Cliffe 84bd856c53 Remove unused non-mixer based code, simplifies audio thread and can be emulated by overloading thread device ids anyways 2015-03-12 19:34:50 -04:00
Charles J. Cliffe 9d9bb8f103 OSX .app compiles but with runtime dylib errors
Regular binary compilation works, manual wxWidgets compile required for
app (port version doesn’t work for me).
Fixed-up app has runtime errors with dylib files but otherwise verifies…
2015-02-17 21:26:14 -05:00
Charles J. Cliffe c69d05010c Merge remote-tracking branch 'origin/mixer-fixes' into waterfall-optimize 2015-02-11 21:35:44 -05:00
Charles J. Cliffe 261d2dbe5f audio thread locking fixes 2015-02-11 21:35:27 -05:00
Charles J. Cliffe add04883eb Audio thread mixer adjustments
- Automatic gain balance
- Clipping prevention
2015-02-08 18:59:08 -05:00
Charles J. Cliffe 963e26bc07 Linux somewhat functional 2015-01-18 01:36:28 -05:00
Charles J. Cliffe 60b5dbb07f Per-demodulator gain settings 2015-01-10 20:33:30 -05:00
Charles J. Cliffe 95fcb30733 Audio thread lock fix 2015-01-08 21:12:49 -05:00
Charles J. Cliffe 9f945026b8 Fix frequency related data types for >2Ghz 2015-01-04 17:11:20 -05:00
Charles J. Cliffe 334618d000 cleanup, refactor, right mouse waterfall zoom drag 2015-01-03 17:07:39 -05:00
Charles J. Cliffe 955ec54b44 Audio device selection fixes for OSX 2014-12-31 22:38:59 -05:00
Charles J. Cliffe 6679b20fbb Can now choose demodulator output devices 2014-12-31 21:31:37 -05:00
Charles J. Cliffe b7793ef905 Squelch slider/signal indicator 2014-12-31 19:45:01 -05:00
Charles J. Cliffe a93deee564 Crash fixes, apply FIR filter to stereo output 2014-12-27 15:04:43 -05:00
Charles J. Cliffe 576a77e095 Update remaining buffers, cleanup 2014-12-24 01:28:33 -05:00
Charles J. Cliffe 8c852ed491 SDR thread reusable buffers implemented 2014-12-24 00:11:41 -05:00
Charles J. Cliffe a7913e3290 refactor remaining transaction objects 2014-12-23 01:59:03 -05:00
Charles J. Cliffe 312b25f55a Changed data transaction objects to use pointers 2014-12-22 19:43:56 -05:00
Charles J. Cliffe 24c86bc9e4 optimize demod, allow for channel count changes 2014-12-21 17:37:41 -05:00
Charles J. Cliffe c583b4a79a Windows fix-up 2014-12-18 20:32:05 -05:00
Charles J. Cliffe b196fbfdea Basic mixer for OSX -- multi demod streams working
RtAudio can’t open multiple streams, so now opening a new device will
start a static audio thread and all other threads will attach/detach
their input queues there.
2014-12-18 20:11:25 -05:00
Charles J. Cliffe 9e32ef478d Cleanup, reformat 2014-12-16 21:30:03 -05:00
Charles J. Cliffe 65ae1de36d Trying thread trick for preventing audio underrun.. 2014-12-15 20:47:46 -05:00
Charles J. Cliffe f04ec72394 Demodulator garbage collection 2014-12-11 19:07:21 -05:00
Charles J. Cliffe ad800056d5 OSX audio may be stable, works on 2010 macbook pro 2014-12-05 20:13:45 -05:00
Charles J. Cliffe 03edda18e5 RtAudio integrated and working great /w win64
Next up, OSX test..
2014-12-04 19:44:49 -05:00
Charles J. Cliffe 7ae1ffc2c9 RtAudio source integrated, preparing to implement 2014-12-04 19:03:02 -05:00
Charles J. Cliffe cae1855fc5 Move code out of frame, proper thread termination 2014-11-23 19:39:27 -05:00
Charles J. Cliffe fa521ac30d Switch from portaudio callback to stream write
It’s already in a thread, not sure if callback was helping?
2014-11-22 22:56:33 -05:00
Charles J. Cliffe 39ba38b82a Cleanup / Reformat 2014-11-22 22:33:32 -05:00
Charles J. Cliffe 26168a2713 SDR and Audio thread now using std::thread
Next up, demod thread..
2014-11-22 20:57:06 -05:00
Charles J. Cliffe 35830afed0 new thread queue testing 2014-11-21 21:50:14 -05:00
Charles J. Cliffe 99aa87df63 Now working on gcc4.8, x86-64 on windows
Had to make my own portaudio and rtl-sdr binaries. The available
packages weren't compatible somehow.  Also wxWidgets wxPack doesn't
include OpenGL support but it's easy enough to compile.
2014-11-21 00:49:41 -05:00
Charles J. Cliffe f6f4c3c057 Revert "switch from portaudio -> libao"
This reverts commit 8972e87765.
2014-11-20 20:28:40 -05:00