Skip to content

NBT App SDK 0.2.0

Pre-release
Pre-release

Choose a tag to compare

@fpoussin fpoussin released this 27 Nov 10:50
· 50 commits to main since this release
6634602

Shorter audio delay, NBT Manager's audio mixer, and the bridge 1.8 and 1.9 capabilities. Source only; an application pins this commit in its release/sdk.ref.

Serves

  • Bridge up to 1.9: service (background services), companion (a page in the phone app), diagnostics control and drive; diag (1.8); everything of 0.1.0.
  • Host ABI 1.1 for modules and guests, unchanged.
  • NBT toolchain 1.2.0, unchanged.

Audio

  • AudioPcm plays through NBT Manager's mixer when the host names it (NBT_AUDIO_MIXER): every application and service at once, at 44100 Hz. Its render is called with 256 frames (5.8 ms) at most.
  • From a guest's render to the head unit's audio input: about 41 ms with NBT Manager 0.5.1, where it was about 105 ms. Each queue starts short and grows by itself when it ran empty: the mixer's output (four levels), its queue per client, and a guest's ring, whose depth the runner now sets.
  • frontend::AudioQueue (the libretro host's): 32 ms instead of 64, more when frames come late, 64 ms at most.
  • Audio threads run at priority 15 for 4 ms of each 20 ms on the head unit, their own priority beyond.

New

  • nbt::app::Diag (UDS requests through NBT Manager), Lifecycle::is_service and the :service launch, nbt::app::Companion.
  • Releases build without the QNX image by default; NBT_SDK_VM_RUN for an application's VM tests.

What applications must change: nothing. Rebuilding on this release gives a guest the shorter ring and an emulator the shorter queue; a package built on 0.1.0 keeps working and keeps its former queues.