Jump to content

Problema audio Cocos2d


Pari05
 Share

1 post in this topic

Recommended Posts

Salve forum, ho un problema con Xcode e Cocos2d

 

anche tentando di far partire il programma default (quello già scritto alla creazione del progetto Cocos2d) ottengo un errore, inerente all'audio, credo non trovi la periferica

 

ecco il log:

 

cocos2d: Cocos2D-iPhone version 3.1.0 beta

cocos2d: compiled with Profiling Support: NO

cocos2d: OS version: 7.1 (0x07010000)

cocos2d: 32 bit runtime

cocos2d: GL_VENDOR:   Apple Computer, Inc.

cocos2d: GL_RENDERER: Apple Software Renderer

cocos2d: GL_VERSION:  OpenGL ES 2.0 APPLE-9.4.3

cocos2d: GL_MAX_TEXTURE_SIZE: 4096

cocos2d: GL_MAX_TEXTURE_UNITS: 8

cocos2d: GL_MAX_SAMPLES: 4

cocos2d: GL supports PVRTC: YES

cocos2d: GL supports BGRA8888 textures: YES

cocos2d: GL supports NPOT textures: YES

cocos2d: GL supports discard_framebuffer: YES

cocos2d: GL supports shareable VAO: NO

2014-10-12 16:47:16.876 qwe[3466:3a03] 16:47:16.876 ERROR:     88: Error '!obj' trying to fetch default input device's sample rate

2014-10-12 16:47:16.877 qwe[3466:3a03] 16:47:16.877 ERROR:     90: Error getting audio input device sample rate: '!obj'

2014-10-12 16:47:16.878 qwe[3466:3a03] 16:47:16.878 WARNING:   219: The input device is 0x0; '(null)'

2014-10-12 16:47:16.878 qwe[3466:3a03] 16:47:16.878 WARNING:   223: The output device is 0x2f; 'AppleHDAEngineOutputDP:0,1,0,1,0:0:{2D4C-0650-00000000}'

2014-10-12 16:47:16.878 qwe[3466:3a03] 16:47:16.878 ERROR:     398: error '!obj'

2014-10-12 16:47:16.879 qwe[3466:1303] 16:47:16.879 ERROR:     180: EXCEPTION thrown ('!dev'): -

2014-10-12 16:47:16.878 qwe[3466:60b] 16:47:16.878 ERROR:     >aurioc> 783: failed: -10851 (enable 2, outf< 2 ch,  44100 Hz, Int16, inter> inf< 2 ch,      0 Hz, Int16, inter>)

2014-10-12 16:47:16.879 qwe[3466:60b] OAL Error: +[ALWrapper openDevice:]: Could not open device (null)

2014-10-12 16:47:16.879 qwe[3466:60b] OAL Error: -[ALDevice initWithDeviceSpecifier:]: <ALDevice: 0x9c2ccd0>: Failed to init device (null). Returning nil

2014-10-12 16:47:16.918 qwe[3466:60b] OAL Error: +[ALWrapper closeDevice:]: Invalid Value (error code 0x0000a004)

2014-10-12 16:47:16.918 qwe[3466:60b] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.049875 seconds ago. Doing nothing.

2014-10-12 16:47:16.918 qwe[3466:60b] OAL Error: -[ALContext initOnDevice:attributes:]: <ALContext: 0x9c2cec0>: Failed to init because device was nil. Returning nil

2014-10-12 16:47:16.919 qwe[3466:60b] OAL Error: -[ALSource initOnContext:]: <ALSource: 0x9b27890>: Failed to init because context was nil. Returning nil

2014-10-12 16:47:16.919 qwe[3466:60b] OAL Error: +[ALWrapper sourceStop:]: Invalid Value (error code 0x0000a003)

2014-10-12 16:47:16.919 qwe[3466:60b] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.051126 seconds ago. Doing nothing.

2014-10-12 16:47:16.919 qwe[3466:60b] OAL Error: +[ALWrapper sourcei:parameter:value:]: Invalid Value (error code 0x0000a003)

2014-10-12 16:47:16.922 qwe[3466:60b] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.053841 seconds ago. Doing nothing.

2014-10-12 16:47:16.922 qwe[3466:60b] OAL Error: +[ALWrapper deleteSources:numSources:]: Invalid Operation (error code 0x0000a004)

2014-10-12 16:47:16.923 qwe[3466:60b] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.054623 seconds ago. Doing nothing.

2014-10-12 16:47:16.923 qwe[3466:60b] OAL Error: -[ALSource initOnContext:]: <ALSource: 0x9b27890>: Failed to init because context was nil. Returning nil

2014-10-12 16:47:16.923 qwe[3466:60b] OAL Error: +[ALWrapper sourceStop:]: Invalid Value (error code 0x0000a003)

2014-10-12 16:47:16.924 qwe[3466:60b] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.055547 seconds ago. Doing nothing.

2014-10-12 16:47:16.924 qwe[3466:60b] OAL Error: +[ALWrapper sourcei:parameter:value:]: Invalid Value (error code 0x0000a003)

2014-10-12 16:47:16.936 qwe[3466:60b] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.068144 seconds ago. Doing nothing.

2014-10-12 16:47:16.937 qwe[3466:60b] OAL Error: +[ALWrapper deleteSources:numSources:]: Invalid Operation (error code 0x0000a004)

2014-10-12 16:47:16.937 qwe[3466:60b] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.068958 seconds ago. Doing nothing.

2014-10-12 16:47:16.939 qwe[3466:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'

*** First throw call stack:

(

0   CoreFoundation                      0x02dc81e4 __exceptionPreprocess + 180

1   libobjc.A.dylib                     0x0247a8e5 objc_exception_throw + 44

2   CoreFoundation                      0x02d7aabc -[__NSArrayM insertObject:atIndex:] + 844

3   CoreFoundation                      0x02d7a760 -[__NSArrayM addObject:] + 64

4   qwe                                 0x001273a0 -[ALSoundSourcePool addSource:] + 128

5   qwe                                 0x00022d2f -[ALChannelSource addSource:] + 1183

6   qwe                                 0x0001af3d -[ALChannelSource initWithSources:] + 397

7   qwe                                 0x000288cf -[OALSimpleAudio initCommon:] + 175

8   qwe                                 0x00028d31 -[OALSimpleAudio initWithSources:] + 353

9   qwe                                 0x000287e5 -[OALSimpleAudio init] + 69

10  qwe                                 0x000282d1 +[OALSimpleAudio sharedInstanceSynch] + 129

11  qwe                                 0x0002837d +[OALSimpleAudio sharedInstance] + 45

12  qwe                                 0x0011bb59 -[CCAppDelegate setupCocos2dWithOptions:] + 4009

13  qwe                                 0x001414f2 -[AppDelegate application:didFinishLaunchingWithOptions:] + 258

14  UIKit                               0x0045c14f -[uIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309

15  UIKit                               0x0045caa1 -[uIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1810

16  UIKit                               0x00461667 -[uIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824

17  UIKit                               0x00475f92 -[uIApplication handleEvent:withNewEvent:] + 3517

18  UIKit                               0x00476555 -[uIApplication sendEvent:] + 85

19  UIKit                               0x00463250 _UIApplicationHandleEvent + 683

20  GraphicsServices                    0x03b3ef02 _PurpleEventCallback + 776

21  GraphicsServices                    0x03b3ea0d PurpleEventCallback + 46

22  CoreFoundation                      0x02d43ca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53

23  CoreFoundation                      0x02d439db __CFRunLoopDoSource1 + 523

24  CoreFoundation                      0x02d6e68c __CFRunLoopRun + 2156

25  CoreFoundation                      0x02d6d9d3 CFRunLoopRunSpecific + 467

26  CoreFoundation                      0x02d6d7eb CFRunLoopRunInMode + 123

27  UIKit                               0x00460d9c -[uIApplication _run] + 840

28  UIKit                               0x00462f9b UIApplicationMain + 1225

29  qwe                                 0x00145b9c main + 92

30  qwe                                 0x00002725 start + 53

)

libc++abi.dylib: terminating with uncaught exception of type NSException

(lldb) 

 

tutti errori relativo all'audio, anche se ovviamente fuori dal cocos2d l'audio funziona.

 

 

questo non succede invece debuggando il programma default di SpriteKit

 

qualcuno ha idea sul  farsi?  grazie :)

Link to comment
Share on other sites

 Share

×
×
  • Create New...