Compare commits

...
Author SHA1 Message Date
dependabot[bot] 8c3b61fb0a chore(deps): bump the cargo-dependencies group across 1 directory with 11 updates
Bumps the cargo-dependencies group with 11 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap) | `4.6.7` | `4.6.9` |
| [clap_complete](https://github.com/clap-rs/clap) | `4.6.11` | `4.6.12` |
| [clap_mangen](https://github.com/clap-rs/clap) | `0.3.3` | `0.3.4` |
| [log](https://github.com/rust-lang/log) | `0.4.34` | `0.4.35` |
| [cfb](https://github.com/mdsteele/rust-cfb) | `0.15.0` | `0.16.0` |
| [zip](https://github.com/zip-rs/zip2) | `9.1.3` | `9.8.1` |
| [rfd](https://github.com/PolyMeilex/rfd) | `0.17.2` | `0.18.0` |
| [x11rb](https://github.com/psychon/x11rb) | `0.13.2` | `0.14.0` |
| [libloading](https://github.com/nagisa/rust_libloading) | `0.9.0` | `0.9.1` |
| [zbus](https://github.com/z-galaxy/zbus) | `5.19.0` | `6.3.0` |
| [toml](https://github.com/toml-rs/toml) | `1.1.8+spec-1.1.0` | `1.2.0+spec-1.1.0` |



Updates `clap` from 4.6.7 to 4.6.9
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.6.7...clap_complete-v4.6.9)

Updates `clap_complete` from 4.6.11 to 4.6.12
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.6.11...clap_complete-v4.6.12)

Updates `clap_mangen` from 0.3.3 to 0.3.4
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_mangen-v0.3.3...clap_mangen-v0.3.4)

Updates `log` from 0.4.34 to 0.4.35
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.34...v0.4.35)

Updates `cfb` from 0.15.0 to 0.16.0
- [Commits](https://github.com/mdsteele/rust-cfb/compare/v0.15.0...v0.16.0)

Updates `zip` from 9.1.3 to 9.8.1
- [Release notes](https://github.com/zip-rs/zip2/releases)
- [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zip-rs/zip2/compare/v9.1.3...v9.8.1)

Updates `rfd` from 0.17.2 to 0.18.0
- [Release notes](https://github.com/PolyMeilex/rfd/releases)
- [Changelog](https://github.com/PolyMeilex/rfd/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PolyMeilex/rfd/compare/0.17.2...0.18.0)

Updates `x11rb` from 0.13.2 to 0.14.0
- [Changelog](https://github.com/psychon/x11rb/blob/master/doc/changelog.md)
- [Commits](https://github.com/psychon/x11rb/compare/v0.13.2...v0.14.0)

Updates `libloading` from 0.9.0 to 0.9.1
- [Commits](https://github.com/nagisa/rust_libloading/compare/0.9.0...0.9.1)

Updates `zbus` from 5.19.0 to 6.3.0
- [Release notes](https://github.com/z-galaxy/zbus/releases)
- [Changelog](https://github.com/z-galaxy/zbus/blob/main/release-plz.toml)
- [Commits](https://github.com/z-galaxy/zbus/compare/zbus-5.19.0...zbus-6.3.0)

Updates `toml` from 1.1.8+spec-1.1.0 to 1.2.0+spec-1.1.0
- [Commits](https://github.com/toml-rs/toml/compare/toml-v1.1.8...toml-v1.2.0)

---
updated-dependencies:
- dependency-name: cfb
  dependency-version: 0.16.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-dependencies
- dependency-name: clap
  dependency-version: 4.6.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-dependencies
- dependency-name: clap_complete
  dependency-version: 4.6.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-dependencies
- dependency-name: clap_mangen
  dependency-version: 0.3.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-dependencies
- dependency-name: libloading
  dependency-version: 0.9.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-dependencies
- dependency-name: log
  dependency-version: 0.4.35
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-dependencies
- dependency-name: rfd
  dependency-version: 0.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-dependencies
- dependency-name: toml
  dependency-version: 1.2.0+spec-1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-dependencies
- dependency-name: x11rb
  dependency-version: 0.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-dependencies
- dependency-name: zbus
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: cargo-dependencies
- dependency-name: zip
  dependency-version: 9.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-24 14:02:12 +00:00
FredApps 0c9c1b8ef6 Merge pull request #1733 from FredApps/imo778-aaf-linked-descriptors
interchange: read AAF WAVE and PCM descriptors through craft-aaf (craft-libs#778)
2026-11-24 14:57:08 +01:00
FredApps 66b8e9ad42 interchange: refuse physical track 1 of a stereo source on later edits too 2026-11-24 14:46:03 +01:00
FredApps daf06dfd7e interchange: read AAF WAVE and PCM descriptors through craft-aaf (craft-libs#778)
Open FilmCraft-style AAFs that reference one external mono PCM WAV per
channel. The file descriptor's class, SampleRate, Length and declared PCM
channel count come from craft_aaf::aaf::linked_audio (craft-libs#3180);
locators, slot policy and limits stay here.
2026-11-24 14:36:02 +01:00
8 changed files with 369 additions and 82 deletions
Generated
+213 -67
View File
@@ -78,7 +78,7 @@ dependencies = [
"futures-lite",
"futures-util",
"serde",
"zbus",
"zbus 5.19.0",
]
[[package]]
@@ -307,7 +307,7 @@ dependencies = [
"percent-encoding",
"windows-sys 0.61.2",
"wl-clipboard-rs",
"x11rb",
"x11rb 0.13.2",
]
[[package]]
@@ -463,7 +463,7 @@ checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -498,7 +498,7 @@ checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -526,7 +526,7 @@ dependencies = [
"enumflags2",
"serde",
"static_assertions",
"zbus",
"zbus 5.19.0",
"zbus-lockstep",
"zbus-lockstep-macros",
"zbus_names",
@@ -541,7 +541,7 @@ checksum = "2230e48787ed3eb4088996eab66a32ca20c0b67bbd4fd6cdfe79f04f1f04c9fc"
dependencies = [
"atspi-common",
"serde",
"zbus",
"zbus 5.19.0",
]
[[package]]
@@ -726,7 +726,7 @@ dependencies = [
"proc-macro-crate",
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -758,7 +758,7 @@ checksum = "6a1f896587b6f2c069c73d2f0913e2d590c3990285cd2f0b6aa02b786b4c679c"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -852,9 +852,9 @@ dependencies = [
[[package]]
name = "cfb"
version = "0.15.0"
version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f13298d9178622b7916ec5d01d470425c04273c8ed07e87b1c38b34c4f4612b"
checksum = "fef29b910ef2b9dbecc60168d1568d643c633b0518af970c17e83bd5f6e2c94f"
dependencies = [
"fnv",
"uuid",
@@ -915,9 +915,9 @@ dependencies = [
[[package]]
name = "clap"
version = "4.6.7"
version = "4.6.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
checksum = "844c5c0b65be192cb68d570cca1b21a6444431d24e39c084dc0336177015337c"
dependencies = [
"clap_builder",
"clap_derive",
@@ -943,23 +943,23 @@ dependencies = [
[[package]]
name = "clap_complete"
version = "4.6.11"
version = "4.6.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "037e2a1a92236d0aff7e845093f64661d6df4c02c9fcc61a60e9e1d736fa392f"
checksum = "6a35200383f20018d41c14d1ab19c1727c697f544492143f7d93aa39f0187848"
dependencies = [
"clap",
]
[[package]]
name = "clap_derive"
version = "4.6.7"
version = "4.6.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7"
dependencies = [
"heck",
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -970,9 +970,9 @@ checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
[[package]]
name = "clap_mangen"
version = "0.3.3"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "211d617eaa4b735c96c9e0228fcbdb5120ef623f2b8cb67ffb84c3e02dbc28a4"
checksum = "a3b6a8907b1723f211693e27b9af5899b86a9512ef5b08bd4a15b6bceb30da6d"
dependencies = [
"clap",
"roff",
@@ -1057,6 +1057,15 @@ dependencies = [
"crossbeam-utils",
]
[[package]]
name = "constant_time_eq"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9eb6feb175df65d0a3ccd3e73484e940d0ac664e8034f0519fd49a93db3071d9"
dependencies = [
"rustversion",
]
[[package]]
name = "core-foundation"
version = "0.9.4"
@@ -1557,7 +1566,7 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -1637,7 +1646,7 @@ dependencies = [
"objc2-foundation 0.3.2",
"parking_lot",
"percent-encoding",
"pollster 1.0.1",
"pollster",
"profiling",
"raw-window-handle",
"send_wrapper",
@@ -1753,7 +1762,7 @@ dependencies = [
"kittest",
"log",
"open",
"pollster 1.0.1",
"pollster",
"serde",
"tempfile",
"toml",
@@ -1811,7 +1820,7 @@ checksum = "7127272f64b3e098f7d81f350d672081b879bff896d219c42370dc858b1af9ff"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -2059,7 +2068,7 @@ checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -2119,7 +2128,7 @@ checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -2933,9 +2942,9 @@ dependencies = [
[[package]]
name = "libloading"
version = "0.9.0"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "754ca22de805bb5744484a5b151a9e1a8e837d5dc232c2d7d8c2e3492edc8b60"
checksum = "a1832accd5a4ca2795ace4d05d15c4039be15b62d3b950eff99746a990e3cc10"
dependencies = [
"cfg-if",
"windows-link",
@@ -3003,9 +3012,9 @@ dependencies = [
[[package]]
name = "log"
version = "0.4.34"
version = "0.4.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c"
[[package]]
name = "mach2"
@@ -3094,6 +3103,17 @@ dependencies = [
"simd-adler32",
]
[[package]]
name = "mio"
version = "1.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20521a903f02b0a573cd6840e9d0a5a0cc043d361fe924092cd70f8556cc9c4a"
dependencies = [
"libc",
"wasi",
"windows-sys 0.61.2",
]
[[package]]
name = "moxcms"
version = "0.8.1"
@@ -3395,6 +3415,7 @@ dependencies = [
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-foundation 0.3.2",
"objc2-uniform-type-identifiers 0.3.2",
]
[[package]]
@@ -3665,7 +3686,7 @@ dependencies = [
"objc2-link-presentation",
"objc2-quartz-core 0.2.2",
"objc2-symbols",
"objc2-uniform-type-identifiers",
"objc2-uniform-type-identifiers 0.2.2",
"objc2-user-notifications",
]
@@ -3692,6 +3713,16 @@ dependencies = [
"objc2-foundation 0.2.2",
]
[[package]]
name = "objc2-uniform-type-identifiers"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7902ac02859fc1f7045f8b598c63f1ae0cc7efeaa06a9bc9f3d9a3c955974fa4"
dependencies = [
"objc2 0.6.5",
"objc2-foundation 0.3.2",
]
[[package]]
name = "objc2-user-notifications"
version = "0.2.2"
@@ -3769,7 +3800,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"
dependencies = [
"libc",
"windows-sys 0.45.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -3975,12 +4006,6 @@ dependencies = [
"windows-sys 0.61.2",
]
[[package]]
name = "pollster"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
[[package]]
name = "pollster"
version = "1.0.1"
@@ -4409,9 +4434,9 @@ checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
[[package]]
name = "rfd"
version = "0.17.2"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20dafead71c16a34e1ff357ddefc8afc11e7d51d6d2b9fbd07eaa48e3e540220"
checksum = "c4b9d4857b10297ffb0f64cae711e983a7aeaee561848d56d429d3858bd8ed93"
dependencies = [
"block2 0.6.2",
"dispatch2",
@@ -4422,8 +4447,9 @@ dependencies = [
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
"objc2-foundation 0.3.2",
"objc2-uniform-type-identifiers 0.3.2",
"percent-encoding",
"pollster 0.4.0",
"pollster",
"raw-window-handle",
"wasm-bindgen",
"wasm-bindgen-futures",
@@ -4720,7 +4746,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -4744,7 +4770,7 @@ checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -4929,6 +4955,16 @@ dependencies = [
"serde",
]
[[package]]
name = "socket2"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
dependencies = [
"libc",
"windows-sys 0.61.2",
]
[[package]]
name = "soundcraft"
version = "0.20.1"
@@ -4983,13 +5019,13 @@ version = "0.20.1"
dependencies = [
"clap-sys",
"libc",
"libloading 0.9.0",
"libloading 0.9.1",
"log",
"serde",
"soundcraft-dsp",
"thiserror 2.0.21",
"windows-sys 0.61.2",
"x11rb",
"x11rb 0.14.0",
]
[[package]]
@@ -5026,6 +5062,7 @@ name = "soundcraft-engine"
version = "0.20.1"
dependencies = [
"cfb",
"craft-aaf",
"craft-audio",
"craft-docpath",
"craft-score",
@@ -5145,7 +5182,7 @@ dependencies = [
"soundcraft-vst3-host",
"toml",
"web-time",
"zbus",
"zbus 6.3.0",
]
[[package]]
@@ -5164,7 +5201,7 @@ name = "soundcraft-vst3-host"
version = "0.20.1"
dependencies = [
"libc",
"libloading 0.9.0",
"libloading 0.9.1",
"log",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
@@ -5174,7 +5211,7 @@ dependencies = [
"thiserror 2.0.21",
"vst3",
"windows-sys 0.61.2",
"x11rb",
"x11rb 0.14.0",
]
[[package]]
@@ -5452,9 +5489,9 @@ dependencies = [
[[package]]
name = "syn"
version = "3.0.9"
version = "3.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
dependencies = [
"proc-macro2",
"quote",
@@ -5469,7 +5506,7 @@ checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -5553,7 +5590,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
@@ -5642,14 +5679,21 @@ version = "1.54.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3"
dependencies = [
"bytes",
"libc",
"mio",
"pin-project-lite",
"signal-hook-registry",
"socket2",
"tracing",
"windows-sys 0.61.2",
]
[[package]]
name = "toml"
version = "1.1.8+spec-1.1.0"
version = "1.2.0+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20489e00e4d8741d6be680764cc12e270655e375a20d1011e844a9c3379e678d"
checksum = "c5ffcdf8f50436dbbfd675c1fe1b8e0854f42b7defea8584bdebe1aee900e561"
dependencies = [
"indexmap",
"serde_core",
@@ -5692,9 +5736,9 @@ dependencies = [
[[package]]
name = "toml_writer"
version = "1.1.3+spec-1.1.0"
version = "1.2.0+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06bdbd8cfc056b8d2e2e85f29b56a3bdbecb527cef81eb39e3e7b98af4652770"
checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a"
[[package]]
name = "tracing"
@@ -6045,7 +6089,7 @@ dependencies = [
"bumpalo",
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
"wasm-bindgen-shared",
]
@@ -6783,7 +6827,7 @@ dependencies = [
"web-time",
"windows-sys 0.52.0",
"x11-dl",
"x11rb",
"x11rb 0.13.2",
"xkbcommon-dl",
]
@@ -6884,7 +6928,18 @@ dependencies = [
"libloading 0.8.9",
"once_cell",
"rustix 1.1.5",
"x11rb-protocol",
"x11rb-protocol 0.13.2",
]
[[package]]
name = "x11rb"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a8885a854a8bfdf87a301e53e41b17c5f8f33639903131338b997b1eb614f44"
dependencies = [
"gethostname",
"rustix 1.1.5",
"x11rb-protocol 0.14.0",
]
[[package]]
@@ -6893,6 +6948,12 @@ version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd"
[[package]]
name = "x11rb-protocol"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "acf4d1bc32aa46eec18caa634ec3cf4c05bfa151f12b93b510b15190f69a1ca8"
[[package]]
name = "xcursor"
version = "0.3.11"
@@ -6956,7 +7017,7 @@ checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
"synstructure",
]
@@ -6990,11 +7051,40 @@ dependencies = [
"uuid",
"windows-sys 0.61.2",
"winnow",
"zbus_macros",
"zbus_macros 5.19.0",
"zbus_names",
"zvariant",
]
[[package]]
name = "zbus"
version = "6.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6b4aae740b23927ceabed962431abab2cdefb9f7f885e5bbab062da09bf580e4"
dependencies = [
"async-trait",
"bitflags 2.13.2",
"endi",
"futures-core",
"hex",
"libc",
"ordered-stream",
"rustix 1.1.5",
"serde",
"serde_repr",
"socket2",
"tokio",
"tracing",
"uds_windows",
"uuid",
"windows-sys 0.61.2",
"winnow",
"zbus_macros 6.5.0",
"zbus_utils",
"zcheapstr",
"zruntime",
]
[[package]]
name = "zbus-lockstep"
version = "0.5.2"
@@ -7028,12 +7118,24 @@ dependencies = [
"proc-macro-crate",
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
"zbus_names",
"zvariant",
"zvariant_utils",
]
[[package]]
name = "zbus_macros"
version = "6.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f5aa7f2c4ea81b7ccfb26bafefdb4d1a44dd9d4f82c8426173a3727311743e4"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.10",
"zbus_utils",
]
[[package]]
name = "zbus_names"
version = "4.3.5"
@@ -7045,6 +7147,19 @@ dependencies = [
"zvariant",
]
[[package]]
name = "zbus_utils"
version = "6.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af55e52da295311b368c45bcae221f020e28e97a2420360170ce389218e76ec7"
dependencies = [
"proc-macro2",
"quote",
"serde",
"syn 3.0.10",
"winnow",
]
[[package]]
name = "zbus_xml"
version = "5.2.1"
@@ -7103,7 +7218,7 @@ checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
"synstructure",
]
@@ -7112,6 +7227,20 @@ name = "zeroize"
version = "1.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879"
dependencies = [
"zeroize_derive",
]
[[package]]
name = "zeroize_derive"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.119",
]
[[package]]
name = "zerotrie"
@@ -7147,23 +7276,26 @@ checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
]
[[package]]
name = "zip"
version = "9.1.3"
version = "9.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1156b39d142a34b999c2310a50455e0cb3760bf7efad0122f796d813bee26ccb"
checksum = "2d8dbe089cf6b0448b78f5fc50139ab5aaa40d08ac07cdc1baf2c13add35fcce"
dependencies = [
"constant_time_eq",
"crc32fast",
"flate2",
"getrandom 0.4.3",
"indexmap",
"libc",
"memchr",
"nix",
"typed-path",
"windows-sys 0.61.2",
"zeroize",
]
[[package]]
@@ -7178,6 +7310,20 @@ version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
[[package]]
name = "zruntime"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac67096b97c00742108c4674db6bb6178adb78c4b66a506b0e4a7a9593aa5d9e"
dependencies = [
"futures-core",
"futures-io",
"rustix 1.1.5",
"socket2",
"tracing",
"windows-sys 0.61.2",
]
[[package]]
name = "zune-core"
version = "0.5.3"
@@ -7217,7 +7363,7 @@ dependencies = [
"proc-macro-crate",
"proc-macro2",
"quote",
"syn 3.0.9",
"syn 3.0.10",
"zvariant_utils",
]
@@ -7230,7 +7376,7 @@ dependencies = [
"proc-macro2",
"quote",
"serde",
"syn 3.0.9",
"syn 3.0.10",
"winnow",
]
+2 -2
View File
@@ -48,7 +48,7 @@ proptest = "1"
# audio
rustfft = "6"
# AAF interchange: Compound File Binary (structured storage) container reader.
cfb = "0.15"
cfb = "0.16"
# Session bundles (one file holding a session and its audio, for the browser): stored entries only.
zip = { version = "9", default-features = false }
cpal = "0.18"
@@ -89,7 +89,7 @@ eframe = { version = "0.37", default-features = false }
# Monotonic clock on native and the browser (the `web_time::Instant` panics-free equivalent).
web-time = "1.1"
egui_kittest = "0.37"
rfd = "0.17"
rfd = "0.18"
image = { version = "0.25", default-features = false, features = ["png"] }
[workspace.lints.rust]
+1 -1
View File
@@ -20,7 +20,7 @@ windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Graphic
# The X11 host window for embedded editors on Linux and the BSDs, and the polling behind
# `clap.posix-fd-support`.
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
x11rb = "0.13"
x11rb = "0.14"
libc = "0.2"
[[test]]
+1
View File
@@ -33,6 +33,7 @@ winsafe = { version = "0.0.29", features = ["kernel"] }
[dev-dependencies]
cfb.workspace = true
craft-aaf.workspace = true
proptest.workspace = true
zip.workspace = true
+102
View File
@@ -437,3 +437,105 @@ fn repeated_local_mob_references_fail_before_property_expansion() {
let err = f.preview().unwrap_err().to_string();
assert!(err.contains("duplicate local reference in mobs"), "{err}");
}
/// A FilmCraft-style AAF that references one external mono PCM WAV per channel, written by the
/// shared `craft-aaf` writer around WAVs generated here.
struct MonoWavAaf {
dir: PathBuf,
}
impl MonoWavAaf {
fn new(wav_channels: usize) -> Self {
use craft_aaf::model::{CClip, CItem, CKind, CTrack, Composition, Document, Source};
use craft_aaf::time::{FrameRate, Tick};
static NEXT: AtomicU64 = AtomicU64::new(0);
let dir = std::env::temp_dir().join(format!("soundcraft-aaf-mono-{}-{}", std::process::id(), NEXT.fetch_add(1, Ordering::Relaxed)));
std::fs::create_dir(&dir).unwrap();
let frames = 96_000;
let options = EncodeOptions::new(craft_audio::EncodeFormat::Wav).with_bit_depth(BitDepth::Int16);
let mut sources = Vec::new();
let mut tracks = Vec::new();
for (i, name) in ["Dialogue.A1.wav", "Dialogue.A2.wav"].into_iter().enumerate() {
let audio = AudioBuffer { sample_rate: 48000, channels: vec![vec![0.25; frames]; wav_channels] };
let path = dir.join(name);
std::fs::write(&path, craft_audio::encode(&audio, &options).unwrap()).unwrap();
sources.push(Source {
key: "item:1".into(),
name: name.into(),
kind: CKind::Sound,
path: Some(path.display().to_string()),
channel: None,
channels: 1,
file_channels: 1,
width: 0,
height: 0,
frame_rate: FrameRate::FPS_25,
sample_rate: 48000,
bits: 16,
length: Tick::from_units(frames as i64, 48000),
offset: Tick::ZERO,
start_tc: None,
tc_rate: FrameRate::FPS_25,
embedded: None,
markers: Vec::new(),
nested: None,
});
let clip = CClip { len: Tick::from_units(25, 25), source: i, start: Tick::ZERO, gain: None, name: format!("Cut {}", i + 1) };
tracks.push(CTrack {
kind: CKind::Sound,
name: format!("A{}", i + 1),
number: i as u32 + 1,
channels: 1,
items: vec![CItem::Clip(clip)],
});
}
let composition = Composition {
name: "Separate mono".into(),
aaf_mob_id: None,
rate: FrameRate::FPS_25,
sample_rate: 48000,
width: 1920,
height: 1080,
start_tc: 0,
drop: false,
tracks,
markers: Vec::new(),
};
let doc = Document { compositions: vec![composition], sources, ..Document::default() };
let identity =
craft_aaf::Identity { company: "Craft", product: "soundcraft tests", version: "1", platform: "test", product_id: *b"soundcraft-test." };
let bytes =
craft_aaf::aaf::write(&doc, &craft_aaf::aaf::WriteOptions { identity, small_sectors: false }, &mut craft_aaf::Report::default()).unwrap();
std::fs::write(dir.join("Separate mono.aaf"), bytes).unwrap();
Self { dir }
}
fn preview(&self) -> soundcraft_engine::Result<Value> {
Engine::default().execute("file.preview_aaf", &json!({"path": self.dir.join("Separate mono.aaf"), "media_dir": self.dir}))
}
}
impl Drop for MonoWavAaf {
fn drop(&mut self) {
let _ = std::fs::remove_dir_all(&self.dir);
}
}
#[test]
fn separate_mono_pcm_wav_aaf_imports_one_mono_track_per_file() {
let f = MonoWavAaf::new(1);
let preview = f.preview().unwrap();
let plan = &preview["plan"];
let channels: Vec<_> = plan["sources"].as_array().unwrap().iter().map(|s| s["channels"].as_u64().unwrap()).collect();
assert_eq!(channels, [1, 1]);
let mut e = Engine::default();
e.execute("file.import_aaf", &json!({"plan": plan, "media_dir": f.dir, "selected": [0, 1]})).unwrap();
assert_eq!(e.session().tracks.len(), 2);
assert!(e.session().tracks.iter().all(|t| t.channels() == 1 && t.clips().len() == 1));
let sources: Vec<_> = e.session().tracks.iter().map(|t| t.clips()[0].source()).collect();
assert_ne!(sources[0], sources[1], "each channel file is its own source");
}
#[test]
fn a_pcm_descriptor_whose_channel_count_differs_from_its_wav_is_refused() {
let f = MonoWavAaf::new(2);
let err = f.preview().unwrap_err().to_string();
assert!(err.contains("channel counts differ"), "{err}");
}
+48 -10
View File
@@ -3,7 +3,7 @@
//! Reads the AAF structured-storage object model directly (properties streams, strong
//! reference vectors/sets and dictionary weak references) for a deliberately small subset:
//! one CompositionMob whose timeline slots hold Sequences of SourceClip and Filler, resolved
//! through MasterMobs to SourceMobs with a WAVEDescriptor and one external NetworkLocator.
//! through MasterMobs to SourceMobs with a WAVE or PCM descriptor and one external NetworkLocator.
//! Anything else in an audio slot aborts instead of producing a misleading montage.
//!
//! No filesystem access happens here: the caller passes the opened AAF and a [`MediaResolver`]
@@ -32,6 +32,7 @@
//! locator resolves under the AAF's folder (see `locator_path`). A file that cannot be found
//! is reported and its edits skipped; it does not abort the import.
use crate::{ImportClip, ImportError, ImportTrack, Media, Plan, Rational, TimecodeRate};
use craft_aaf::aaf::linked_audio::{AudioFileDescriptor, DescriptorFieldError, DescriptorKind, DescriptorProperty};
use craft_aaf::aaf::properties::{Properties, Property, PropertyError};
use std::{
collections::{HashMap, HashSet},
@@ -80,8 +81,6 @@ const PID_CONTENT_ESSENCE: u16 = 0x1902;
const PID_DEF_NAME: u16 = 0x1B02;
const PID_ESSENCE_MOB_ID: u16 = 0x2701;
const PID_DESCRIPTOR_LOCATORS: u16 = 0x2F01;
const PID_FILE_SAMPLE_RATE: u16 = 0x3001;
const PID_FILE_LENGTH: u16 = 0x3002;
const PID_HEADER_CONTENT: u16 = 0x3B03;
const PID_URL_STRING: u16 = 0x4001;
const PID_MOB_ID: u16 = 0x4401;
@@ -230,6 +229,8 @@ impl Q {
struct Obj {
path: String,
class: String,
/// The class AUID in on-disk byte order, as the shared descriptor view classifies it.
auid: [u8; 16],
// Cached objects are cloned along source and dictionary walks; share their property payload.
props: Rc<HashMap<u16, (u16, Vec<u8>)>>,
}
@@ -269,6 +270,16 @@ impl Obj {
fn is(&self, class: &str) -> bool {
self.class == class
}
/// The shared typed view of a WAVE or PCM file descriptor (craft-libs#3180); `None` for any
/// other class.
fn audio_descriptor<'a>(&'a self) -> Option<AudioFileDescriptor<impl Fn(u16) -> DescriptorProperty<'a> + 'a>> {
let kind = DescriptorKind::from_auid_le(self.auid)?;
Some(AudioFileDescriptor::new(kind, move |pid| match self.props.get(&pid) {
None => DescriptorProperty::Missing,
Some((form, data)) if *form == SF_DATA => DescriptorProperty::Data(data),
Some(_) => DescriptorProperty::OtherForm,
}))
}
/// Class name for messages; unknown (extension) classes print their AUID.
fn kind(&self) -> &str {
CLASS_NAMES.iter().find(|(id, _)| *id == self.class).map_or(self.class.as_str(), |(_, n)| n)
@@ -295,6 +306,13 @@ fn property_error(path: &str, e: PropertyError) -> ImportError {
}
}
fn descriptor_error(field: &str, e: DescriptorFieldError) -> ImportError {
match e {
DescriptorFieldError::Missing | DescriptorFieldError::Truncated => fail(format!("missing or short descriptor {field}")),
DescriptorFieldError::OtherForm => fail(format!("descriptor {field} is not a data property")),
}
}
fn property_total(current: usize, additional: usize) -> Result<usize> {
current.checked_add(additional).filter(|total| *total <= MAX_PROPERTY_BYTES).ok_or_else(|| fail("AAF retained property data exceeds 128 MiB"))
}
@@ -391,6 +409,7 @@ impl<F: Read + Seek> Store<F> {
return Err(fail(format!("{path}: not an AAF object")));
}
let class = entry.clsid().to_string();
let auid = entry.clsid().to_bytes_le();
let props_path = if path == "/" { "/properties".to_string() } else { format!("{path}/properties") };
let d = self.stream(&props_path)?.ok_or_else(|| fail(format!("{path}: missing properties")))?;
if d.first() != Some(&0x4c) {
@@ -411,7 +430,7 @@ impl<F: Read + Seek> Store<F> {
let Property { id, form, payload } = record.map_err(|e| property_error(path, e))?;
props.insert(id, (form, payload.to_vec()));
}
let object = Obj { path: path.to_string(), class, props: Rc::new(props) };
let object = Obj { path: path.to_string(), class, auid, props: Rc::new(props) };
self.objects.insert(path.to_string(), object.clone());
Ok(object)
}
@@ -670,7 +689,7 @@ impl<F: Read + Seek> Builder<'_, F> {
}
if mob.is(CLASS_SOURCE_MOB) {
let desc = self.store.opt_strong(&mob, PID_SOURCE_MOB_DESCRIPTOR, "EssenceDescription")?;
if let Some(desc) = desc.filter(|d| d.is(CLASS_WAVE_DESCRIPTOR)) {
if let Some(desc) = desc.filter(|d| d.audio_descriptor().is_some()) {
return self.file_source(&mob, &slot, &desc, key_urn, offset);
}
}
@@ -691,12 +710,20 @@ impl<F: Read + Seek> Builder<'_, F> {
}
fn file_source(&mut self, mob: &Obj, slot: &Obj, desc: &Obj, key: String, offset: Q) -> Result<(String, Q)> {
// Full interleaved WAV only: selecting one physical channel needs a channel map.
if !matches!(slot.opt_u32(PID_SLOT_PHYSICAL, "PhysicalTrackNumber")?, None | Some(0)) {
// Full interleaved WAV only: selecting one physical channel needs a channel map. Track 1
// of a mono file is the whole file (checked once the file is probed).
let physical = slot.opt_u32(PID_SLOT_PHYSICAL, "PhysicalTrackNumber")?;
if !matches!(physical, None | Some(0 | 1)) {
return Err(fail("Physical channel selection / split stereo unsupported"));
}
// Each source file is located, probed and reported once, however many edits use it.
if self.sources.iter().any(|s| s.key == key) || self.missing.iter().any(|m| m.key == key) {
if let Some(source) = self.sources.iter().find(|s| s.key == key) {
if physical == Some(1) && source.channels != 1 {
return Err(fail("Physical channel selection / split stereo unsupported"));
}
return Ok((key, offset));
}
if self.missing.iter().any(|m| m.key == key) {
return Ok((key, offset));
}
let name = mob.string(PID_MOB_NAME);
@@ -721,12 +748,23 @@ impl<F: Read + Seek> Builder<'_, F> {
if !matches!(info.channels, 1 | 2) {
return Err(fail("Only mono/stereo PCM WAV supported"));
}
if desc.rational(PID_FILE_SAMPLE_RATE, "descriptor SampleRate")? != Q::int(i64::from(info.sample_rate)) {
let fields =
desc.audio_descriptor().ok_or_else(|| fail(format!("Unsupported referenced mob/descriptor: {}", name.clone().unwrap_or_default())))?;
let (num, den) = fields.sample_rate().map_err(|e| descriptor_error("SampleRate", e))?;
if Q::new(i128::from(num), i128::from(den))? != Q::int(i64::from(info.sample_rate)) {
return Err(fail(format!("Descriptor/file sample rates differ: {}", name.unwrap_or_default())));
}
if u64::try_from(desc.i64(PID_FILE_LENGTH, "descriptor Length")?).ok() != Some(info.frames) {
if u64::try_from(fields.length().map_err(|e| descriptor_error("Length", e))?).ok() != Some(info.frames) {
return Err(fail(format!("Descriptor/file lengths differ: {}", name.unwrap_or_default())));
}
if let Some(declared) = fields.pcm_channels().map_err(|e| descriptor_error("Channels", e))?
&& declared != u32::from(info.channels)
{
return Err(fail(format!("Descriptor/file channel counts differ: {}", name.unwrap_or_default())));
}
if physical == Some(1) && info.channels != 1 {
return Err(fail("Physical channel selection / split stereo unsupported"));
}
let stem = Path::new(&info.path).file_stem().map(|s| s.to_string_lossy().into_owned()).unwrap_or_default();
self.sources.push(Media {
key: key.clone(),
+1 -1
View File
@@ -33,7 +33,7 @@ log.workspace = true
image.workspace = true
[target.'cfg(target_os = "linux")'.dependencies]
zbus = "5"
zbus = "6"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
craft-update = { workspace = true }
+1 -1
View File
@@ -30,7 +30,7 @@ windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Graphic
# The X11 editor host window on Linux and the BSDs (a top-level window the plugin view embeds
# into) and the view's run loop (polling the descriptors plugins register).
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
x11rb = "0.13"
x11rb = "0.14"
libc = "0.2"
[[test]]