Skip to content

Commit 1f71671

Browse files
Bashamegasaschanaz
andauthored
Adds AudioEncoderConfig's aac (#2306)
Co-authored-by: saschanaz <[email protected]>
1 parent b795214 commit 1f71671

File tree

9 files changed

+48
-1
lines changed

9 files changed

+48
-1
lines changed

baselines/dom.generated.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
/// Window APIs
66
/////////////////////////////
77

8+
interface AacEncoderConfig {
9+
format?: AacBitstreamFormat;
10+
}
11+
812
interface AddEventListenerOptions extends EventListenerOptions {
913
once?: boolean;
1014
passive?: boolean;
@@ -146,6 +150,7 @@ interface AudioDecoderSupport {
146150
}
147151

148152
interface AudioEncoderConfig {
153+
aac?: AacEncoderConfig;
149154
bitrate?: number;
150155
bitrateMode?: BitrateMode;
151156
codec: string;
@@ -42419,6 +42424,7 @@ type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
4241942424
type VibratePattern = number | number[];
4242042425
type WindowProxy = Window;
4242142426
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
42427+
type AacBitstreamFormat = "aac" | "adts";
4242242428
type AlignSetting = "center" | "end" | "left" | "right" | "start";
4242342429
type AlphaOption = "discard" | "keep";
4242442430
type AnimationPlayState = "finished" | "idle" | "paused" | "running";

baselines/ts5.5/dom.generated.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
/// Window APIs
33
/////////////////////////////
44

5+
interface AacEncoderConfig {
6+
format?: AacBitstreamFormat;
7+
}
8+
59
interface AddEventListenerOptions extends EventListenerOptions {
610
once?: boolean;
711
passive?: boolean;
@@ -143,6 +147,7 @@ interface AudioDecoderSupport {
143147
}
144148

145149
interface AudioEncoderConfig {
150+
aac?: AacEncoderConfig;
146151
bitrate?: number;
147152
bitrateMode?: BitrateMode;
148153
codec: string;
@@ -42393,6 +42398,7 @@ type Uint32List = Uint32Array | GLuint[];
4239342398
type VibratePattern = number | number[];
4239442399
type WindowProxy = Window;
4239542400
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
42401+
type AacBitstreamFormat = "aac" | "adts";
4239642402
type AlignSetting = "center" | "end" | "left" | "right" | "start";
4239742403
type AlphaOption = "discard" | "keep";
4239842404
type AnimationPlayState = "finished" | "idle" | "paused" | "running";

baselines/ts5.5/webworker.generated.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
/// Worker APIs
33
/////////////////////////////
44

5+
interface AacEncoderConfig {
6+
format?: AacBitstreamFormat;
7+
}
8+
59
interface AddEventListenerOptions extends EventListenerOptions {
610
once?: boolean;
711
passive?: boolean;
@@ -82,6 +86,7 @@ interface AudioDecoderSupport {
8286
}
8387

8488
interface AudioEncoderConfig {
89+
aac?: AacEncoderConfig;
8590
bitrate?: number;
8691
bitrateMode?: BitrateMode;
8792
codec: string;
@@ -13449,6 +13454,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHan
1344913454
type URLPatternInput = string | URLPatternInit;
1345013455
type Uint32List = Uint32Array | GLuint[];
1345113456
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
13457+
type AacBitstreamFormat = "aac" | "adts";
1345213458
type AlphaOption = "discard" | "keep";
1345313459
type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
1345413460
type AvcBitstreamFormat = "annexb" | "avc";

baselines/ts5.6/dom.generated.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
/// Window APIs
33
/////////////////////////////
44

5+
interface AacEncoderConfig {
6+
format?: AacBitstreamFormat;
7+
}
8+
59
interface AddEventListenerOptions extends EventListenerOptions {
610
once?: boolean;
711
passive?: boolean;
@@ -143,6 +147,7 @@ interface AudioDecoderSupport {
143147
}
144148

145149
interface AudioEncoderConfig {
150+
aac?: AacEncoderConfig;
146151
bitrate?: number;
147152
bitrateMode?: BitrateMode;
148153
codec: string;
@@ -42416,6 +42421,7 @@ type Uint32List = Uint32Array | GLuint[];
4241642421
type VibratePattern = number | number[];
4241742422
type WindowProxy = Window;
4241842423
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
42424+
type AacBitstreamFormat = "aac" | "adts";
4241942425
type AlignSetting = "center" | "end" | "left" | "right" | "start";
4242042426
type AlphaOption = "discard" | "keep";
4242142427
type AnimationPlayState = "finished" | "idle" | "paused" | "running";

baselines/ts5.6/webworker.generated.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
/// Worker APIs
33
/////////////////////////////
44

5+
interface AacEncoderConfig {
6+
format?: AacBitstreamFormat;
7+
}
8+
59
interface AddEventListenerOptions extends EventListenerOptions {
610
once?: boolean;
711
passive?: boolean;
@@ -82,6 +86,7 @@ interface AudioDecoderSupport {
8286
}
8387

8488
interface AudioEncoderConfig {
89+
aac?: AacEncoderConfig;
8590
bitrate?: number;
8691
bitrateMode?: BitrateMode;
8792
codec: string;
@@ -13449,6 +13454,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHan
1344913454
type URLPatternInput = string | URLPatternInit;
1345013455
type Uint32List = Uint32Array | GLuint[];
1345113456
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
13457+
type AacBitstreamFormat = "aac" | "adts";
1345213458
type AlphaOption = "discard" | "keep";
1345313459
type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
1345413460
type AvcBitstreamFormat = "annexb" | "avc";

baselines/ts5.9/dom.generated.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
/// Window APIs
33
/////////////////////////////
44

5+
interface AacEncoderConfig {
6+
format?: AacBitstreamFormat;
7+
}
8+
59
interface AddEventListenerOptions extends EventListenerOptions {
610
once?: boolean;
711
passive?: boolean;
@@ -143,6 +147,7 @@ interface AudioDecoderSupport {
143147
}
144148

145149
interface AudioEncoderConfig {
150+
aac?: AacEncoderConfig;
146151
bitrate?: number;
147152
bitrateMode?: BitrateMode;
148153
codec: string;
@@ -42416,6 +42421,7 @@ type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
4241642421
type VibratePattern = number | number[];
4241742422
type WindowProxy = Window;
4241842423
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
42424+
type AacBitstreamFormat = "aac" | "adts";
4241942425
type AlignSetting = "center" | "end" | "left" | "right" | "start";
4242042426
type AlphaOption = "discard" | "keep";
4242142427
type AnimationPlayState = "finished" | "idle" | "paused" | "running";

baselines/ts5.9/webworker.generated.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
/// Worker APIs
33
/////////////////////////////
44

5+
interface AacEncoderConfig {
6+
format?: AacBitstreamFormat;
7+
}
8+
59
interface AddEventListenerOptions extends EventListenerOptions {
610
once?: boolean;
711
passive?: boolean;
@@ -82,6 +86,7 @@ interface AudioDecoderSupport {
8286
}
8387

8488
interface AudioEncoderConfig {
89+
aac?: AacEncoderConfig;
8590
bitrate?: number;
8691
bitrateMode?: BitrateMode;
8792
codec: string;
@@ -13449,6 +13454,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHan
1344913454
type URLPatternInput = string | URLPatternInit;
1345013455
type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
1345113456
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
13457+
type AacBitstreamFormat = "aac" | "adts";
1345213458
type AlphaOption = "discard" | "keep";
1345313459
type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
1345413460
type AvcBitstreamFormat = "annexb" | "avc";

baselines/webworker.generated.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
/// Worker APIs
66
/////////////////////////////
77

8+
interface AacEncoderConfig {
9+
format?: AacBitstreamFormat;
10+
}
11+
812
interface AddEventListenerOptions extends EventListenerOptions {
913
once?: boolean;
1014
passive?: boolean;
@@ -85,6 +89,7 @@ interface AudioDecoderSupport {
8589
}
8690

8791
interface AudioEncoderConfig {
92+
aac?: AacEncoderConfig;
8893
bitrate?: number;
8994
bitrateMode?: BitrateMode;
9095
codec: string;
@@ -13452,6 +13457,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHan
1345213457
type URLPatternInput = string | URLPatternInit;
1345313458
type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
1345413459
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
13460+
type AacBitstreamFormat = "aac" | "adts";
1345513461
type AlphaOption = "discard" | "keep";
1345613462
type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
1345713463
type AvcBitstreamFormat = "annexb" | "avc";

inputfiles/removedTypes.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
"AudioEncoderConfig": {
130130
"members": {
131131
"member": {
132-
"aac": null, // Blink only as of 2024-09
133132
"flac": null // Blink only as of 2024-09
134133
}
135134
}

0 commit comments

Comments
 (0)