PathEngine home previous: iTestBed::createImage()next: iTestBed::displaySplashImage_BottomLeft()
Contents, API Reference, Interfaces, iTestBed, createSound

iTestBed::createSound()

Description

Loads the contents of a wav file into memory to be later played by iTestBed::playSound().

Syntax

int32_t createSound(char const * soundData_Buffer, uint32_t soundData_BufferEntries, int32_t numberOfBuffers);

Parameters

soundData_Buffer, soundData_BufferEntries (See Passing Arrays.) The contents of a .wav file.
numberOfBuffers The number of buffers to create for this sound. This decides the number of instances of the sound that can be played simultaneously.

Return Value

If the method fails then a value of -1 is returned, otherwise an index is returned that can be later passed in to iTestBed::playSound().

C# Mapping

int createSound(byte[] soundData, int numberOfBuffers);

Java Mapping

int createSound(byte[] soundData, int numberOfBuffers);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iTestBed::displaySplashImage_BottomLeft()