Created
March 10, 2015 12:22
-
-
Save eventhelix/58a3d8f9c48bc1d0a9fe to your computer and use it in GitHub Desktop.
Initializing all DSPs delegated to SignalProcessingCard class (no nested loop) http://www.eventhelix.com/realtimemantra/object_oriented/object_design_tips_2.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. . . | |
for (card=0; card < MAX_SIGNAL_PROCESSING_CARDS; card++) | |
{ | |
m_signalProcessingCard[card].Initialize(); | |
} | |
void SignalProcessingCard::Initialize() | |
{ | |
for (dsp=0; dsp < MAX_DSPS_PER_CARD; dsp++) | |
{ | |
m_dsp[dsp].Initialize(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment