1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

JUCEでAudioプラグインがスタンドアロン起動しているのかどうか確認する方法

Posted at

自分がプラグインとして動いているのか、スタンドアロン起動しているのか確認したいことがあります。例えば、スタンドアロン時のみAudioのバッファサイズを変更するUIを出すとか。

前提##

ProjucerでAudioアプリを作っている。

確認方法##

下記のファイルをincludeする。

sample.cpp
# include <juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h>

下記のようにStandalonePluginHolderのインスタンスを取得し、nullptrでなかったらスタンドアロン。

sample.cpp
juce::StandalonePluginHolder* holder = juce::StandalonePluginHolder::getInstance();
if (holder != nullptr)
{
    //  スタンドアロン起動
}
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?