Maestro Audio Framework v 1.5
NXP Semiconductors
streamer_fs.h File Reference

This file contains the definition of the streamer filesystem functionality. More...

Data Structures

struct  StreamerFileSrcConfig
 

Functions

int streamer_build_fs_pipeline (int8_t pipeline_index, const char *out_dev_name, StreamPipelineType pipeline_type, STREAMER_T *task_data)
 Build the file source pipeline. More...
 
int streamer_destroy_fs_pipeline (int8_t pipeline_index, STREAMER_T *task_data)
 Destroy file system pipeline. More...
 
int streamer_get_fs_pipeline_config (char *filename, StreamerFileSrcConfig *config)
 Get file type from the file name and extension. More...
 
const int32_t stream_type_conversion (int32_t stream_type)
 Convert CCI stream type to a decoder type. More...
 
const uint8_t cci_decoder_type_conversion (DecoderType audio_type)
 Convert Decoder type to CCI stream type. More...
 

Function Documentation

◆ streamer_build_fs_pipeline()

int streamer_build_fs_pipeline ( int8_t  pipeline_index,
const char *  out_dev_name,
StreamPipelineType  pipeline_type,
STREAMER_T task_data 
)
Parameters
pipeline_indexPipeline index
out_dev_nameOut device name
pipeline_typePipeline type
task_dataPointer to streamer object
Returns
int

◆ streamer_destroy_fs_pipeline()

int streamer_destroy_fs_pipeline ( int8_t  pipeline_index,
STREAMER_T task_data 
)
Parameters
pipeline_indexPipeline index
task_dataPointer to streamer object
Returns
int

◆ streamer_get_fs_pipeline_config()

int streamer_get_fs_pipeline_config ( char *  filename,
StreamerFileSrcConfig config 
)

Assign corresponding decoder type according to the file extension

Parameters
[in]filenameInput file name
[out]configOutput config structure
Returns
int

◆ stream_type_conversion()

const int32_t stream_type_conversion ( int32_t  stream_type)
Parameters
[in]stream_typeCCI stream type.
Return values
DecoderType

◆ cci_decoder_type_conversion()

const uint8_t cci_decoder_type_conversion ( DecoderType  decoder_type)
Parameters
[in]decoder_typeDecoder type.
Return values
CCIStream Type