tree: 74600221a490f9b0db7c1ec1823143e76ce5cb2d
  1. src/
  2. BUILD.gn
  3. 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.