A
A
Alexey2013-12-04 17:41:00
Android
Alexey, 2013-12-04 17:41:00

How can I stream an audio stream from a sound card output over Wi-Fi in Android?

Good day!
Tell me, if I captured an audio stream from the output of a sound card, how can I generally transfer it over Wi-Fi (to an Android device)? If both the PC and Android are connected to the same network, can it be organized as in a normal LAN: the PC sends sound to the socket, Android reads and plays?
I just want to write an application for PC and Android that would transfer an audio stream from a PC to a phone via Wi-Fi, but I don’t know how it is done, because I have never encountered Wi-Fi transmission, and I didn’t write for Android, only C/C++/Qt.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nekipelov, 2013-12-04
@Renzo

It's simple: you open UDP sockets, one side writes, the other reads. Small packets are sent (audio data with a duration of 40-80 ms). When receiving, you need to make a jitter buffer in order to collect and arrange audio packets.
In general, it is necessary to look towards the RTP protocol. Well, choose an audio codec depending on the desired quality.

M
Majstor, 2014-07-23
@Majstor

SoundWire
www.w3bsit3-dns.com/forum/index.php?showtopic=456143

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question