Questions tagged [novocaine]

An analgesic for high-performance audio on the iPhone, iPad and Mac OS X.

http://alexbw.github.com/novocaine/

An analgesic for high-performance audio on the iPhone, iPad and Mac OS X.

21 questions
5
votes
0 answers

iOS - AudioOutputUnitStop results in app freeze and warning

sometimes the execution of AudioOutputUnitStop(inputUnit) results in the app to be freezed for about 10/15 seconds and the following console message: WARNING: [0x3b58918c] AURemoteIO.cpp:1225: Stop: AURemoteIO::Stop: error 0x10004003 calling…
DAN
  • 919
  • 1
  • 6
  • 23
4
votes
1 answer

AudioConverterRef sample rate conversion (iOS)

I write a voip app that uses "novocaine" library for recording and playback of sound. I set sample rate as 8kHz. This sample rate is set in novocaine in AudioStreamBasicDescription of audio unit and as audio session property…
Yardu
  • 41
  • 2
3
votes
1 answer

10 Band Equaliser using NOVOCAINE

Im trying to build a 10 band Equaliser using NOVOCAINE. I copied the Equaliser.mm's code in viewWillAppear, and added 9 more Sliders in the xib file, and changed IBAction code too this : -(void)HPFSliderChanged:(UISlider *)sender { PEQ[sender.tag -…
Omer Obaid
  • 416
  • 1
  • 6
  • 24
3
votes
2 answers

Core-Plot: calling reloadData on Plot or Graph from within block doesn't work

I want to be able to update / reload a ScatterPlot on iOS Devices during runtime. To be specific, I record Audio input, do some funny stuff and put the result as a simple NSNumber value into an array. Whenever that happens, reloadData is called on…
Aerius
  • 588
  • 5
  • 24
2
votes
0 answers

iOS - Simple Resampling audio function for iOS

I am using Novocaine for recording audio, for an audio processing iOS app. I have a custom audio filter, which I apply after recording. Now I want the Audio to be resampled at 8kHz. So basically I need a simple module/function in which I pass the…
Muhammad Sadiq Alvi
  • 1,099
  • 1
  • 13
  • 23
2
votes
1 answer

Writing and reading an audio file with Extended Audio File

I m using ExtAudioFileWriteAsync to write an audio file while using device recording, but once I get recording finished I try to read it with ExtAudioFileRead function and samples I get are not same samples I m writing... Anyone know why this could…
M Penades
  • 1,572
  • 13
  • 24
2
votes
2 answers

Low latency input/output AudioQueue

I have two iOS AudioQueues - one input that feeds samples directly to one output. Unfortunately, there is an echo effect that is quite noticeable :( Is it possible to do low latency audio using AudioQueues or do I really need to use AudioUnits? (I…
Jens Schwarzer
  • 2,840
  • 1
  • 22
  • 35
2
votes
1 answer

Using Novocaine and AVCam together

My question is really simple. I want to record a movie using the AVCam sample project from Apple. While recording, I'd like to filter the audio channel to extract a bunch of information I will use later (I found Novocaine+NVDSP to be the best…
marzapower
  • 5,531
  • 7
  • 38
  • 76
2
votes
0 answers

How to get the decibels at specific frequency using Novocaine

Currently i'm doing this using AurioTouch and getting sound from microphone. But I'm having trouble with buffering a long song... Novocaine seems to handle audioplayback very well and has everything i need except that i cant get out how to retrieve…
Ahmed Ahmedov
  • 592
  • 12
  • 29
1
vote
1 answer

Audio buffer error when headphones plugged in

I'm using Novocaine to play audio within an app, and I'm consistently getting a crash after the following steps: Open app on iPhone with no headphones plugged in Begin audio playback in app Plug in headphones The app crashes on the line…
Rogare
  • 3,234
  • 3
  • 27
  • 50
1
vote
1 answer

Frequency analysis - Novocaine and playthrough by mic: how to disable speaker output?

I'm using Novocaine for frequency detection - and it works fine. I highly appreciate the Novocaine framework, as it is performant and easy to use. Anyhow, there's only one issue: capturing the sound from the iPhone/iPad microphone, I want to disable…
Ulrich Vormbrock
  • 369
  • 2
  • 13
1
vote
1 answer

injecting a pcm s16be array into novocaine audiomanager

To @alexbw and friends, First of all thanks for this great piece of code. I have pcm data (signed 16 bit big endian) in a byte array and I want to play it with Novocaine AudioManager setOutputBlock. I understand I first need to convert to a float…
1
vote
1 answer

iOS App asks for microphone access, even for kAudioSessionCategory_MediaPlayback

I'm using the Novocaine library from: https://github.com/alexbw/novocaine to playback wav files. I know that iOS has its own media player API however its limitation is in the preset equalizers. I need to use Novocaine because I am using NVDSP…
1
vote
2 answers

Play and stop a sound sample on iOS (Novocaine)

I'm trying to make a simple Drumpad app. The app needs to be super fast and play the sound with as little latency as possible. The premise is store audio samples in an array and each one is played when you hit a pad. The catch is that some pads are…
Dave Chenell
  • 601
  • 1
  • 8
  • 23
1
vote
1 answer

On iPhone5 got 3 input channels (not 1)

On iPhone5 (and probably iPad mini) this code returns 3 input channels UInt32 numInputChannels; // Check the number of input channels. UInt32 size = sizeof(numInputChannels); UInt32…
Rubycon
  • 18,156
  • 10
  • 49
  • 70
1
2