ham2mon-gui icon indicating copy to clipboard operation
ham2mon-gui copied to clipboard

Playing a partial call doesn't work

Open masenf opened this issue 4 years ago • 1 comments

The GUI displays calls that are currently being written to disk by ham2mon, however clicking on these doesn't play them (not sure why yet). It does however mark them as read. This can result in missed calls because when they do ultimately finish being written, they are already marked as read (and possibly hidden).

I still need to determine whether this is a deficiency of the browser/gui or ham2mon writing files that do not partially play. In brief testing, it seems like I can load the ham2mon wav files and play them partially with VLC, however even VLC doesn't continue past the end of the file at the time of loading.

Ideally I would be able to stream calls in progress as ham2mon is decoding the signal.

A simple solution might be to change ham2mon to write audio data to temporary files and then move them to the wav directory once they are "complete".

masenf avatar Sep 11 '20 22:09 masenf

i have a new WiP patch which is leveraging chokidar to watch the ham2mon output directory. chokidar has a nice feature which will repeatedly poll for size changes and only report a "new" file when the size stops changing.

i'm planning to use this to identify when calls are complete and copy them over to a new directory that ham2mon-gui manages.

masenf avatar Sep 24 '20 03:09 masenf