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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="M0LTE.Radio.Audio" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="M0LTE.Radio.Audio" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="M0LTE.Radio.Audio" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add M0LTE.Radio.Audio --version 0.1.0
                    
#r "nuget: M0LTE.Radio.Audio, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package M0LTE.Radio.Audio@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=M0LTE.Radio.Audio&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=M0LTE.Radio.Audio&version=0.1.0
                    
Install as a Cake Tool

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.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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 944 7/17/2026