Alright I really am trying to learn. I am continuously frustrated trying to learn C++. I’m working on a looper concept. I understand that SDRAM has to be declared globally. But I would like to create a class incorporating all the methods and other variables related to the loop, like the play_head_position etc. So what I think I need to do is declare the SDRAM in my Looper.cpp file: float DSY_SDRAM_BSS track1[2][MAX_SIZE]; then pass a (reference? or pointer?) to it to my class Loop.h in my constructor? or .Init().
- is this a good way of doing it?,
- Do I want to do it as a reference or a pointer?,
- What’s the syntax of declaring the variable to store in my .h?,
- Whats the syntax in my .Init() function?