Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

What does `allocationSize` return if formats in the source and destination are null?

オープン
#727 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
html
領域
api

調査の方向性

AudioData の allocationSize アルゴリズム、特にステップ 5 と、WebCodecs 仕様に記載された AudioData 形式の要件から始めます。ソース形式と宛先形式が null の場合に指定される結果を明確にします。この動作が仕様で曖昧でなくなれば、issue は完了です。

索引モデルが issue の本文から書いたものです。

説明

It is technically possible to have a non-empty AudioData with a null [[format]], if getting an AudioData after decoding and it's not "recognized".

If output uses a recognized AudioSampleFormat, assign that format to [[format]]. Otherwise, assign null to [[format]].

If allocationSize is called on this fresh AudioData, what happens in step 5 of its algorithm?

We might be able to just return the number of bytes in the resource.

In practice, it might be the case that implementations can't hit this -- at least Gecko supports all specced audio sample formats.

主要言語
HTML
スター
1.3k
フォーク
192
平均マージ
21時間 7分
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

w3c/webcodecs のほかの issue

w3c/webcodecs の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。