sbooth/SFBAudioEngine — Issue #12: Error running SFBAudioEngine on iPhone
Author: Monika-Tapadiya
Created: 2012-02-06 13:37:54+00:00
State: open

Hello ,
I have issue in running this application on iphone device . It is working fine for iphone simulator but crashing on iphone 4.3 os .
I added flac file in application's resources and it is crashing at below code in AudioPlayer.cpp

/ Store the decoded audio
if(0 != framesDecoded) {

LOGGER_INFO("com.widevision.Test", "Frames->>>>" <Store(bufferList, framesDecoded, startingFrameNumber + startTime);
if(kCARingBufferError_OK != result)
LOGGER_ERR("com.wv.Test", "CARingBuffer::Store failed: " << result);

LOGGER_INFO("", "Frames--------" <: OpenOutput
Feb 6 14:54:40 iPhone SimplePlayer-iOS[1852] : Resetting output
Feb 6 14:54:40 iPhone SimplePlayer-iOS[1852] : Enqueuing "file://localhost/var/mobile/Applications/DC638145-12AC-47CD-8727-BCDA8AA91086/SimplePlayer-iOS.app/Track.flac"
Feb 6 14:54:40 iPhone SimplePlayer-iOS[1852] : AudioUnitSetProperty (19, kAudioUnitScope_Input) failed: -10851
Feb 6 14:54:42 iPhone SimplePlayer-iOS[1852] : Decoding starting for "file://localhost/var/mobile/Applications/DC638145-12AC-47CD-8727-BCDA8AA91086/SimplePlayer-iOS.app/Track.flac"
Feb 6 14:54:42 iPhone SimplePlayer-iOS[1852] : Decoder format: 2 ch, 44100 Hz, 'lpcm' (0x0000002c) 16-bit little-endian signed integer, deinterleaved
Feb 6 14:54:42 iPhone SimplePlayer-iOS[1852] : Decoder channel layout: kAudioChannelLayoutTag_Stereo (0x00650002)
Feb 6 14:54:42 iPhone SimplePlayer-iOS[1852] : StartOutput
Feb 6 14:54:42 iPhone SimplePlayer-iOS[1852] : Frames->>>>0
Feb 6 14:54:42 iPhone SimplePlayer-iOS[1852] : Frames--------0

Printing Frames -- >> 0

Help Please !!!