File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
android/src/main/java/com/cloudwebrtc/webrtc/record Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
import org .webrtc .audio .JavaAudioDeviceModule .SamplesReadyCallback ;
7
7
import org .webrtc .audio .JavaAudioDeviceModule .AudioSamples ;
8
8
9
- import java .util .HashMap ;
9
+ import java .util .concurrent . ConcurrentHashMap ;
10
10
11
11
/** JavaAudioDeviceModule allows attaching samples callback only on building
12
12
* We don't want to instantiate VideoFileRenderer and codecs at this step
@@ -17,7 +17,7 @@ public class AudioSamplesInterceptor implements SamplesReadyCallback {
17
17
private int _id ;
18
18
private static final String TAG = "AudioSamplesInterceptor" ;
19
19
@ SuppressLint ("UseSparseArrays" )
20
- protected final HashMap <Integer , SamplesReadyCallback > callbacks = new HashMap <>();
20
+ protected final ConcurrentHashMap <Integer , SamplesReadyCallback > callbacks = new ConcurrentHashMap <>();
21
21
22
22
public AudioSamplesInterceptor () {
23
23
this ._id = id ++;
You can’t perform that action at this time.
0 commit comments