Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eventhelix/58a3d8f9c48bc1d0a9fe to your computer and use it in GitHub Desktop.
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
. . .
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