* @brief Finds the project root directory by navigating up from the executable's location. */
| 14 | * @brief Finds the project root directory by navigating up from the executable's location. |
| 15 | */ |
| 16 | juce::File findProjectRoot() |
| 17 | { |
| 18 | auto executableFile = juce::File::getSpecialLocation(juce::File::currentApplicationFile); |
| 19 | auto projectRoot = executableFile.getParentDirectory().getParentDirectory(); |
| 20 | jassert(projectRoot.getChildFile("tests").isDirectory()); |
| 21 | return projectRoot; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * @brief Generates an AudioBuffer containing a sine wave. |
no outgoing calls
no test coverage detected