I am not getting anything from the above. Could you paste the code so that we can debug your code.
#include <math.h>
#include <stdio.h>
#include <float.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
#include <backward_kernel.h>
/* variables for reading and writing a wave file */
FILE* fp;
wav_info file_info;
int header_flag;
long num_data_read;
long num_data_write;
/* variables for Embedding Process */
long low_lim=0;
long up_lim=FRAME_SIZE;
int emb_index;
int in_size;
int index;
int i;
void main()
{
/* for reading from an audio file stored as .wav file */
fp=fopen("C:\\Documents and Settings\\Administrator\\Desktop\\c_ref\\L_fm_sig0 00.wav","rb");
header_flag=1;
in_size=0;
num_data_read=wavread(fp,&file_info,header_flag,da ta_L,data_R,0);
header_flag=0;
num_data_read=wavread(fp,&file_info,header_flag,da ta_L,data_R,file_info.data_size);
fclose(fp);
/* For generating echo signal corresponding to DELAY_ONE */
for(index=0;index<(LENGTH_AUDIO);index++)
echo_signal_one_L[index]=0.0;
for(index=0;index<(LENGTH_AUDIO-DELAY_ONE);index++)
{
echo_signal_one_L[index+DELAY_ONE]=((REL_AMP_ONE )*(data_L[index]));
}
now if DELAY_ONE=0 and if I am dividing elements of echo_signal_one with data_L , I must get REL_AMP_ONE as elements,
waveread is a function which read the data byte wise and store it as double,
hope its clear now
/*
for(index=0;index<LENGTH_AUDIO;index++)
{
wm_signal_one[index]=data_L[index]+echo_signal_one[index];
}
for(index=0;index<(LENGTH_AUDIO-DELAY_ZERO);index++)
{
echo_signal_zero[index+DELAY_ZERO]=((REL_AMP_ZERO)*(data_L[index]));
}
for(index=0;index<LENGTH_AUDIO;index++)
{
wm_signal_zero[index]=data_L[index]+echo_signal_zero[index];
}