On Wed, Mar 03, 2021 at 10:20:20PM +0900, Akihiko Odaki wrote:
> 2021年3月3日(水) 18:27 Gerd Hoffmann :
> >
> > Hi,
> >
> > > status = coreaudio_get_voice(&core->outputDeviceID);
> > > if (status != kAudioHardwareNoError) {
> > > -coreaudio_logerr2 (status, typ,
> > > -
2021年3月3日(水) 18:27 Gerd Hoffmann :
>
> Hi,
>
> > status = coreaudio_get_voice(&core->outputDeviceID);
> > if (status != kAudioHardwareNoError) {
> > -coreaudio_logerr2 (status, typ,
> > - "Could not get default output Device\n");
> > -return -1;
Hi,
> status = coreaudio_get_voice(&core->outputDeviceID);
> if (status != kAudioHardwareNoError) {
> -coreaudio_logerr2 (status, typ,
> - "Could not get default output Device\n");
> -return -1;
> +coreaudio_playback_logerr (status,
> +
An output device change can occur when plugging or unplugging an
earphone.
Signed-off-by: Akihiko Odaki
---
audio/coreaudio.c | 327 +-
1 file changed, 236 insertions(+), 91 deletions(-)
diff --git a/audio/coreaudio.c b/audio/coreaudio.c
index c5f0b61