@cesdk/engine 1.63.0-nightly.20251015 → 1.63.0-nightly.20251017

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.
package/index.d.ts CHANGED
@@ -1132,6 +1132,7 @@ export declare type AssetTransformPreset = AssetFixedAspectRatio | AssetFreeAspe
1132
1132
  * - 'duration': The duration in seconds of the final audio.
1133
1133
  * - 'sampleRate': The sample rate of the exported audio.
1134
1134
  * - 'numberOfChannels': The number of channels of the exported audio.
1135
+ * - 'skipEncoding': Skip encoding (audio data will be returned immediately even if not compatible with target MIME type).
1135
1136
  *
1136
1137
  * @public
1137
1138
  */
@@ -1170,6 +1171,16 @@ export declare type AudioExportOptions = {
1170
1171
  * @defaultValue 2
1171
1172
  */
1172
1173
  numberOfChannels?: number;
1174
+ /**
1175
+ * Skip encoding (audio data will be returned immediately even if not compatible with target MIME type).
1176
+ *
1177
+ * @defaultValue false
1178
+ */
1179
+ skipEncoding?: boolean;
1180
+ /**
1181
+ * An AbortSignal that can be used to cancel the audio export operation.
1182
+ */
1183
+ abortSignal?: AbortSignal;
1173
1184
  };
1174
1185
 
1175
1186
  /**
@@ -1178,10 +1189,11 @@ export declare type AudioExportOptions = {
1178
1189
  * @categoryDescription Audio MIME Type
1179
1190
  * Defines the possible audio MIME types used in the editor.
1180
1191
  * - 'audio/wav': WAV audio format.
1192
+ * - 'audio/mp4': MP4 audio format.
1181
1193
  *
1182
1194
  * @public
1183
1195
  */
1184
- export declare type AudioMimeType = Extract<MimeType_2, 'audio/wav'>;
1196
+ export declare type AudioMimeType = Extract<MimeType_2, 'audio/wav' | 'audio/mp4'>;
1185
1197
 
1186
1198
  /**
1187
1199
  * Information about a single audio track from a video.
@@ -1475,10 +1487,10 @@ export declare class BlockAPI {
1475
1487
  * console.log(`Audio export progress: ${Math.round((encodedFrames / totalFrames) * 100)}%`);
1476
1488
  * };
1477
1489
  * const audioOptions = { duration: 10 };
1478
- * const audioBlob = await engine.block.unstable_exportAudio(audioBlock, MimeType.Wav, progressTracker, audioOptions);
1490
+ * const audioBlob = await engine.block.exportAudio(audioBlock, MimeType.Wav, progressTracker, audioOptions);
1479
1491
  * ```
1480
1492
  */
1481
- unstable_exportAudio(handle: DesignBlockId, options?: AudioExportOptions): Promise<Blob>;
1493
+ exportAudio(handle: DesignBlockId, options?: AudioExportOptions): Promise<Blob>;
1482
1494
  /**
1483
1495
  * Loads blocks from a serialized string.
1484
1496
  *
@@ -7464,6 +7476,7 @@ export declare function _mergeSources(...sources: Array<(listener: _Listener<any
7464
7476
  * - 'image/webp': WebP image format.
7465
7477
  * - 'image/x-tga': TGA image format.
7466
7478
  * - 'audio/wav': WAV audio format.
7479
+ * - 'audio/mp4': MP4 audio format.
7467
7480
  * - 'video/mp4': MP4 video format.
7468
7481
  * - 'video/quicktime': QuickTime video format.
7469
7482
  * - 'application/octet-stream': Binary data format.
@@ -7479,6 +7492,7 @@ declare const MimeType_2: {
7479
7492
  readonly WebP: "image/webp";
7480
7493
  readonly Tga: "image/x-tga";
7481
7494
  readonly Wav: "audio/wav";
7495
+ readonly Mp4Audio: "audio/mp4";
7482
7496
  readonly Mp4: "video/mp4";
7483
7497
  readonly QuickTime: "video/quicktime";
7484
7498
  readonly Binary: "application/octet-stream";
@@ -7496,6 +7510,7 @@ declare const MimeType_2: {
7496
7510
  * - 'image/webp': WebP image format.
7497
7511
  * - 'image/x-tga': TGA image format.
7498
7512
  * - 'audio/wav': WAV audio format.
7513
+ * - 'audio/mp4': MP4 audio format.
7499
7514
  * - 'video/mp4': MP4 video format.
7500
7515
  * - 'video/quicktime': QuickTime video format.
7501
7516
  * - 'application/octet-stream': Binary data format.
@@ -8941,6 +8956,7 @@ export declare type TypefaceDefinition = {
8941
8956
  export declare interface _UBQExportAudioOptions {
8942
8957
  sampleRate: number;
8943
8958
  numberOfChannels: number;
8959
+ skipEncoding?: boolean;
8944
8960
  }
8945
8961
 
8946
8962
  /**