Questions tagged [rtaudio]

RtAudio is a set of C++ classes that provide a common API (Application Programming Interface) for realtime audio input/output across Linux, Macintosh OS-X and Windows operating systems. RtAudio significantly simplifies the process of interacting with computer audio hardware.

RtAudio is a set of C++ classes that provide a common API (Application Programming Interface) for realtime audio input/output across Linux, Macintosh OS-X and Windows operating systems. RtAudio significantly simplifies the process of interacting with computer audio hardware. It was designed with the following objectives:

  • object-oriented C++ design
  • simple, common API across all supported platforms
  • only one source and one header file for easy inclusion in programming projects
  • allow simultaneous multi-api support
  • support dynamic connection of devices
  • provide extensive audio device parameter control
  • allow audio device capability probing
  • automatic internal conversion for data format, channel number compensation, (de)interleaving, and byte-swapping

RtAudio incorporates the concept of audio streams, which represent audio output (playback) and/or input (recording). Available audio devices and their capabilities can be enumerated and then specified when opening a stream. Where applicable, multiple API support can be compiled and a particular API specified when creating an RtAudio instance. See the API Notes section for information specific to each of the supported audio APIs.

http://www.music.mcgill.ca/~gary/rtaudio/

29 questions
0
votes
1 answer

Making RtAudio use jack for audio capture

I'm trying to use RtAudio in Linux. To start, I've compiled it with jack enabled: $ ./configure --with-alsa --with-jack $ make $ make install Then I found a small example to test RtAudio out: #include "RtAudio.h" #include #include…
Mehran
  • 15,593
  • 27
  • 122
  • 221
0
votes
1 answer

No .lib and .dll found, but .h is there

So I'm trying to use RtAudio to read microphone input in real time, but the problem is that when I download the .zip file, I found the header files but there is no .lib files or dll, and I need them Link with my project, where are they? I'm a…
Bernardo Olisan
  • 665
  • 7
  • 20
0
votes
0 answers

Why do changes to buffer in thread not be reflected in buffer on mainThread?

I'm trying to receive audio from the soundcard via RtAudio Api. It has a callback function that gets called once the audio has enough bytes received and the user can then copy the data to a custom object. This custom object can be sent to the…
kangaro0
  • 185
  • 1
  • 11
0
votes
1 answer

Why is WASAPI so much slower than ASIO?

I measured the round-trip latency of RtAudio Duplex Mode example by an oscillograph. The result on the average as blow, ASIO 15ms WASAPI 50ms Why is WASAPI so much slower? All documents on the Internet says them have the same performance. OS:…
0
votes
1 answer

How to play audio stream over UDP?

I writing a Windows application, It receives audio data from an Android app, I use UDP to transfer data over LAN, and use RtAudio to play audio-stream. Every UDP package payload is a audio sample array, in 32k/16bit/pcm format. When data size is 576…
0
votes
1 answer

RtAudio + Qt : duplex not working with RME Fireface on Linux

This is my first post on Stackoverflow, I hope I'm doing this right. I'm new to C++. I've been playing with RtAudio and Qt (on linux, desktop and raspberry pi). Backend is ALSA. Audio out went fine both on my desktop computer (RME Fireface UCX in…
0
votes
1 answer

Link RtAudio into another project using CMakeLists

I'm trying to use RtAudio to generate streaming audio. However, when I try to include "RtAudio.h" file, the program always complain something weird. My project structure looks…
Arlene Fu
  • 11
  • 5
0
votes
1 answer

RT audio Mac error g++ compiling error

Having problems getting rt audio to compile using simple application #include "RtAudio.h" int main() { RtAudio *audio = 0; audio = new RtAudio; delete audio; return 0; } to compile g++ -Wall -D__MACOSX_CORE__ -o probe…
0
votes
0 answers

How to compile or use a library that downloaded online

I am unfamiliar with C++ but I got a project that needed to deal with it. I need to use a library available online, RtAudio, and of course I need to import it in my program. My question is, how do I use/do it? Here is my understanding on…
Henry
  • 9
0
votes
1 answer

Synchronizing OpenGL with RtAudio (or Port Audio)

I need to synchronize some draws with OpenGL with a Metronome. The Metronome is build with libPD, and played with RtAudio. Both things are working well (separately), but i need to move an object (a triangle) with the pulse a metronome. The…
Luis
  • 433
  • 1
  • 5
  • 11
0
votes
1 answer

C++ Undefined reference to defined constant

I've read through a number of questions on StackOverflow about undefined references but none seem to be specifically about an undefined reference to a constant that is defined in an included header. Apologies if I've missed a valid answer…
Paul Masri-Stone
  • 2,843
  • 3
  • 29
  • 51
0
votes
1 answer

Can a RtAudio software record output audio of an Android OS Device, in an unrooted user case?

I liked to know if a RtAudio software can record output audio of an Android OS Device, in an unrooted user case. RtAudio is available at: http://www.music.mcgill.ca/~gary/rtaudio/index.html . By the way, I liked to know if a RtAudio software can…
0
votes
1 answer

pocketsphinx simple example works in basic c test but not when included in c++ project

i am trying to build a project with pocketsphinx. I am at early state and i first tried a simple example from the docs in a single main.c which reads a file and detects words: works. Now i have tried to include this to my c++ SDL project reading…
Hellagot
  • 235
  • 2
  • 13
-2
votes
1 answer

Generating a sine wave: incorrect output

I'm trying to generate a simple sine wave in rtaudio to verify I understand what's going on. However, it is coming out wrong. I have a global float timec, and a callback invoked with openStream which should fill a buffer with samples. float freq =…
Ren Zhou
  • 11
  • 1
  • 2
1
2