react-native-audio-api 0.6.4-nightly-527099d-20250704 → 0.6.4-nightly-ff577c8-20250704

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.
@@ -132,10 +132,13 @@ std::shared_ptr<AudioBus> AudioDecoder::decodeWithPCMInBase64(
132
132
 
133
133
  auto audioBus =
134
134
  std::make_shared<AudioBus>(outputFrames, numChannels_, sampleRate_);
135
- auto channelData = audioBus->getChannel(0)->getData();
135
+ auto leftChannelData = audioBus->getChannel(0)->getData();
136
+ auto rightChannelData = audioBus->getChannel(1)->getData();
136
137
 
137
138
  for (size_t i = 0; i < outputFrames; ++i) {
138
- channelData[i] = int16ToFloat(buffer[i]);
139
+ auto sample = int16ToFloat(buffer[i]);
140
+ leftChannelData[i] = sample;
141
+ rightChannelData[i] = sample;
139
142
  }
140
143
 
141
144
  return audioBus;
@@ -111,10 +111,13 @@ std::shared_ptr<AudioBus> AudioDecoder::decodeWithPCMInBase64(const std::string
111
111
  auto outputFrames = buffer.size();
112
112
 
113
113
  auto audioBus = std::make_shared<AudioBus>(outputFrames, numChannels_, sampleRate_);
114
- auto channelData = audioBus->getChannel(0)->getData();
114
+ auto leftChannelData = audioBus->getChannel(0)->getData();
115
+ auto rightChannelData = audioBus->getChannel(1)->getData();
115
116
 
116
117
  for (size_t i = 0; i < outputFrames; ++i) {
117
- channelData[i] = int16ToFloat(buffer[i]);
118
+ auto sample = int16ToFloat(buffer[i]);
119
+ leftChannelData[i] = sample;
120
+ rightChannelData[i] = sample;
118
121
  }
119
122
 
120
123
  return audioBus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-audio-api",
3
- "version": "0.6.4-nightly-527099d-20250704",
3
+ "version": "0.6.4-nightly-ff577c8-20250704",
4
4
  "description": "react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification",
5
5
  "bin": {
6
6
  "setup-rn-audio-api-web": "./scripts/setup-rn-audio-api-web.js"