tree: 9acdeee91cd5cd2c326d83290dc1331a5bc3867c [search]
  1. src/
  2. BUILD.bazel
  3. BUILD.gn
  4. README.md
src/media/audio/lib/rust/README.md

fuchsia_audio

fuchsia_audio (and fuchsia_audio_fdomain, which is equivalent and will soon be renamed to fuchsia_audio when the current fuchsia_audio is removed) is a library for interacting with Fuchsia audio devices.

Building

This project should be automatically included in builds.

Using

fuchsia_audio can be used by depending on the //src/media/audio/lib/rust GN target and then using the fuchsia_audio crate in a Rust project.

fuchsia_audio is not available in the SDK.

Testing

Unit tests for fuchsia_audio are available in the fuchsia_audio_tests package:

$ fx test fuchsia_audio_tests

You'll need to include //src/media/audio/lib/rust:tests in your build, either by using fx args to put it under universe_package_labels, or by fx set [....] --with //src/media/audio/lib/rust:tests.