Search Issue Tracker
Duplicate
Votes
0
Found in
5.4.4p4
Issue ID
887455
Regression
No
Stereo Pan on AudioSource has no effect on audio generated with OnAudioFilterRead
To reproduce:
1. Open attached project "StereoPanGenSoundBugReport.zip"
2. Open and Play "SineOsc" scene.
3. Select "GeneratedSound" in hierarchy and try to change it's "Stereo Pan". (it has no effect)
4. Stop the game. Disable "GeneratedSound", and enable NormalSound in hierarchy.
5. Play now, and try to change "Stereo Pan" for the "NormalSound". Works as expected.
Expected result: Generated Sound is affected by the Stereo Pan.
Actual result: Generated Sound always sounds the same.
Reproducible with: 5.3.7p1, 5.4.4p4, 5.5.2p3, 5.6.0f1, 2017.1.0a4
Notes: When Spatial Blend is set to 3D, Generated sound is not affected by the stereo effect.
Other properties such as Pitch, Volume, Doppler Level work fine.
Comments (1)
-
CarlosBCV
Apr 22, 2017 17:35
As far as I know, if you implement the OnAudioFilterRead method, you are overriding the controls of the AudioSource, so it is not a bug. Volume, pitch and pan, are applied before the call to OnAudioFilterRead.
If you want to modify the volume, pitch or pan of your generated sound, you have to make it by yourself.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
This is a duplicate of issue #819365