Questions tagged [asio]

ASIO stands for Audio Stream Input/Output, a digital audio protocol. For questions about the Boost.Asio C++ library for asynchronous I/O, use the [boost-asio] tag to avoid ambiguity.

Audio Stream Input/Output is a low-latency protocol for sending and receiving audio data from sound interfaces. It was developed by Steinberg, which offers a licensed ASIO SDK among other audio software technology such as VST plugins.


Please note that in order to avoid ambiguity, questions about Boost.Asio should be tagged with as discussed on meta.

479 questions
0
votes
1 answer

UDP packet bytes read granularity?

I have UDP client and server apps, and custom protocol over UDP. Each "protocol packet" contains header with size of payload, and payload by itself . Each "protocol packet" not exceed MTU size, with expectation of lack of fragmentation . Currently…
user1503944
  • 387
  • 2
  • 16
0
votes
1 answer

How to connect to elasticsearch using boost asio?

I'm trying to write a C++ snippet to make a POST to an elasticsearch server. The server is running on ip 172.20.1.160, and I can PUT data using curl, like in the Elasticsearch tutorial: curl -XPUT…
Spacemoose
  • 3,856
  • 1
  • 27
  • 48
0
votes
1 answer

Boost Socket Async_Connect Access Violation

below is a small snippet that is throwing an access violation when running. I am using Visual Studio 2015 and boost 1.60.0 and when calling m_socket.async_connect(end_point, yieldw[ec]); an access violation is occurring in a boost file…
0
votes
1 answer

Static_initialization_and_distruction error when linking Boost.Asio in CLion

I am approaching to this set of libraries cause I need to create a personal project for my university exam and I'd like to do something with networking features. I already got a book about this specific library but now i can't link this in my…
Baffo rasta
  • 320
  • 1
  • 4
  • 17
0
votes
1 answer

Boost Asio not properly reading

In my code I have both a client and server socket set up to simulate interaction between the two using asio. Unfortunately, something is failing in my read() and I'm not entirely sure what I'm not passing in properly and why. When I run it, it'll…
user4858185
0
votes
1 answer

NAudio Asio Unsupported sourceStream format

I read everything I can about NAudio but I can't get a solution here. The project is a VS C# Windows form. Testing with NAudio and ASIO4All is successful with mono and stereo wav files but trying to play a 8 ch. (44k/16bits) wav file always give an…
espressif
  • 5
  • 3
0
votes
1 answer

ASIO Device/Driver Properties

Using NAudio & C# in a console application; the following code lists the ASIO drivers installed on my PC: using System; using NAudio.Wave; code snippet: var asioDriverNames = AsioOut.GetDriverNames(); foreach (string driverName in…
Majickal
  • 176
  • 2
  • 16
0
votes
1 answer

Strange errors on Windows with Asio

I have a cross-platform project that uses the boostless version of Asio. On OSX I use autotools to build the library then include it on my project: exec_program(COMMAND "./autogen.sh" WORKING_DIRECTORY ${asio_SOURCE_DIR}/asio) exec_program(COMMAND…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
0
votes
1 answer

NAudio ASIO Playback wav

I'm using NAudio and ASIO to play a sequence of wav files. I need to use ASIO because the audio card supports only that. I was able to play each wav in this way: waveRead = new WaveFileReader(completeStreamMS); //completeStreamMS is a…
nikez
  • 11
  • 2
0
votes
2 answers

Generating a Sine Sweep in C#

I want to generate a sine sweep in C# where I am able to define the start frequency, end frequency, and the duration of the sweep. I've looked at sound libraries such as DirectSound and ASIO that play a buffer. But I haven't been able to figure out…
Snooze
  • 499
  • 1
  • 5
  • 14
0
votes
0 answers

HTTP client with keep-alive

I am trying to implement an HTTP client using asio (the standalone version of boost::asio) for educational purposes. My problem is with keep-alives (at the HTTP level). If the server still has the socket open, I want to just send data over it. If…
Baruch
  • 20,590
  • 28
  • 126
  • 201
0
votes
1 answer

Multicast to specific interface on macOS using Boost ASIO

I have a piece of code which sends out a multicast message on every ethernet network interface on a Mac (because the devices which respond could be on wifi or a wired ethernet connection). This code has been working fine for quite a while : for(int…
Redeye
  • 1,582
  • 1
  • 14
  • 22
0
votes
1 answer

Naudio Asio Record and Playback simultaneously on multiple channels

I have an usb audio board that supports asio driver with 4 inputs and 4 outputs. I want to send and receive data simultaneously. But currently I can receive and send data only to one channels at a time. I cannot figure out how to set it in asioOut…
Adrian Stanculescu
  • 1,040
  • 2
  • 13
  • 21
0
votes
1 answer

Play 32 bit audio with NAudio and ASIO

I try to play a 32 bit byte array via naudio and ASIO. But i can not get it running. The output signal is distorted. The same converting method works fine with 32 bit for naudio and WASAPI. Sample convert: var newAmp = (int)Math.Round(amp *…
JoP
  • 1
  • 1
0
votes
1 answer

configurate multichannel ASIO4ALL v2.13

So I have a device (logilink sound box ua0099) with 6 channels or 8. It doesn't have ASIO. I installed ASIO4ALL. But I don't know what to do to have acces to each channel to choose a specific channel and play a sound on it. This is my program in…