SoundRenderer::PlaySample

SoundRenderer::PlaySample
virtual SoundChannel* PlaySample(SoundSample* ps, bool paused) = 0;
Description

PlaySample creates a sound channel object from a given sound sample object. If paused parameter is set to false, the sound will not start playing until SoundChannel::Pause(false) method is called.

Parameters
Parameters 
Description 
SoundSample* ps 
A sound sample object used to create the sound channel. 
bool paused 
A Boolean flag set to true/false to specify whether to resume the channel paused or not. A value of true pauses the sound channel and value of false resumes the channel. 
Return Value

Pointer to SoundChannel which is used to control the playing sound sample.