for (QList<QDeclarativeSoundInstance*>::Iterator it = m_managedDeclSoundInstances.begin();
it != m_managedDeclSoundInstances.end();) {
QDeclarativeSoundInstance *declSndInstance = *it;
- if (declSndInstance->state() == QDeclarativeSoundInstance::StopppedState) {
+ if (declSndInstance->state() == QDeclarativeSoundInstance::StoppedState) {
it = m_managedDeclSoundInstances.erase(it);
releaseManagedDeclarativeSoundInstance(declSndInstance);
#ifdef DEBUG_AUDIOENGINE
, m_velocity(0, 0, 0)
, m_gain(1)
, m_pitch(1)
- , m_requestState(QDeclarativeSoundInstance::StopppedState)
+ , m_requestState(QDeclarativeSoundInstance::StoppedState)
, m_coneInnerAngle(360)
, m_coneOuterAngle(360)
, m_coneOuterGain(0)
#ifdef DEBUG_AUDIOENGINE
qDebug() << "QDeclarativeSoundInstance::stop()";
#endif
- m_requestState = QDeclarativeSoundInstance::StopppedState;
+ m_requestState = QDeclarativeSoundInstance::StoppedState;
if (!m_instance)
return;
m_instance->stop();
public:
enum State
{
- StopppedState = QSoundInstance::StopppedState,
+ StoppedState = QSoundInstance::StoppedState,
PlayingState = QSoundInstance::PlayingState,
PausedState = QSoundInstance::PausedState
};
, m_varGain(1)
, m_pitch(1)
, m_varPitch(1)
- , m_state(QSoundInstance::StopppedState)
+ , m_state(QSoundInstance::StoppedState)
, m_coneOuterGain(0)
, m_engine(0)
{
State ns = State(newState);
if (ns == m_state)
return;
- if (ns == QSoundInstance::StopppedState) {
+ if (ns == QSoundInstance::StoppedState) {
prepareNewVariation();
}
setState(ns);
{
Q_ASSERT(m_soundSource);
m_soundSource->stop();
- setState(QSoundInstance::StopppedState);
+ setState(QSoundInstance::StoppedState);
}
void QSoundInstance::detach()
void QSoundInstance::stop()
{
- if (!m_isReady || !m_soundSource || m_state == QSoundInstance::StopppedState) {
- setState(QSoundInstance::StopppedState);
+ if (!m_isReady || !m_soundSource || m_state == QSoundInstance::StoppedState) {
+ setState(QSoundInstance::StoppedState);
return;
}
sourceStop();
enum State
{
- StopppedState = QSoundSource::StoppedState,
+ StoppedState = QSoundSource::StoppedState,
PlayingState = QSoundSource::PlayingState,
PausedState = QSoundSource::PausedState
};