[roll] Roll fuchsia [audio][ffxdaemon] Use common SampleType type

* Rename `fuchsia_audio::format::CommandSampleType` to SampleType.

* Format uses SampleType instead of fmedia::AudioSampleFormat.
  This removes an explicit dependency on fidl_fuchsia_media in
  `ffx audio gen`.

* Move methods from Format that read only SampleType, into SampleType.
  This way other code that just has a SampleType can use them.

* Replace `From<&Blah> for Format` with `From<Blah>`.
  The types that are being converted are Copy and are consumed entirely
  during the conversion so there is no reason to use them by reference.

* Define more `From` impls for conversions between SampleType
  and the various FIDL sample format types.
  This condenses a bunch of ad-hoc conversions throughout format.rs.

* Define a `Display` impl on SampleType and use it for formatting
  error messages in ffxdaemon's renderer.rs/capturer.rs

Also, make Capturer take in a Format so it's consistent with Renderer.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1015952
Original-Revision: 73a864d714ed237041d5646d517442882bac9deb
GitOrigin-RevId: 274768e1e967f85893f018e26397bebf9d7ce15c
Change-Id: I74fb01a3081b4756705925681d43a1f13ffd3f93
1 file changed
tree: d53a85e814b40df9fd43c419742736417279b9ca
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.