@imcooder/opuslib 2.4.4 → 2.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -177,7 +177,7 @@ class AudioProcessor(private val config: AudioConfig) {
177
177
  while (pendingSamples.size >= samplesPerFrame) {
178
178
  val frameData = ShortArray(samplesPerFrame)
179
179
  for (i in 0 until samplesPerFrame) {
180
- frameData[i] = pendingSamples.removeFirst()
180
+ frameData[i] = pendingSamples.removeAt(0)
181
181
  }
182
182
 
183
183
  // Debug PCM file
@@ -244,7 +244,7 @@ class AudioProcessor(private val config: AudioConfig) {
244
244
  while (pendingSamples.size >= samplesPerFrame) {
245
245
  val frameData = ShortArray(samplesPerFrame)
246
246
  for (i in 0 until samplesPerFrame) {
247
- frameData[i] = pendingSamples.removeFirst()
247
+ frameData[i] = pendingSamples.removeAt(0)
248
248
  }
249
249
 
250
250
  val opusData = try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imcooder/opuslib",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "Opus 1.6 audio encoding for React Native and Expo with audio level metering and lifecycle events. Forked from Scdales/opuslib.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",