E
E
egor_spk2015-10-28 01:15:59
C++ / C#
egor_spk, 2015-10-28 01:15:59

How to generate an audio stream?

I am dealing with the problem of transmitting information through an audio cable.
The transmitting side of the PC on windows, the receiving side is an android phone.
There is an idea to encode each character in ASCII and then get some frequency.
Question:
How can I generate an audio signal from the frequencies I need in C++ or C#?
Recommend a library. It is desirable that she could then output the audio signal.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-10-28
Protko @Fesor

and continue to receive some frequency.

What for? You already have a stream of numbers. Your problem will be that after converting the signal to analog (it’s not a digital signal that goes through the wiring) and converting the signal back, you will get a bunch of data losses (due to digital-analog-digit conversion). What can be done is to design the coding system so that there are no small differences in signal levels. Well, from above, still some codes with error correction.
For "how to generate a sound" google "Generate WAVE"

E
Eugene, 2015-10-28
@r4tz52

Generating a sound of a given frequency in C#

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question