Questions tagged [audioqueueservices]

Audio Queue Services provides a straightforward, low overhead way to record and play audio in OS X. Starting with OS X v10.5, it is the recommended technology to use for adding basic recording or playback features to your Mac app.

Audio Queue Services Programming Guide

172 questions
0
votes
1 answer

Convert code of "AudioStreamPacketDescription" into swift3.2

I'm converting Audio Queues Service code into swift3.2 but i got stuck here.i don't know how to write this line of code in swift updated version. I want to convert below code into swift 3.2 player.packetDescs =…
user7956625
0
votes
1 answer

iOS AudioQueues: glitches in audio float-stream

I am logging the stream of floats coming from the microphone (should be silence) I have setup audio queues with a buffer size of 256 floats A typical buffer looks like this: PACKET 0.004791, …
P i
  • 29,020
  • 36
  • 159
  • 267
0
votes
0 answers

AudioQueue doesn't enqueue buffer

I'm writing a little c based synthesizer. I'm having a problem when I try to enqueue buffers with the function AudioQueueEnqueueBuffer. In different executions i'm having different errors, like malloc-error of the buffer or BAD_ISTRUCTION or…
pino
  • 25
  • 8
0
votes
0 answers

AudioFileOpenUrl doesn't work

I'm using Apple's Audio Queue for playing an audio file on my computer. I've followed their guide, but I'm having a problem when I ask to the user to insert the absolute-path to research the audio file. Here there's my code. I hope you can help…
0
votes
1 answer

How Audio Queue stop current playing task and start play another AudioQueueBuffer immediately?

NEED: I have an audio queue and two AudioQueueBuffer. How can I play NO.2 AudioQueueBuffer immediately in the midst of NO.1 AudioQueueBuffer playing. I have tried AudioQueueStop or AudioQueueReset. it take a long time to process, NO.2…
ooOlly
  • 1,997
  • 21
  • 31
0
votes
1 answer

AudioQueueStart But no voice

import Foundation import AudioToolbox class AudioPlay { //setting buffer num static let knumberBuffers = 3 var aqData = AQPlayerState.init() //A custom structure for a playback audio queue class AQPlayerState { var…
zhujian
  • 1
  • 2
0
votes
2 answers

AudioQueueServices - AudioQueueNewInput

(AudioQueueNewInput( &mRecordFormat, MyInputBufferHandler, this /* userData */, NULL /* run loop…
awlcs
  • 606
  • 2
  • 13
  • 31
0
votes
1 answer

Audio Queue Services - recording

I'm trying to record an audio stream which is streamed using matt gallagher's audio classes. So far, I've searched the web as I do not really understand the audio queue services. I'm quite new to iphone programming, and audio queue services is…
awlcs
  • 606
  • 2
  • 13
  • 31
0
votes
2 answers

Using libmms and audioqueue

I've been playing with libmms and iPhone for a bit, and I have managed to connect and read from the mms stream, but after this I'm at a loss of how to send the data from mmsx_read into the AudioQueue, I assume it will have to be using the…
janko
  • 1
  • 1
0
votes
1 answer

how to fill AudioBuffer with Float in Swift

I making an app that uses EZAudio library, and it have to get data from the microphone and store it in variable (i already have done this) : func microphone(microphone: EZMicrophone!, hasAudioReceived buffer:…
KostiaZzz
  • 170
  • 14
0
votes
0 answers

Convert audio data to audio buffer and play with AudioQueue

For my special scenario, i want to read an audio file< MP3, AAC...> by buffer, like 512Kb for each buffer, and convert this buffer to PCM data and pass to AudioQueue's play callback. Just like when recording, we have callback like this: static…
The Bird
  • 397
  • 2
  • 8
  • 19
0
votes
1 answer

AudioQueue bytes to ffmpeg understandable WAV format

I got the recorded AudioQueueBufferRef buffer using the following code. NSData *data = [NSData dataWithBytes:inBuffer->mAudioData length:inBuffer->mAudioDataByteSize]; And then, I send the data to my server. However, FFMPEG isn't able to read that…
moeseth
  • 1,855
  • 5
  • 23
  • 47
0
votes
1 answer

CoreAudio AudioQueue PCM is fast and choppy

I simply cannot figure out this issue. The audio from the code below is playing extremely fast and choppy. There's one other issue on SO that is similar, but it is for variable bitrate and not applicable. Some possible answers on other sites…
0
votes
1 answer

How to check whether a music is playing or paused in AudioQueue

I am using AudioQueueStart for playing music and AudioQueuePause for pausing. Is there any way in AudioQueues to check whether the music is playing or not, I want to Pause music only if it is playing.
Chandan Shetty SP
  • 5,087
  • 6
  • 42
  • 63
0
votes
1 answer

Record Sound in Cocoa Example Please!

I've been scouring both this site and the net in general for an example cocoa app that uses QTKit or Audio Queue and actually works. Unfortunately, I can't find anything that fits the above description. All I want to do is get a simple audio…