Skip to main content
Skip table of contents

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

CODE
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

CODE
 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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.