Doubt with the ASPIK (Volume Plugin) tutorial | Current Version and Update Info | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Doubt with the ASPIK (Volume Plugin) tutorial
March 2, 2022 - 12:14 pm
Member Since: November 10, 2021
Forum Posts: 10
sp_UserOfflineSmall Offline

Hello everyone, I am following the ASPiK documentation to write my first plugin. Specifically the Volume plugin from the section Write a plugin.

My question is in the section Processing the Audio Data> Audio Input and Output Samples. Here it says that we have to modify the code of the processAudioFrame function in plugincore.cpp file. I don't understand what part of the initial code I should remove to add the new code indicated in the ASPiK documentation, I don't know if I should delete from line 172 to 215 and add the documentation code.

If someone can guide me a bit about this, I'm starting with ASPiK and I'm finding it a bit difficult to understand the whole process (I'm not a regular C++ user), thank you all and have a nice day.

March 9, 2022 - 8:59 am
Member Since: January 1, 2020
Forum Posts: 107
sp_UserOfflineSmall Offline

Hi David,

It might be best to build the DemoVolumePlugin project that comes in the Samples folder with ASPiK, then you can follow how it is done from there. 

Line 229 - double xn_L = processFrameInfo.audioInputFrame[0];

is the first place that anything happens to the audio. I.e it's taken from the left Input buffer and stored in variable xn_l for you to modify there.

The way the stereo is set up on the project may be a little confusing. The code for the right channel is duplicated in the if(...kCFStereo) section. The DemoCustomViews projects look a bit neater if you want to try learning from them.


Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 56

Skyler: 48

StevieD: 46

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

Nickolai: 43

clau_ste: 39

jeanlecode: 37

Member Stats:

Guest Posters: 2

Members: 782

Moderators: 1

Admins: 6

Forum Stats:

Groups: 13

Forums: 42

Topics: 849

Posts: 3370

Moderators: W Pirkle: 693