質問編集履歴

2

微調整

2017/07/19 06:02

投稿

kaorimanabe
kaorimanabe

スコア13

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,7 @@
1
1
  apiの音声ファイルをiOSで再生したいのですが、
2
2
  下記のコードだと、API上のmp3ファイルは再生できるものの、API上のcafファイルは再生できません。解決方法を教えていただけませんでしょうか?
3
3
 
4
+ ※ログにはエラーメッセージが吐き出されません。cafを再生しようとするとsumilatorが落ちて、debag navigatorが開きます。AutdioFileStreamPackets(void* unsigned int, unsigned int, void const*, AudioStreamPacketDescription*)という部分がハイライトされており、あるthreadにEXC_BAD_ACCESSと表示されています。
4
5
  ※ API上(server上)のcafファイルを手動で手元にダウンロードし、bundleディレクトリに配置した場合は再生できました。
5
6
 
6
7
  - code

1

微調整

2017/07/19 06:02

投稿

kaorimanabe
kaorimanabe

スコア13

title CHANGED
File without changes
body CHANGED
@@ -23,12 +23,4 @@
23
23
  self.view.layer.addSublayer(playerLayer)
24
24
  player.play()
25
25
  }
26
- ```
27
-
28
- - error message
29
- ```
30
- objc[1614]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x119118cc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x118f2f6f0). One of the two will be used. Which one is undefined.
31
- Notification access accepted !
32
- Error Domain=NSCocoaErrorDomain Code=3010 "remote notifications are not supported in the simulator" UserInfo={NSLocalizedDescription=remote notifications are not supported in the simulator}
33
-
34
26
  ```