MIXGetMemorySize

Syntax

#include <revolution.h>
#include <revolution/mix.h>

#define MIXGetMemorySize(num) ((sizeof(MIXChannel) + sizeof(MIXRmtChannel)) * num)

Arguments

num Number of voices specified when the AX library is initialized.

Return Values

Byte size of the memory area required by the mixer library.

Description

This macro returns the byte size of the memory area required by the mixer library. If the MIXInitSpecifyMem function is used to initialize the mixer, it is necessary to allocate a memory buffer of the size returned by this macro ahead of time.

See Also

MIXInitSpecifyMem

Revision History

2006/10/23 Initial version.


CONFIDENTIAL