¡@

Home 

2014/10/15 ¤U¤È 10:04:12

iphone Programming Glossary: audioqueue

Play Alert Sound (Vibrate) While AudioQueue is Recording

http://stackoverflow.com/questions/1183366/play-alert-sound-vibrate-while-audioqueue-is-recording

Alert Sound Vibrate While AudioQueue is Recording It seems that it's not possible to play an alert sound AudioServicesPlayAlertSound kSystemSoundID_Vibrate.. It seems that it's not possible to play an alert sound AudioServicesPlayAlertSound kSystemSoundID_Vibrate while the AudioQueue is being used to record audio. Is that correct Maybe I'm doing something wrong. Is there a way to do this other than pausing..

iPhone Sound: Adjust speed of playback of audio file while playing

http://stackoverflow.com/questions/1191313/iphone-sound-adjust-speed-of-playback-of-audio-file-while-playing

Reading audio buffer data with AudioQueue

http://stackoverflow.com/questions/1248060/reading-audio-buffer-data-with-audioqueue

audio buffer data with AudioQueue I am attempting to read audio data via AudioQueue. When I do so I can verify that the bit depth of the file is 16 bit... audio buffer data with AudioQueue I am attempting to read audio data via AudioQueue. When I do so I can verify that the bit depth of the file is 16 bit. But when I get the actual sample data I'm only seeing..

How do I synthesize sounds with CoreAudio on iPhone/Mac

http://stackoverflow.com/questions/1361148/how-do-i-synthesize-sounds-with-coreaudio-on-iphone-mac

440Hz iphone objective c cocoa core audio share improve this question What you want to do it probably to setup an AudioQueue. It allows you to fill a buffer with synthesized audio data in a callback. You would setup the AudeioQueue to run in a new.. You would setup the AudeioQueue to run in a new thread as such #define BUFFER_SIZE 16384 #define BUFFER_COUNT 3 static AudioQueueRef audioQueue void SetupAudioQueue OSStatus err noErr Setup the audio device. AudioStreamBasicDescription deviceFormat deviceFormat.mSampleRate.. run in a new thread as such #define BUFFER_SIZE 16384 #define BUFFER_COUNT 3 static AudioQueueRef audioQueue void SetupAudioQueue OSStatus err noErr Setup the audio device. AudioStreamBasicDescription deviceFormat deviceFormat.mSampleRate 44100 deviceFormat.mFormatID..

where to start with audio synthesis on iPhone

http://stackoverflow.com/questions/2067267/where-to-start-with-audio-synthesis-on-iphone

approach I should consider iphone audio share improve this question I'm also investigating this. I think the AudioQueue API is probably the way to go. Here's as far as I got seems to work okay. File BleepMachine.h BleepMachine.h WgHeroPrototype.. Andy Buchanan. All rights reserved. #include AudioToolbox AudioToolbox.h Class to implement sound playback using the AudioQueue API's Currently just supports playing two sine wave tones one per stereo channel. The sound data is liitle endian signed.. sound data is liitle endian signed 16 bit @ 44.1KHz class BleepMachine static void staticQueueCallback void userData AudioQueueRef outAQ AudioQueueBufferRef outBuffer BleepMachine pThis reinterpret_cast BleepMachine userData pThis queueCallback outAQ..

Changing the volume without a volume slider on an iphone

http://stackoverflow.com/questions/3458965/changing-the-volume-without-a-volume-slider-on-an-iphone

where someFloat is a value between 0.0 and 1.0. If it's a SystemSound object you can't control volume. If it's an AudioQueue you'd change it via AudioQueueSetParameter Like I said.. it all depends on how you are playing the sound. Update based on.. between 0.0 and 1.0. If it's a SystemSound object you can't control volume. If it's an AudioQueue you'd change it via AudioQueueSetParameter Like I said.. it all depends on how you are playing the sound. Update based on comment For that particular example.. file void setVolume float Level Add to the AudioStreamer.m file void setVolume float Level OSStatus errorMsg AudioQueueSetParameter audioQueue kAudioQueueParam_Volume Level if errorMsg NSLog @ AudioQueueSetParameter returned d when setting..

Audio Processing: Playing with volume level

http://stackoverflow.com/questions/3982723/audio-processing-playing-with-volume-level

through Sam's answer regarding some audio basics I decided to expand the question with another alternative. Can I use AudioQueue services to record existing sound file which is in the bundle to another file and play with the volume level with the help.. One to determine the sample with the greatest amplitude. Then another to actually apply your computed gain. Using AudioQueue services just to get access to the volume property is serious serious overkill. UPDATE In your updated code you're multiplying..

AVAssetReader and Audio Queue streaming problem

http://stackoverflow.com/questions/4763598/avassetreader-and-audio-queue-streaming-problem

Below is the callback function code that I have used. This callback function 'works' when it is not called by the AudioQueue callback. static void HandleOutputBuffer void playerStateH AudioQueueRef inAQ AudioQueueBufferRef inBuffer AQPlayerState.. function 'works' when it is not called by the AudioQueue callback. static void HandleOutputBuffer void playerStateH AudioQueueRef inAQ AudioQueueBufferRef inBuffer AQPlayerState pplayerState AQPlayerState playerStateH if pplayerState mIsRunning 0.. when it is not called by the AudioQueue callback. static void HandleOutputBuffer void playerStateH AudioQueueRef inAQ AudioQueueBufferRef inBuffer AQPlayerState pplayerState AQPlayerState playerStateH if pplayerState mIsRunning 0 return UInt32 bytesToRead..

Troubleshooting “AudioQueueObject::IONodeConnection::_AcquireHardwareCodec: failed ('hwiu')” when playing sound file

http://stackoverflow.com/questions/5246707/troubleshooting-audioqueueobjectionodeconnection-acquirehardwarecodec-fail

&ldquo AudioQueueObject IONodeConnection _AcquireHardwareCodec failed 'hwiu' &rdquo when playing sound file Error 21 46 56.148 AudioQueueServer.. IONodeConnection _AcquireHardwareCodec failed 'hwiu' &rdquo when playing sound file Error 21 46 56.148 AudioQueueServer AudioQueueObject IONodeConnection _AcquireHardwareCodec failed 'hwiu' That's an error I am getting when playing a.. _AcquireHardwareCodec failed 'hwiu' &rdquo when playing sound file Error 21 46 56.148 AudioQueueServer AudioQueueObject IONodeConnection _AcquireHardwareCodec failed 'hwiu' That's an error I am getting when playing a sound file. Is this..

AudioQueue how to find out playback length of queued data

http://stackoverflow.com/questions/7375309/audioqueue-how-to-find-out-playback-length-of-queued-data

how to find out playback length of queued data I am using AudioQueue to stream some song my question is how can i tell.. how to find out playback length of queued data I am using AudioQueue to stream some song my question is how can i tell the length of playback of already queued buffers I want to stream two..

Why might my AudioQueueOutputCallback not be called?

http://stackoverflow.com/questions/7575670/why-might-my-audioqueueoutputcallback-not-be-called

might my AudioQueueOutputCallback not be called I'm using the Audio Queue Services API to play audio streamed from a server over a TCP socket.. on an iPhone. I can play the buffers that were filled from the socket connection I just cannot seem to make my AudioQueue call my AudioQueueOutputCallback function and I'm out of ideas. High level design Data is passed to the player from the.. I can play the buffers that were filled from the socket connection I just cannot seem to make my AudioQueue call my AudioQueueOutputCallback function and I'm out of ideas. High level design Data is passed to the player from the socket connection and..

iOS Stream Audio from one iOS Device to Another

http://stackoverflow.com/questions/8357514/ios-stream-audio-from-one-ios-device-to-another

Reference Reference.html http developer.apple.com library mac #documentation MusicAudio Conceptual AudioQueueProgrammingGuide Introduction Introduction.html I am just lost. Information overload. I've implemented Cocoa With Love's.. and AQPlayer.mm . The controller handles things like starting and stopping AQPlayer . AQPlayer represents an AudioQueue . Look closely at AQPlayer AQBufferCallback . That's the callback method that is invoked when the queue wants more data... to the audio queue That's the call back method set up in AQPlayer void AQPlayer AQBufferCallback void inUserData AudioQueueRef inAQ AudioQueueBufferRef inCompleteAQBuffer The method that we'll use to add part of our data to the audio queue is..

How do I synthesize sounds with CoreAudio on iPhone/Mac

http://stackoverflow.com/questions/1361148/how-do-i-synthesize-sounds-with-coreaudio-on-iphone-mac

the AudeioQueue to run in a new thread as such #define BUFFER_SIZE 16384 #define BUFFER_COUNT 3 static AudioQueueRef audioQueue void SetupAudioQueue OSStatus err noErr Setup the audio device. AudioStreamBasicDescription deviceFormat deviceFormat.mSampleRate.. device. err AudioQueueNewOutput deviceFormat AudioQueueCallback NULL CFRunLoopGetCurrent kCFRunLoopCommonModes 0 audioQueue Allocate buffers for the AudioQueue and pre fill them. for int i 0 i BUFFER_COUNT i AudioQueueBufferRef mBuffer err AudioQueueAllocateBuffer.. AudioQueue and pre fill them. for int i 0 i BUFFER_COUNT i AudioQueueBufferRef mBuffer err AudioQueueAllocateBuffer audioQueue BUFFER_SIZE mBuffer if err noErr break AudioQueueCallback NULL audioQueue mBuffer if err noErr err AudioQueueStart audioQueue..

iPhone audio analysis

http://stackoverflow.com/questions/2110009/iphone-audio-analysis

improve this question Look in the Audio Queue framework . This is what I use to get a high water mark AudioQueueRef audioQueue Imagine this is correctly set up UInt32 dataSize sizeof AudioQueueLevelMeterState recordFormat.mChannelsPerFrame AudioQueueLevelMeterState.. levels AudioQueueLevelMeterState malloc dataSize float channelAvg 0 OSStatus rc AudioQueueGetProperty audioQueue kAudioQueueProperty_CurrentLevelMeter levels dataSize if rc NSLog @ AudioQueueGetProperty CurrentLevelMeter returned @ rc..

Changing the volume without a volume slider on an iphone

http://stackoverflow.com/questions/3458965/changing-the-volume-without-a-volume-slider-on-an-iphone

float Level Add to the AudioStreamer.m file void setVolume float Level OSStatus errorMsg AudioQueueSetParameter audioQueue kAudioQueueParam_Volume Level if errorMsg NSLog @ AudioQueueSetParameter returned d when setting the volume. errorMsg Add..

Why might my AudioQueueOutputCallback not be called?

http://stackoverflow.com/questions/7575670/why-might-my-audioqueueoutputcallback-not-be-called

AudioQueueRef inAudioQueue AudioQueueBufferRef inAudioQueueBuffer printf callback n MyAudioPlayer inUserData audioQueue inAudioQueue didAquireBufferForReuse inAudioQueueBuffer I create the AudioQueue like this OSStatus status 0 status AudioQueueNewOutput.. _streamDescription AQBufferCallback Doesn't work... self CFRunLoopGetCurrent kCFRunLoopCommonModes 0 _audioQueue if status This is not called... NSLog @ Error creating new audio output queue @ MyAudioPlayer stringForOSStatus status return.. localBuffer kAQBufferSize aqBuffer mAudioDataByteSize kAQBufferSize OSStatus status AudioQueueEnqueueBuffer _audioQueue aqBuffer 0 NULL if status This is also not called. NSLog @ Error enqueueing buffer @ MyAudioPlayer stringForOSStatus status..