Meta attributes of a stream: Vst::IStreamAttributes
- [host imp]
- [extends IBStream]
- [released: 3.6.0]
- [optional]
Interface to access preset meta information from stream, used, for example, in setState in order to inform the plug-in about the current context in which the preset loading occurs (Project context or Preset load (see StateType)) or used to get the full file path of the loaded preset (if available).
#include "pluginterfaces/vst/vstpresetkeys.h"
...
tresult PLUGIN_API MyPlugin::setState (
IBStream* state)
{
if (stream)
{
if (list)
{
if (list->getString (PresetAttributes::kStateType,
string, 128 * sizeof (
TChar)) ==
kResultTrue)
{
char ascii[128];
tmp.toAscii (ascii, 128);
if (!strncmp (ascii, StateType::kProject, strlen (StateType::kProject)))
{
}
}
if (list->getString (PresetAttributes::kFilePathStringType, fullPath, 1024 * sizeof (
TChar)) ==
kResultTrue)
{
}
}
}
}
Definition funknown.h:403
Definition ivstattributes.h:41
TChar String128[128]
128 character UTF-16 string
Definition vsttypes.h:63
char16 TChar
UTF-16 character.
Definition vsttypes.h:62
UStringBuffer< 128 > UString128
128 character UTF-16 string
Definition ustring.h:108
@ kResultTrue
Definition funknown.h:194