eddieringle / portaudio Goto Github PK
View Code? Open in Web Editor NEWUnofficial Git mirror of PortAudio
License: Other
Unofficial Git mirror of PortAudio
License: Other
I followed portaudio documentation http://portaudio.com/docs/v19-doxydocs/compile_mac_coreaudio.html, but it's not integrating in iOS.
I think it's integrating in Mac OS. portaudio will support iOS applications?
I am doing integration from past 2 weeks still i didn't get.
Can anyone tell me please?
line of code is
ring_buffer_size_t elementsToWrite = min(elementsWriteable, (ring_buffer_size_t)(framesPerBuffer * NUM_CHANNELS));
error is
src/paex_record.c: In function ‘int recordCallback(const void_, void_, long unsigned int, const PaStreamCallbackTimeInfo_, PaStreamCallbackFlags, void_)’:
src/paex_record.c:209:117: error: ‘min’ was not declared in this scope
src/paex_record.c: In function ‘int playCallback(const void_, void_, long unsigned int, const PaStreamCallbackTimeInfo_, PaStreamCallbackFlags, void_)’:
src/paex_record.c:234:113: error: ‘min’ was not declared in this scope
Actually, replay itself works, and the issue is only when the playing stops to replay the same stream again. I'm writing headless D-BUS service for playing WAV file.
API is quite simple as:
When the first play comes it runs the following steps
Pa_Initialize(...)
sf_open(...)
Pa_OpenDefaultStream(...)
Pa_SetStreamFinishedCallback(..)
Pa_StartStream(...)
And the system starts playing.
When playing finished I'm not closing the stream and waiting for the next command. If the user asks me to replay the same file again.
I'm making sf_seek to the start and calling Pa_StartStream on the same stream and getting PaError = 'Stream is not stopped'.Actually, it's stopped. I have checked it in the finished callback.
If I will close the stream and open it again everything works like a charm.
Does it mean that I need to close the stream after each file play?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.