portaudio

Visual studio 2010, PortAudio DLL compile and linking issues, C++

眉间皱痕 提交于 2019-12-10 00:30:51
问题 Hi stack overflow users. Error description: For a mini project I have decided to use the portaudio library (I use Windows 7 64-bit and C++): http://portaudio.com/ Before even using the library I had to build a .DLL file in another Visual Studio Project and then link the output to my own visual studio 2010 project (32-bit). I tried to use this simple piece of code: #include <iostream> #include <portaudio.h> using namespace std; void main() { cout << "Hello World!" << endl; cout << "Welcome to

c++ Using PortAudio in Windows with Qt

我的未来我决定 提交于 2019-12-08 13:48:37
问题 I have managed to compile PortAudio on windows using MSYS. this process has created 2 files: libportaudio-2.dll and libportaudio.dll.a Now i want to link the libraries in QtCreator, but i can not since it requires a .lib file. If anybody have experience of compiling and using libraries with MSYS under windows, your input is appreciated. (Note: they are compiled using MindGW compiler. I dont want to compile it with Microsoft Visual Studio, since then i will have to compile QT) 回答1: to solve

PortAudio library not found by sounddevice during runtime [WINDOWS]

依然范特西╮ 提交于 2019-12-08 12:35:22
问题 PROBLEM: Similar to this question for Linux, I'm running into a OSError: PortAudio library not found after I package my app with pyinstaller and execute the .exe . (Note, I do not encounter any issues when running my unpackaged app via shell. This only happens when I package it with pyinstaller). Although installing portaudio via package manager seems to work for Linux, this doesn't seem to be an option for Windows, since the sounddevice docs say, "If you are using Mac OS X or Windows, the

Portaudio and ALSA: “Cannot obtain info for CTL elem”

Deadly 提交于 2019-12-08 07:12:51
问题 I am trying to use Portaudio. For a start, I'd like to run the tests programs included with the distribution. After I copied the header portaudio.h and libportaudio.a to the test directory, I managed to compile successfully patest_sine8.c with: $ g++ -o test1 patest_sine8.c -lrt -lm -lpthread -lasound libportaudio.a When I run the program the output is the following: PortAudio Test: output signed 8 bit sine wave. ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'AC97 2ch

Can't Build PortAudio - “LNK1104: cannot open file 'ksguid.lib'”

☆樱花仙子☆ 提交于 2019-12-07 13:55:46
问题 I'm a beginner in C/C++, so please bear with me. I'm trying to build the PortAudio library so I can use it in one of my project. I'm using VS 2013, the preset project-file for builds had to be converted to my version. I've been able to fix all the many problems that occurred on my long way here, except one: LINK : fatal error LNK1104: cannot open file 'ksguid.lib' I've seen this and this site. All of them address exactly this problem, yet non of them has been able to solve it. Here are the

Having trouble installing PyAudio for Python3 on Mint

痞子三分冷 提交于 2019-12-07 03:30:46
问题 I was following the instructions here and I'm having trouble getting the installation to work. Basically, the first part works fine. I downloaded portaudio, followed the instructions, and it all seemed to work. However, when I tried python3 setup.py install , I got an error. The error came from the /src/_portaudiomodule.c file, and it said that "The file Python.h could not be found". I don't really understand what's going on because there was no Python.h file when I extracted the PyAudio

Special characters in audio devices name : Pyaudio

天涯浪子 提交于 2019-12-06 10:33:51
I'm currently facing a hard problem. I need to use Pyaudio on a french windows environnement and the name of the audio devices contains é or è by default. This is the error I get when a special character is present: u=self.p.get_device_info_by_index(e) File "C:\Python27\lib\site-packages\pyaudio.py", line 977, in get_device_info_ by_index pa.get_device_info(device_index) File "C:\Python27\lib\site-packages\pyaudio.py", line 987, in _make_device_inf o_dictionary print device_info.name UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 13: invalid continuation byte This wouldn't

Building PortAudio and PyAudio on Mac running Snow Leopard (arch issues)

孤街浪徒 提交于 2019-12-06 05:43:46
问题 I'd like to tell you what I've tried and then I'd really welcome any comments you can provide on how I can get PortAudio and PyAudio setup correctly! I've tried installing the stable and svn releases of PortAudio from their website for my Core 2 Duo MacBook Pro running Snow Leopard. The stable release has a sizeof error that can be fixed(?), but the daily svn release installs fine with ./configure && make && make install (so this is what I'm using). The tests are compiled properly and I can

Getting IOError: [Errno Input overflowed] -9981 when setting PyAudio Stream input and output to True

醉酒当歌 提交于 2019-12-05 19:15:22
问题 I'm trying to run the following code (an example from the PyAudio documentation) on my Mac (OS 10.7.2): import pyaudio import sys chunk = 1024 FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 44100 RECORD_SECONDS = 5 p = pyaudio.PyAudio() stream = p.open(format = FORMAT, channels = CHANNELS, rate = RATE, input = True, output = True, frames_per_buffer = chunk) print "* recording" for i in range(0, 44100 / chunk * RECORD_SECONDS): data = stream.read(chunk) stream.write(data, chunk) print "* done"

Error while compiling PortAudio examples

守給你的承諾、 提交于 2019-12-05 16:04:48
(I am on Ubuntu) I am trying to run the PortAudio examples, but getting many errors (mentioned below). I have placed the header file portaudio.h in the directory of the program. I have no idea about it. I think it is linker error. Please help! /tmp/cc5EbTlT.o: In function main': paex_record.c:(.text+0x37e): undefined reference to Pa_Initialize' paex_record.c:(.text+0x397): undefined reference to Pa_GetDefaultInputDevice' paex_record.c:(.text+0x3de): undefined reference to Pa_GetDeviceInfo' paex_record.c:(.text+0x436): undefined reference to Pa_OpenStream' paex_record.c:(.text+0x45a): undefined