diff options
Diffstat (limited to 'runtime/xma_decoder/src')
| -rw-r--r-- | runtime/xma_decoder/src/lib.rs | 7 |
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] |
| 188 | pub unsafe extern "C" fn leonida_xma2_decoder_destroy(decoder: *mut LeonidaXma2Decoder) { | 189 | pub unsafe extern "C" fn leonida_xma2_decoder_destroy(decoder: *mut LeonidaXma2Decoder) { |
| 189 | if !decoder.is_null() { | 190 | if !decoder.is_null() { |