I’ve been working through the “Build an AudioPlayer” tutorial, and one part puts up a FileChooser dialog to pick a waveform. In the code, is this:
void openButtonClicked()
{
FileChooser chooser ("Select a Wave file to play...",
{},
"*.wav;*.mp3");
if (chooser.browseForFileToOpen())
{
auto file = chooser.getResult();
auto* reader = formatManager.createReaderFor (file);
if (reader != nullptr)
{
std::unique_ptr<AudioFormatReaderSource> newSource (new AudioFormatReaderSource (reader, true));
transportSource.setSource (newSource.get(), 0, nullptr, reader->sampleRate);
playButton.setEnabled (true);
readerSource.reset (newSource.release());
}
}
}
So “useOSNativeDialogBox” is true by default.
The title “Select a Wave file to play…” does not appear anywhere in the native dialog on Mac OS Mojave. Is it supposed to? Is this not supported?
If I specify false for useOSNativeDialogBox, the phrase shows in JUCE’s default dialog. But I’m wondering if it can show in the native dialog.