Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
Hi all,
I'm a newbee to block based processing. I am running the block based
talkthrough example for the adsp21364. I just moved from the
adsp21061 to the block based process, so i'm quitte new to this topic.
in process blockprocess.c you can state your process, like for
example a simple amplification of the left and right channels
separately.
I want to do something like:
for(i=0;i<NUM_SAMPLES;i++)
{
block_ptr -> left and right channels
left[i]=left[i]*1.5; // amplify left.
left and right -> block_ptr;
}
void processBlock(unsigned int *block_ptr)
{
// variables...
//Set the Processing Active Semaphore before starting processing
isProcessing = 1;
for(i=0;i<NUM_SAMPLES;i++)
{
*(block_ptr+i) = *(block_ptr+i);
}
How can i do this? i'm a bit stuck.
Can someone help me out?
Evert Verduin