diff options
author | Lars Knoll <lars.knoll@qt.io> | 2022-04-29 16:42:15 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2022-05-11 08:24:04 +0200 |
commit | 0fae7dd8d889d3dd20e0c28c0fa6a406b88a73ab (patch) | |
tree | 96073241a65a8ba4a4467f6702e08631d1ebff5a /examples | |
parent | 90f9030e426dfcd375baec68208e9ece3454fe5e (diff) |
Cleanup the spatial audio sound source implementation
Unify code that can be shared between the sound and stereo sources
and move implementation details out of the public API.
Change-Id: I28b7ac86aef640f6b2f509004348fb314d4d77f3
Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimedia/spatialaudio/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/multimedia/spatialaudio/main.cpp b/examples/multimedia/spatialaudio/main.cpp index 7ed993621..a7881ce99 100644 --- a/examples/multimedia/spatialaudio/main.cpp +++ b/examples/multimedia/spatialaudio/main.cpp @@ -74,7 +74,7 @@ public: grid->addWidget(new QLabel("Elevation:"), 2, 0); grid->addWidget(elevation, 2, 1); distance = new QSlider(Qt::Horizontal); - distance->setRange(0, 100); + distance->setRange(0, 10); grid->addWidget(new QLabel("Distance:"), 3, 0); grid->addWidget(distance, 3, 1); occlusion = new QSlider(Qt::Horizontal); @@ -126,6 +126,7 @@ private slots: void fileChanged(const QString &file) { sound->setSource(QUrl::fromLocalFile(file)); + sound->setMinimumDistance(5); } void openFileDialog() { |