Beyond a player: CarPlay and MFI Hearing Aids - Zonble
===
{%hackmd FGRWt1UuTFKk0wSbGgg-SA %}
> 請從這裡開始
av player 在 Apple watch!
MFI Hearing Aids(助聽器)
## CarPlay
iOS9開始
2018 wwdc session CarPlay 資訊少
CarPlayer Audio and Navigation Apps
Getting Start With CarPlay
`Playablecontent`
1. Get an entitlement
2.
3. Get your self into the mine area
### experie nce
only a tree structure to browse contents
no interface customsize
only callback block when uesr want to play an item
### entitlement
contacting wwdr and interview at wwdc.
### test device
support testing for CarPlay and Android Auto.
用家用CarPlay比HomePod更Happy
### Implementing CarPlay
MPPlayableContentManager
AVAudioSession要設定category先
[carplay doc](https://developer.apple.com/documentation/carplay)
https://developer.apple.com/videos/play/wwdc2018/213/
MpRemoteCommandcenter react diff on tv and carplay
### MPRemoteCommandCenter
treat iphone as ipod
KKCarPlayManager on github
https://github.com/KKBOX/KKCarPlayManager
### Core Audio
AudiGraph --> C API
from input to output
parse-> .mp3 to .pcm->
Mixer->eq->reverb-> remote io->
## MFI heading aids
siemens product: nx/px
too many frame to process
for the sake of bty power, 4096->1024
https://developer.apple.com/documentation/avfoundation/avaudiosession/1616589-setpreferrediobufferduration
助聽器會需要更大的buffer
[Zonble Book Ch 9 audio](https://zonble.gitbooks.io/kkbox-ios-dev/content/audio_apis/)
###### tags:`iPlayground2019`