upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/xma_decoder/src
diff options
context:
space:
mode:
authorandretuta <andreviniciusmerlia@gmail.com>2026-11-24 05:27:55 -0300
committerandretuta <andreviniciusmerlia@gmail.com>2026-11-24 05:27:55 -0300
commit0fe9c0bdfb844678209c0d0ffdd37d2533d1f57e (patch)
tree143420e46b24ebd381998ea651aa4a0a8b20d001 /runtime/xma_decoder/src
parente02ec36bf315de960a9db244e971bf00cfd66406 (diff)
acphal: recover SHAPE allocation and preserve XMA stream state
Diffstat (limited to 'runtime/xma_decoder/src')
-rw-r--r--runtime/xma_decoder/src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/xma_decoder/src/lib.rs b/runtime/xma_decoder/src/lib.rs
index cda2721fb..69fedf49e 100644
--- a/runtime/xma_decoder/src/lib.rs
+++ b/runtime/xma_decoder/src/lib.rs
@@ -109,7 +109,8 @@ unsafe fn create_with<E>(
109/// Decodes a buffer containing one or more complete 2048-byte XMA2 packets. 109/// Decodes a buffer containing one or more complete 2048-byte XMA2 packets.
110/// 110///
111/// # Safety 111/// # Safety
112/// `decoder` must be a live handle returned by `leonida_xma2_decoder_create`. 112/// `decoder` must be a live handle returned by `leonida_xma2_decoder_create`
113/// or `leonida_xma2_decoder_create_hardware`.
113/// `input` must reference `input_len` readable bytes and `out_block` must be writable. 114/// `input` must reference `input_len` readable bytes and `out_block` must be writable.
114/// Do not destroy a decoder concurrently with this call. The returned PCM block remains valid 115/// Do not destroy a decoder concurrently with this call. The returned PCM block remains valid
115/// until `leonida_xma2_pcm_destroy` is called. 116/// until `leonida_xma2_pcm_destroy` is called.
@@ -182,8 +183,8 @@ pub unsafe extern "C" fn leonida_xma2_decode_buffer(
182/// Destroys a decoder. Passing null is a no-op. 183/// Destroys a decoder. Passing null is a no-op.
183/// 184///
184/// # Safety 185/// # Safety
185/// A non-null pointer must be a live handle returned by `leonida_xma2_decoder_create`, 186/// A non-null pointer must be a live handle returned by `leonida_xma2_decoder_create`
186/// and no calls may be using it concurrently. 187/// or `leonida_xma2_decoder_create_hardware`. No calls may be using it concurrently.
187#[no_mangle] 188#[no_mangle]
188pub unsafe extern "C" fn leonida_xma2_decoder_destroy(decoder: *mut LeonidaXma2Decoder) { 189pub unsafe extern "C" fn leonida_xma2_decoder_destroy(decoder: *mut LeonidaXma2Decoder) {
189 if !decoder.is_null() { 190 if !decoder.is_null() {