mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
add some libtool usage in openzap build. This will require re-bootstrap and configure
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@534 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
@@ -3,9 +3,8 @@
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
teletone_generation_session_t ts;
|
||||
teletone_multi_tone_t mt = {0};
|
||||
teletone_tone_map_t map = {0};
|
||||
teletone_tone_map_t map = {{0}};
|
||||
|
||||
int fd, b;
|
||||
short sln[512] = {0};
|
||||
@@ -15,14 +14,12 @@ int main(int argc, char *argv[])
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
|
||||
map.freqs[0] = atof("350");
|
||||
map.freqs[1] = atof("440");
|
||||
teletone_multi_tone_init(&mt, &map);
|
||||
|
||||
|
||||
if ((fd = open(argv[1], O_RDONLY)) < 0) {
|
||||
fprintf(stderr, "File Error!\n", strerror(errno));
|
||||
fprintf(stderr, "File Error! [%s]\n", strerror(errno));
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
@@ -30,5 +27,6 @@ int main(int argc, char *argv[])
|
||||
printf("TEST %d %d\n", b, teletone_multi_tone_detect(&mt, sln, b / 2));
|
||||
}
|
||||
close(fd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user