Skip to content

Commit

Permalink
Add sample rate and number of channels
Browse files Browse the repository at this point in the history
  • Loading branch information
fgwt202412 committed Dec 15, 2024
1 parent 9bf7142 commit e2cd86e
Show file tree
Hide file tree
Showing 13 changed files with 115 additions and 31 deletions.
12 changes: 7 additions & 5 deletions internal/__snapshots__/exportTypeScriptSchemas.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,7 @@ export type CompressedAudio = {
/** Timestamp of audio frame */
timestamp: Time;
/**
* Compressed audio frame data.
*
* TK
*/
/** Compressed audio frame data. */
data: Uint8Array;
/**
Expand All @@ -267,6 +263,12 @@ export type CompressedAudio = {
* Supported values: \`key\`, \`delta\`.
*/
type: string;
/** Number of audio samples per second. */
sample_rate: number;
/** Number of audio channels in the input. */
number_of_channels: number;
};
",
"CylinderPrimitive" => "// Generated by https://github.com/foxglove/schemas
Expand Down
14 changes: 11 additions & 3 deletions internal/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,9 +856,7 @@ const CompressedAudio: FoxgloveMessageSchema = {
{
name: "data",
type: { type: "primitive", name: "bytes" },
description: `Compressed audio frame data.
TK`,
description: `Compressed audio frame data.`,
},
{
name: "format",
Expand All @@ -870,6 +868,16 @@ TK`,
type: { type: "primitive", name: "string" },
description: "Frame type.\n\n Supported values: `key`, `delta`.",
},
{
name: "sample_rate",
type: { type: "primitive", name: "uint32" },
description: "Number of audio samples per second.",
},
{
name: "number_of_channels",
type: { type: "primitive", name: "uint32" },
description: "Number of audio channels in the input.",
},
],
};

Expand Down
8 changes: 6 additions & 2 deletions ros_foxglove_msgs/ros1/CompressedAudio.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions ros_foxglove_msgs/ros2/CompressedAudio.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 26 additions & 2 deletions schemas/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions schemas/flatbuffer/CompressedAudio.fbs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion schemas/jsonschema/CompressedAudio.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion schemas/jsonschema/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions schemas/omgidl/foxglove/CompressedAudio.idl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions schemas/proto/foxglove/CompressedAudio.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions schemas/ros1/CompressedAudio.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions schemas/ros2/CompressedAudio.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions schemas/typescript/CompressedAudio.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e2cd86e

Please sign in to comment.