# Programatically determine plug-in format?

**URL:** https://forum.juce.com/t/programatically-determine-plug-in-format/23434
**Category:** Development
**Created:** [July 24, 2017, 11:08pm UTC](https://forum.juce.com/t/programatically-determine-plug-in-format/23434 "2017-07-24T23:08:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![drnfckdrn-2](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/drnfckdrn-2/32/1367_2.png) [@drnfckdrn-2](https://forum.juce.com/u/drnfckdrn-2)
#### Post date: [July 24, 2017, 11:08pm UTC](https://forum.juce.com/t/programatically-determine-plug-in-format/23434/1 "2017-07-24T23:08:30Z")

</div>

Hi all,

Forgive me if there’s a simple solution to this question that I’ve failed to notice. I wanted to know if there is a way to programatically determine whether the a plug-in I’m developing is being used as an AAX, VST or AU - reason being that multi-channel output bus order differs from DAW to DAW. It would be unnecessary for me to account for all DAWs but having some headsup about whether I’m in Pro Tools or Reaper would be advantageous. Maybe it would be best to allow a UI object that allows users to switch between different output formats themselves? Is this preferable plug-in programming practice?

Thanks for all the input

---

<div class="post-metadata">

### Author: ![railjonrogut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/railjonrogut/32/505_2.png) [@railjonrogut](https://forum.juce.com/u/railjonrogut)
#### Post date: [July 24, 2017, 11:11pm UTC](https://forum.juce.com/t/programatically-determine-plug-in-format/23434/2 "2017-07-24T23:11:02Z")

</div>

PluginHostType

[https://bill-auger.github.io/JUCE/doxygen/doc/classPluginHostType.html](https://bill-auger.github.io/JUCE/doxygen/doc/classPluginHostType.html)

or:

AudioProcessor::WrapperType

Rail

---

<div class="post-metadata">

### Author: ![drnfckdrn-2](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/drnfckdrn-2/32/1367_2.png) [@drnfckdrn-2](https://forum.juce.com/u/drnfckdrn-2)
#### Post date: [July 24, 2017, 11:16pm UTC](https://forum.juce.com/t/programatically-determine-plug-in-format/23434/3 "2017-07-24T23:16:15Z")

</div>

Ha, that’s pretty much perfect. Thanks and sorry for the unnecessary question!
