react-native-audio-api 0.6.1-rc.3 → 0.6.1-rc.4

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.
@@ -129,7 +129,7 @@ void AudioBufferQueueSourceNode::sendOnPositionChangedEvent() {
129
129
 
130
130
  void AudioBufferQueueSourceNode::setOnPositionChangedInterval(int interval) {
131
131
  onPositionChangedInterval_ = static_cast<int>(
132
- context_->getSampleRate() * 1000 / static_cast<float>(interval));
132
+ context_->getSampleRate() * static_cast<float>(interval) / 1000);
133
133
  }
134
134
 
135
135
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-audio-api",
3
- "version": "0.6.1-rc.3",
3
+ "version": "0.6.1-rc.4",
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"