| 1 | # Doppler Effect Demo |
| 2 | |
| 3 | Demo of sound doppler effect ( https://en.wikipedia.org/wiki/Doppler_effect ). |
| 4 | Move the sound source by dragging with mouse. If you drag a horizontal line |
| 5 | fast, near the listener position, you will hear the Doppler effect -- the audible sound pitch |
| 6 | with be higher. |
| 7 | |
| 8 | Using [Castle Game Engine](https://castle-engine.io/). |
| 9 | |
| 10 | ## Building |
| 11 | |
| 12 | Compile by: |
| 13 | |
| 14 | - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_. |
| 15 | |
| 16 | - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. |
| 17 | |
| 18 | - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `doppler_demo_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus). |
| 19 | |
| 20 | - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `doppler_demo_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details. |