libpd

How to interleave a non-interleaved AudioBufferList inside a render callback?

孤街醉人 提交于 2021-02-11 06:53:34
问题 I'm working on a project that involves streaming audio from an AVPlayer video player object into libpd using an MTAudioProcessingTap . For the process loop of the tap, I used PdAudioUnit s render callback code as a guide; but I realized recently that the audio format expected by libpd is not the same as the audio coming from the tap — that is, the tap is providing two buffers of non-interleaved audio data in the incoming AudioBufferList, whereas libpd expects interleaved samples. I don't

How Do I Get Reliable Timing for my Audio App?

荒凉一梦 提交于 2019-12-23 16:06:39
问题 I have an audio app in which all of the sound generating work is accomplished by pure data (using libpd). I've coded a special sequencer in swift which controls the start/stop playback of multiple sequences, played by the synth engines in pure data. Until now, I've completely avoided using Core Audio or AVFoundation for any aspect of my app, because I know nothing about them, and they both seem to require C or Objective C coding, which I know nearly nothing about. However, I've been told from

Using libpd in Android Studio

允我心安 提交于 2019-12-21 04:59:09
问题 So I've got the git repo from https://github.com/libpd/pd-for-android and created a new blank project in Android Studio for my "AmazingSynthesizer". I used the "Import Module" wizard to import PdCore and AndroidMidi. Then, right clicked on "app" to view my "Module Settings". Under dependencies I've added PdCore as a module dependency. Also, I added AndroidMidi as a module dependency for "PdCore". So far, that seemed right to my. My app's build.gradle includes the libraries and I can import