Subversion Repositories svnkaklik

Compare Revisions

No changes between revisions

Ignore whitespace Rev 548 → Rev 547

/programy/C/ix86/sound/sonar.c
376,9 → 376,8
exit(EXIT_FAILURE);
}
 
snd_pcm_link(capture_handle,playback_handle); //link capture and playback together
 
//start sream
//start capture
if ((err = snd_pcm_prepare (capture_handle)) < 0) {
fprintf (stderr, "cannot prepare audio interface for use (%s)\n",
snd_strerror (err));
390,6 → 389,17
printf("Start error: %s\n", snd_strerror(err));
exit(EXIT_FAILURE);
}
 
 
//start playback
if (snd_pcm_state(playback_handle) == SND_PCM_STATE_PREPARED) {
err = snd_pcm_start(playback_handle);
if (err < 0) {
printf("Start error: %s\n", snd_strerror(err));
exit(EXIT_FAILURE);
}
}
 
//wait until all samples aren't transmitted
printf("Waiting for transmitt all samples\n");
397,10 → 407,7
sleep(1);
printf(".");
}
 
//// stop audio??
 
 
////
j=0;
for(i=0;i < SIGNAL_SAMPLES;i++){
L_signal[i]=signal[j];
/programy/C/ix86/sound/sonar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream