Document toolboxDocument toolbox

(8.D.2.3) FileMemBuffer

Overview

Audio weaver wrapper for a module buffering a file

Discussion

This module implements the Audio Weaver wrapper for MP3 decoder on native PC target.

Type Definition

typedef struct _ModuleFileMemBuffer { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure UINT32 bufferSize; // Size of the buffer holding the file content UINT32 bufferPtr; // Pointer of the buffer UINT32* fileBuffer; // Buffer holding the file data } ModuleFileMemBufferClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

bufferSize

uint

state

1

0

Unrestricted

 

bufferPtr

uint

state

1

0

Unrestricted

 

fileBuffer

uint*

state

1

[1 x 1]

Unrestricted

 

Pins

Output Pins

Name: bufferPtr

Description: Pointer to the buffer holding data

Data type: int

MATLAB Usage

File Name: file_mem_buffer_module.m

function M=file_mem_buffer_module(NAME, FILENAME) Creates an Audio Weaver wrapper for file buffer module. Arguments: NAME - name of the module. FILENAME - Name of the file to be buffered.

Â