M0LTE.Radio.Audio
0.1.0
dotnet add package M0LTE.Radio.Audio --version 0.1.0
NuGet\Install-Package M0LTE.Radio.Audio -Version 0.1.0
<PackageReference Include="M0LTE.Radio.Audio" Version="0.1.0" />
<PackageVersion Include="M0LTE.Radio.Audio" Version="0.1.0" />
<PackageReference Include="M0LTE.Radio.Audio" />
paket add M0LTE.Radio.Audio --version 0.1.0
#r "nuget: M0LTE.Radio.Audio, 0.1.0"
#:package M0LTE.Radio.Audio@0.1.0
#addin nuget:?package=M0LTE.Radio.Audio&version=0.1.0
#tool nuget:?package=M0LTE.Radio.Audio&version=0.1.0
M0LTE.Radio.Audio
Minimal, dependency-free audio I/O + PTT abstractions for driving a radio or sound device
from a .NET modem or DSP. It's the shared seam of the M0LTE.* radio packages — implement
these three interfaces and any sound card, SDR audio stream, or file plugs into a modem the
same way.
| Type | Contract |
|---|---|
IAudioInput |
int SampleRate, int Read(Span<float>) — blocking, source-paced capture of normalised floats (−1..1). |
IAudioOutput |
int SampleRate, void Write(ReadOnlySpan<float>), void Drain() — blocking, sink-paced playback. |
IPttControl |
void Key(), void Unkey() — transmitter keying. |
NullPtt |
A no-op IPttControl for VOX interfaces and tests. |
- Targets
net10.0. No third-party dependencies. - Public API is locked by a build-time test and the package follows
Semantic Versioning; see
docs/versioning.md.
Install
dotnet add package M0LTE.Radio.Audio
Example
using M0LTE.Radio.Audio;
// A trivial file-backed capture source at 48 kHz.
public sealed class WavFileInput(float[] samples) : IAudioInput
{
private int _pos;
public int SampleRate => 48_000;
public int Read(Span<float> destination)
{
int n = Math.Min(destination.Length, samples.Length - _pos);
samples.AsSpan(_pos, n).CopyTo(destination);
_pos += n;
return n;
}
}
Licence
AGPL-3.0-or-later (see LICENSE). These are original interface definitions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on M0LTE.Radio.Audio:
| Package | Downloads |
|---|---|
|
pdn-soundmodem
Headless soundcard packet modem core: IL2P/AX.25 framing and FEC now; demodulators, KISS TCP and DCD to follow. |
|
|
M0LTE.Flex
A lightweight .NET client for FlexRadio 6000-series SDRs over the SmartSDR TCP/UDP API: discovery, the command/status session, VITA-49 DAX audio in and out (24 kHz s16 and 48 kHz float32), slice PTT, and transmitter metering (SWR, forward/reflected power, PA temperature, supply rails). Presents receive/transmit through the M0LTE.Radio.Audio seam (audio in/out + PTT), so a modem, a paging encoder or any DSP can drive a Flex like a sound card. Includes an in-process mock radio for hardware-free tests. |
|
|
M0LTE.Ardop
A managed, ardopcf-compatible ARDOP 1 virtual TNC for .NET: the 4FSK/4PSK/8PSK/16QAM modulator and demodulator, Reed-Solomon FEC frames, the full ARQ engine (bandwidth negotiation, gearshift) and a byte-compatible TCP host interface, so Winlink hosts (Pat, Winlink Express, ARIM, hamChat) connect unmodified. Drive it from any audio device via the M0LTE.Radio.Audio seam. Extracted from the pdn-soundmodem packet-radio modem; validated bidirectionally against ardopcf. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 927 | 7/17/2026 |