QtCraft API C++ classes QML types Handbook

QcAudioMixer::PlayParameters Struct

struct QcAudioMixer::PlayParameters

How play() starts a voice. More...

Public Variables

QcSoundBus bus
float gain
bool loop
float pan
double pitch

Detailed Description

Member Variable Documentation

QcSoundBus PlayParameters::bus

Bus whose volume applies.

float PlayParameters::gain

Gain of the voice (at least 0).

bool PlayParameters::loop

Starts over at the end instead of ending.

float PlayParameters::pan

-1 left, 0 centre, 1 right.

double PlayParameters::pitch

Playback speed; 1 is the buffer's own.