hi_mpi_aenc_release_stream

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Releases an encoded audio stream.

Prototype

hi_s32 hi_mpi_aenc_release_stream(hi_aenc_chn aenc_chn, const hi_audio_stream *stream)

Parameters

Parameter

Input/Output

Description

aenc_chn

Input

Encoding channel ID. The value range is [0, 6).

stream

Output

Audio stream to be released.

Returns

Restrictions

  • A stream can be obtained only after a channel has been created by calling hi_mpi_aenc_create_chn. Otherwise, an error code indicating failure is returned.
  • This API and hi_mpi_aenc_get_stream must appear in pairs. Call hi_mpi_aenc_get_stream to obtain a stream and after the stream is used, call this API to release the stream in time.
  • This API cannot be called repeatedly.