@coderline/alphatab 1.4.1 → 1.4.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.4.1 (, build 13)
2
+ * alphaTab v1.4.4 (, build 17)
3
3
  *
4
4
  * Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -24332,10 +24332,10 @@ class Hydra {
24332
24332
  // 6.1 Sample Data Format in the smpl Sub-chunk
24333
24333
  // The smpl sub-chunk, if present, contains one or more "samples" of digital audio information in the form
24334
24334
  // of linearly coded sixteen bit, signed, little endian (least significant byte first) words.
24335
- let shorts = new Int16Array(sampleBytes.buffer);
24336
- samples = new Float32Array(shorts.length);
24337
- for (let i = 0; i < shorts.length; i++) {
24338
- samples[i] = shorts[i] / 32767;
24335
+ const dataView = new DataView(sampleBytes.buffer, sampleBytes.byteOffset, sampleBytes.length);
24336
+ samples = new Float32Array(sampleBytes.length / 2);
24337
+ for (let i = 0; i < samples.length; i++) {
24338
+ samples[i] = dataView.getInt16(i * 2, true) / 32767;
24339
24339
  }
24340
24340
  }
24341
24341
  this._sampleCache.set(key, samples);
@@ -52161,8 +52161,8 @@ class CoreSettings {
52161
52161
  // </auto-generated>
52162
52162
  class VersionInfo {
52163
52163
  }
52164
- VersionInfo.version = '1.4.1';
52165
- VersionInfo.date = '2025-03-12T11:23:03.224Z';
52164
+ VersionInfo.version = '1.4.4';
52165
+ VersionInfo.date = '2025-04-27T21:49:43.401Z';
52166
52166
 
52167
52167
  var index$4 = /*#__PURE__*/Object.freeze({
52168
52168
  __proto__: null,
package/dist/alphaTab.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.4.1 (, build 13)
2
+ * alphaTab v1.4.4 (, build 17)
3
3
  *
4
4
  * Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -24338,10 +24338,10 @@
24338
24338
  // 6.1 Sample Data Format in the smpl Sub-chunk
24339
24339
  // The smpl sub-chunk, if present, contains one or more "samples" of digital audio information in the form
24340
24340
  // of linearly coded sixteen bit, signed, little endian (least significant byte first) words.
24341
- let shorts = new Int16Array(sampleBytes.buffer);
24342
- samples = new Float32Array(shorts.length);
24343
- for (let i = 0; i < shorts.length; i++) {
24344
- samples[i] = shorts[i] / 32767;
24341
+ const dataView = new DataView(sampleBytes.buffer, sampleBytes.byteOffset, sampleBytes.length);
24342
+ samples = new Float32Array(sampleBytes.length / 2);
24343
+ for (let i = 0; i < samples.length; i++) {
24344
+ samples[i] = dataView.getInt16(i * 2, true) / 32767;
24345
24345
  }
24346
24346
  }
24347
24347
  this._sampleCache.set(key, samples);
@@ -52167,8 +52167,8 @@
52167
52167
  // </auto-generated>
52168
52168
  class VersionInfo {
52169
52169
  }
52170
- VersionInfo.version = '1.4.1';
52171
- VersionInfo.date = '2025-03-12T11:23:03.224Z';
52170
+ VersionInfo.version = '1.4.4';
52171
+ VersionInfo.date = '2025-04-27T21:49:43.401Z';
52172
52172
 
52173
52173
  var index$4 = /*#__PURE__*/Object.freeze({
52174
52174
  __proto__: null,