Re: [PATCH 2/2] coreaudio: Handle output device change

2021-03-11 Thread Gerd Hoffmann
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, > > > -

Re: [PATCH 2/2] coreaudio: Handle output device change

2021-03-03 Thread Akihiko Odaki
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;

Re: [PATCH 2/2] coreaudio: Handle output device change

2021-03-03 Thread 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; > +coreaudio_playback_logerr (status, > +

[PATCH 2/2] coreaudio: Handle output device change

2021-03-01 Thread Akihiko Odaki
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