ebiten/audio/internal/oboe
Hajime Hoshi 2edb286ec4 audio/internal/oboe: Bug fix: Use-after-free of a player
In theory, a closed player was used unexpectedly by these steps:

  1. Suspend is called by switching the application
  2. Player_Close is called
  3. Resume is called by reactivating the application

The set of GetPlayersToResume() had a closed player and the trying to
play it caused the use-after-free problem.

This changes fixes the issue by removing the player from the set of
GetPlayerToResume() when closing it. iOS version already has the logic
to remove the player appropriately.

Updates #1645
Closes #1646
2021-05-16 02:21:00 +09:00
..
binding_android.cpp audio/internal/oboe: Bug fix: Use-after-free of a player 2021-05-16 02:21:00 +09:00
binding_android.go audio/internal/readerdriver: Refactoring 2021-05-16 02:08:33 +09:00
binding_android.h audio/internal/readerdriver: Refactoring: Remove player.state 2021-05-05 15:32:53 +09:00
gen.go audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
generate.go audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
LICENSE-oboe audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_aaudio_AAudioLoader_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_aaudio_AAudioLoader_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_aaudio_AudioStreamAAudio_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_aaudio_AudioStreamAAudio_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_AudioClock_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_AudioSourceCaller_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_AudioSourceCaller_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_AudioStream_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_AudioStreamBuilder_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_DataConversionFlowGraph_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_DataConversionFlowGraph_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_FilterAudioStream_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_FilterAudioStream_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_FixedBlockAdapter_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_FixedBlockAdapter_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_FixedBlockReader_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_FixedBlockReader_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_FixedBlockWriter_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_FixedBlockWriter_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_LatencyTuner_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_MonotonicCounter_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_OboeDebug_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_QuirksManager_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_QuirksManager_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_SourceFloatCaller_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_SourceFloatCaller_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_SourceI16Caller_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_SourceI16Caller_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_StabilizedCallback_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_Trace_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_Trace_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_Utilities_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_common_Version_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_fifo_FifoBuffer_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_fifo_FifoBuffer_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_fifo_FifoController_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_fifo_FifoController_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_fifo_FifoControllerBase_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_fifo_FifoControllerBase_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_fifo_FifoControllerIndirect_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_fifo_FifoControllerIndirect_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_ChannelCountConverter_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_ChannelCountConverter_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_ClipToRange_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_ClipToRange_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_FlowGraphNode_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_FlowGraphNode_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_ManyToMultiConverter_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_ManyToMultiConverter_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_MonoToMultiConverter_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_MonoToMultiConverter_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_MultiToMonoConverter_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_MultiToMonoConverter_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_RampLinear_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_RampLinear_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_HyperbolicCosineWindow_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_IntegerRatio_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_IntegerRatio_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_KaiserWindow_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_LinearResampler_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_LinearResampler_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_MultiChannelResampler_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_MultiChannelResampler_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_PolyphaseResampler_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_PolyphaseResampler_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_PolyphaseResamplerMono_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_PolyphaseResamplerMono_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_PolyphaseResamplerStereo_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_PolyphaseResamplerStereo_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_SincResampler_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_SincResampler_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_SincResamplerStereo_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_resampler_SincResamplerStereo_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SampleRateConverter_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SampleRateConverter_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SinkFloat_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SinkFloat_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SinkI16_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SinkI16_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SinkI24_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SinkI24_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SourceFloat_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SourceFloat_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SourceI16_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SourceI16_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SourceI24_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_flowgraph_SourceI24_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_AudioStream_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_AudioStreamBase_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_AudioStreamBuilder_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_AudioStreamCallback_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_Definitions_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_LatencyTuner_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_Oboe_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_ResultWithValue_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_StabilizedCallback_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_Utilities_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_oboe_Version_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_AudioInputStreamOpenSLES_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_AudioInputStreamOpenSLES_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_AudioOutputStreamOpenSLES_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_AudioOutputStreamOpenSLES_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_AudioStreamBuffered_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_AudioStreamBuffered_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_AudioStreamOpenSLES_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_AudioStreamOpenSLES_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_EngineOpenSLES_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_EngineOpenSLES_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_OpenSLESUtilities_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_OpenSLESUtilities_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_OutputMixerOpenSLES_android.cpp audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
oboe_opensles_OutputMixerOpenSLES_android.h audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
README-oboe.md audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00