Datasets:
Download code/generation/native/source_xyz.patch from Heiheihaha17/MESH-Benchmark: direct link, hf CLI and curl.
- Browser
- Download file 853 Bytes
-
https://huggingface.co/datasets/Heiheihaha17/MESH-Benchmark/resolve/main/code/generation/native/source_xyz.patch
- Command line
-
hf download hf://datasets/Heiheihaha17/MESH-Benchmark/code/generation/native/source_xyz.patch
-
curl -L -o source_xyz.patch https://huggingface.co/datasets/Heiheihaha17/MESH-Benchmark/resolve/main/code/generation/native/source_xyz.patch
853 Bytes
| diff --git a/src/esp/sensor/AudioSensor.cpp b/src/esp/sensor/AudioSensor.cpp | |
| index 91afe8c..1e2e350 100644 | |
| --- a/src/esp/sensor/AudioSensor.cpp | |
| +++ b/src/esp/sensor/AudioSensor.cpp | |
| void AudioSensor::runSimulation(sim::Simulator& sim) { | |
| newSource_ = false; | |
| ESP_DEBUG() << logHeader_ | |
| << "Adding source at position : " << lastSourcePos_; | |
| + // Magnum::Vector3 is zero-indexed. Using [1], [2], [3] silently dropped | |
| + // the world-x coordinate and read one float out of bounds, corrupting all | |
| + // rendered source positions and therefore the FOA direction labels. | |
| audioSimulator_->AddSource(RLRAudioPropagation::Vector3f{ | |
| - lastSourcePos_[1], lastSourcePos_[2], lastSourcePos_[3]}); | |
| + lastSourcePos_[0], lastSourcePos_[1], lastSourcePos_[2]}); | |
| } | |
| // Run the audio simulation | |