Commit Graph

932 Commits

Author SHA1 Message Date
gardners
0b5a9665b2 first cut code for sending monitor socket announcements when
rhizome bundles are received.
2012-05-12 07:24:52 +09:30
gardners
cd65e47be1 fixed segfault bug in rhizome fetch.
(serval-node/import directory needs to exist to fetch files,
 maybe the code should just make the directory if not present)
2012-05-11 19:07:27 +09:30
gardners
c448eab720 fixed audio handling for the most part.
aliasing noise and/or buffer underrun noise is present.
2012-05-11 14:11:58 +09:30
gardners
2ea218b567 fast-audio getting closer to working.
Figured out how to make buffer time very short
(set record rate high works, setting buffer size does not).
Of course this means we need to downsample and upsample.
2012-05-11 13:28:24 +09:30
gardners
81c2a926a3 working on getting short-circuit audio working. 2012-05-11 13:28:24 +09:30
Andrew Bettison
e746557a08 Fix bug in overlay_gettime_ms()
The sequence start time was only getting set in overlay_interface_init(), which
was not always called, or was called after overlay_gettime_ms() had already
been used.

Added FATALF(), FATAL() and FATAL_perror() macros.

Removed a bunch of debug statements no longer needed in monitor.c and server.c.
2012-05-11 10:38:46 +09:30
gardners
14f9d8001b and even better fix again, since this one builds on both linux and
android.
2012-05-11 08:18:58 +09:30
gardners
c70646039d better fix for redefined symbols 2012-05-11 08:17:37 +09:30
gardners
51966737a6 fix build problem on unbuntu (ifreq gets redefined) 2012-05-11 08:16:15 +09:30
gardners
7b82ccbd7b work on bypass-audio.
CALLSTATUS monitor message has gained a field, thus changing
API for java side.
2012-05-11 08:14:00 +09:30
Andrew Bettison
c29f210e91 Remove some duplicate defs in audio_msm_g1.c 2012-05-11 00:17:33 +09:30
Andrew Bettison
e39ab01903 Reduce monitor.c debug output a bit 2012-05-11 00:17:02 +09:30
Andrew Bettison
fe25f06129 Conditionally compile new ALSA sound code 2012-05-10 18:29:27 +09:30
Andrew Bettison
022e3289dd Quieten new compile warnings 2012-05-10 18:29:00 +09:30
Andrew Bettison
8c1b8920d5 Fix possible cause of SEGV crash in monitor.c 2012-05-10 18:08:59 +09:30
Andrew Bettison
881576212c Fix all trivial compiler warnings 2012-05-10 18:08:59 +09:30
Andrew Bettison
4f68a945ed Less verbosity from Makefile 2012-05-10 18:02:59 +09:30
gardners
850d7b42d7 reworked shortcircuit audio code. 2012-05-10 16:58:57 +09:30
Andrew Bettison
b15e5cfee7 Improve debugging/logging macros
Replace 'WHYRETNULL();' statements with 'return WHYNULL();'
Introduce DEBUG(), DEBUGF(), DEBUG_perror() and D macros
Add logMessage() and vlogMessage() functions
Implement setReason() using vlogMessage()
2012-05-10 12:53:57 +09:30
Andrew Bettison
0cf69c9b30 Don't build playwav on Android 2012-05-10 12:50:12 +09:30
Andrew Bettison
0fa40973ec Make 'start' command call setpgrp() when detaching 2012-05-10 12:46:40 +09:30
gardners
8d2792ce74 substantial work towards playing audio on IDEOS/G1 type MSM chipset
android phones directly from C to dramatically reduce latency.
2012-05-10 03:47:18 +09:30
Andrew Bettison
d96d8ff8d6 Move signal handling to server.c
Improve diagnostic messages from signal handler

For some reason, signal handler was not being set in server process when called
from main()
2012-05-09 19:06:44 +09:30
Andrew Bettison
f1e23d463b Improve disgnostic messages from monitor.c 2012-05-09 19:06:17 +09:30
Andrew Bettison
d36a8c945a Add GPL header comment to Java source file 2012-05-09 19:05:15 +09:30
Andrew Bettison
c5f26567fb Fix code typo that inflicted unwanted debug output 2012-05-09 12:51:59 +09:30
gardners
dbb9b4930f removed some more debugging. 2012-05-09 07:40:29 +09:30
gardners
fbd19db931 stripped out lots of debugging for audio frame handling ready for
audio-streaming of call.
2012-05-09 07:38:34 +09:30
Andrew Bettison
68cfa6218c Minor fix to WHY_perror() macro 2012-05-08 17:48:16 +09:30
Andrew Bettison
da9fe6fdca Fix 'start' command bug when invoked via JNI
Child process was using return not exit(), which was unrolling the
JNI call stack in a sub-process and causing havoc.
2012-05-08 16:35:14 +09:30
gardners
8aae21232f fix to stop runaway last update time that was squelching keepalive
messages.
2012-05-08 15:58:37 +09:30
gardners
b198db38b9 fixed various bugs in monitor-cli. 2012-05-08 15:47:39 +09:30
gardners
c571493096 fixed non-blocking after reading/writing so that android shell
doesn't get upset.
2012-05-08 14:56:15 +09:30
Andrew Bettison
836f8332e8 Replace perror() with WHY_perror()
Puts more diagnostics to Android log
2012-05-08 14:53:34 +09:30
Andrew Bettison
8dd9a70852 Fix 'stop' command
Do not fail with error if servald.pid is nonexistent/inaccessible
2012-05-08 14:53:34 +09:30
gardners
08768a7c8c removed monitor executable from android build (it's a servald
cli app now).
2012-05-08 14:46:39 +09:30
gardners
596b20b5e8 interactive servald monitor cli command implemented. 2012-05-08 14:41:21 +09:30
gardners
67c7c1a7c0 improve monitor-cli to allow choosing which peer to dial. 2012-05-08 14:41:21 +09:30
gardners
4fa63e61bc improved monitor-cli.c to auto-dial a peer and pump audio in. 2012-05-08 14:41:21 +09:30
Andrew Bettison
c6968c430a Minor bug fix in diagnostic output 2012-05-08 14:04:41 +09:30
gardners
8d48b873d6 added line feed to start of all monitor messages to ensure fast
re-sync if data blob is not read correctly.
2012-05-08 12:57:44 +09:30
Andrew Bettison
391e8d7056 Fix broken stopfile logic
'start' command removes stopfile just before starting
'stop' command removes stopfile after stopping
2012-05-08 12:53:59 +09:30
Andrew Bettison
329189ec8c Fix bodgy server start/stop logic
Rename pidfile 'serval.pid' to 'servald.pid'
Rename stopfile 'doshutdown' to 'servald.stop'
Reinstate checking of stopfile on signals and in main loops
Correct delay loops in 'start' and 'stop' commands
Move some code from commandline.c to server.c
2012-05-08 12:19:52 +09:30
Andrew Bettison
6376baf8b8 Follow-up fixes to serval.pid clobber termination 2012-05-08 11:27:07 +09:30
Andrew Bettison
acc5e48f4f Terminate server process if serval.pid clobbered 2012-05-08 11:23:43 +09:30
Andrew Bettison
27f2d00d5e Minor code refactor 2012-05-07 19:14:53 +09:30
Andrew Bettison
09f8434a21 Improve "start" command
Add "start exec <exec path>" variants for background mode
Add background startup wait logic, so that pid can be reported to caller
2012-05-07 19:14:52 +09:30
gardners
171eb75d48 fixed packet size calculation bug. 2012-05-07 16:50:49 +09:30
gardners
74634a5068 minor tweak to dna lookup. 2012-05-07 15:47:20 +09:30
gardners
081e1b64f9 take 2 at fixing dna lookup latency bug. 2012-05-07 15:40:15 +09:30