Skip to content

Commit

Permalink
switch to aap-core aapxs-v080 branch (AAPXS v2) to work with.
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushieno committed Nov 8, 2023
1 parent 704f15f commit 77ea1b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ void AndroidAudioPluginFormat::createPluginInstance(const PluginDescription &des
// that processes instancing and invoke user callback (PluginCreationCallback).
std::function<void(int32_t,std::string&)> aapCallback = [this, callback](int32_t instanceID, std::string& error) {
auto androidInstance = android_host->getInstanceById(instanceID);
((RemotePluginInstance*) androidInstance)->configurePorts();

callback(std::make_unique<AndroidAudioPluginInstance>(androidInstance), error);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class AndroidAudioPluginInstance : public juce::AudioPluginInstance {
}

inline void setStateInformation(const void *data, int sizeInBytes) override {
native->getStandardExtensions().setState(data, (size_t) sizeInBytes);
aap_state_t state{const_cast<void *>(data), static_cast<size_t>(sizeInBytes)};
native->getStandardExtensions().setState(state);
}

void fillInPluginDescription(PluginDescription &description) const override;
Expand Down

0 comments on commit 77ea1b0

Please sign in to comment.