coreaudio: Notify error in coreaudio_init_out
PATCH v2 1/1 coreaudio: Notify error in coreaudio_init_out
Otherwise, the audio subsystem tries to use the voice and eventually aborts due to the maximum number of samples in the buffer is not set.
Signed-off-by Akihiko Odaki <[email protected]>
Reviewed-by Christian Schoenebeck <[email protected]>
--- audio/coreaudio.c | 2 ++ 1 file changed, 2 insertions(+)
audio/coreaudio.c +2 -0
@@ -604,6 +604,8 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct audsettings *as,coreaudio_playback_logerr (status,"Could not remove voice property change listener\n" ); } + +return -1 ; }return 0 ;
Signature · 1 line
2.32.0 (Apple Git-132)
Quoted 9 lines · Akihiko Odaki
Otherwise, the audio subsystem tries to use the voice and eventually aborts due to the maximum number of samples in the buffer is not set.
Signed-off-by Akihiko Odaki <[email protected]>Reviewed-by Christian Schoenebeck <[email protected]>--- audio/coreaudio.c | 2 ++ 1 file changed, 2 insertions(+)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 15 lines · Akihiko Odaki
Otherwise, the audio subsystem tries to use the voice and eventually aborts due to the maximum number of samples in the buffer is not set.
Signed-off-by Akihiko Odaki <[email protected]>Reviewed-by Christian Schoenebeck <[email protected]>--- audio/coreaudio.c | 2 ++ 1 file changed, 2 insertions(+)audio/coreaudio.c +0
-0
audio/coreaudio.c static int coreaudio_init_out(HWVoiceOut *hw, struct audsettings *as, · line 611
Quoted 8 lines
audio/coreaudio.c +2
-0@@ -604,6 +604,8 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct audsettings *as,coreaudio_playback_logerr (status,"Could not remove voice property change listener\n" ); } + +return -1 ; }return 0 ;
Merged as commit bd7819de22.