138 return m_sound->
size();
246void QQuick3DSpatialSound::updatePosition()
251void QQuick3DSpatialSound::updateRotation()
266 return m_sound->
loops();
static QString currentPath()
Returns the absolute path of the application's current directory.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
The QQmlContext class defines a context within a QML engine.
static QAudioEngine * getEngine()
void sceneRotationChanged()
void scenePositionChanged()
QQuaternion sceneRotation
void setDirectivity(float alpha)
\qmlproperty float SpatialSound::directivity
QQuick3DSpatialSound()
\qmltype SpatialSound \inqmlmodule QtQuick3D.SpatialAudio
DistanceModel distanceModel
void setAutoPlay(bool autoPlay)
void manualAttenuationChanged()
void distanceCutoffChanged()
void directivityChanged()
void setManualAttenuation(float attenuation)
\qmlproperty float SpatialSound::manualAttenuation
void pause()
\qmlmethod SpatialSound::pause()
void play()
\qmlmethod SpatialSound::play()
void setSource(QUrl source)
void occlusionIntensityChanged()
void setDistanceCutoff(float max)
\qmlproperty float SpatialSound::distanceCutoff
void setDirectivityOrder(float alpha)
\qmlproperty float SpatialSound::directivityOrder
void setSize(float min)
\qmlproperty float SpatialSound::size
void nearFieldGainChanged()
void stop()
\qmlmethod SpatialSound::stop()
void setDistanceModel(DistanceModel model)
\qmlproperty enumeration SpatialSound::distanceModel
void setVolume(float volume)
\qmlproperty float SpatialSound::volume
void directivityOrderChanged()
void setOcclusionIntensity(float occlusion)
\qmlproperty float SpatialSound::occlusionIntensity
void distanceModelChanged()
void setNearFieldGain(float gain)
\qmlproperty float SpatialSound::nearFieldGain
void stop()
Stops sound playback and resets the current position and current loop count to 0.
void setVolume(float volume)
void directivityOrderChanged()
void manualAttenuationChanged()
void pause()
Pauses sound playback.
void setPosition(QVector3D pos)
void setNearFieldGain(float gain)
void play()
Starts playing back the sound.
void setDistanceModel(DistanceModel model)
float nearFieldGain
Defines the near field gain for the sound source.
float manualAttenuation
Defines a manual attenuation factor if \l distanceModel is set to QSpatialSound::DistanceModel::Manua...
void occlusionIntensityChanged()
DistanceModel distanceModel
Defines distance model for this sound source.
void setManualAttenuation(float attenuation)
void setSource(const QUrl &url)
float directivity
Defines the directivity of the sound source.
void distanceModelChanged()
void setDirectivityOrder(float alpha)
QUrl source
The source file for the sound to be played.
float directivityOrder
Defines the order of the directivity of the sound source.
void setDistanceCutoff(float cutoff)
void setAutoPlay(bool autoPlay)
void setDirectivity(float alpha)
bool autoPlay
Determines whether the sound should automatically start playing when a source gets specified.
void setOcclusionIntensity(float occlusion)
void distanceCutoffChanged()
float size
Defines the size of the sound source.
int loops
Determines how many times the sound is played before the player stops.
void nearFieldGainChanged()
void setRotation(const QQuaternion &q)
float volume
Defines the volume of the sound.
float occlusionIntensity
Defines how much the object is occluded.
float distanceCutoff
Defines a distance beyond which sound coming from the source will cutoff.
DistanceModel
Defines how the volume of the sound scales with distance to the listener.
void directivityChanged()
static QUrl fromLocalFile(const QString &localfile)
Returns a QUrl representation of localFile, interpreted as a local file.
QUrl resolved(const QUrl &relative) const
Returns the result of the merge of this URL with relative.
Combined button and popup list for selecting options.
GLsizei GLsizei GLchar * source
GLfloat GLfloat GLfloat alpha
QQmlContext * qmlContext(const QObject *obj)
QSqlQueryModel * model
[16]
QUrl url("example.com")
[constructor-url-reference]