Commit Graph

107 Commits

Author SHA1 Message Date
Branden Archer
4635a78574 Set the TCP send buffer size to avoid buffering audio
If the send buffer size is large and the receiver is unable
to keep up, then audio samples will collect on the monitor
and lag will accumulate. As only the most recent sample is
important, reduce the send buffer size to the minimum
AudioRecord buffer size.
2015-12-26 17:51:16 -05:00
Branden Archer
828e6a16f6 Stream audio data to connected clients
While connected, send packets of audio data to connected clients.
2015-12-26 17:50:33 -05:00
Branden Archer
7819c31275 Stub for servicing connection to ProtectBabyMonitor service
If a client connects to the advertised ProtectBabyMonitor service,
attempt to service the connection.

For now, simply close the connection instead of sending data.
2015-12-26 15:49:17 -05:00
Branden Archer
716d82dc1c Register ProtectBabyMonitor service via mDNS
When the MonitorActivity is started it will create a ServerSocket.
The assigned port is then advertised over mDNS for a
"ProtectBabyMonitor" service.

Eventually, when something connects to the ServerSocket audio
data will be streamed out.
2015-12-26 15:49:17 -05:00
Branden Archer
11bf3822b6 Add MonitorActivity - for registering on network and sending audio
This commit adds the shell of the MonitorActivity. This activity
will register its service on the local network, wait for a connection,
then send audio data.
2015-12-26 15:49:12 -05:00
Branden Archer
7bd19f2325 Add StartActivity - landing page of baby monitor
The StartActivity is the first activity which will be launched
in the baby monitor, and in the future will list the two main
options: become a monitor or a listener.
2015-12-26 15:48:42 -05:00
brarcher
8b1b1a7414 Initial commit 2015-12-26 13:23:26 -05:00