forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request KhronosGroup#1 from omigroup/khr-audio-feedback-ad…
…justments factors in KHR PR feedback and fixes readme
- Loading branch information
Showing
8 changed files
with
360 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 31 additions & 34 deletions
65
extensions/2.0/Khronos/KHR_audio/schema/audio.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,39 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema", | ||
"title": "Audio Source", | ||
"type": "object", | ||
"description": "A source for audio data referenced in Audio Emitters Audio can be referenced by URI or `bufferView` index. `mimeType` is required when `bufferView` is used.", | ||
"allOf": [ { "$ref": "glTFProperty.schema.json" } ], | ||
"properties": { | ||
"uri": { | ||
"type": "string", | ||
"description": "The uri of the audio file.", | ||
"format": "uriref", | ||
"gltf_detailedDescription": "The uri of the audio file. Relative paths are relative to the .gltf file.", | ||
"gltf_uriType": "audio" | ||
}, | ||
"mimeType": { | ||
"type": "string", | ||
"description": "The audio's MIME type. Required if `bufferView` is defined. Unless specified by another extension, the only supported mimeType is `audio/mpeg`.", | ||
"anyOf": [ | ||
"$schema": "http://json-schema.org/draft-04/schema", | ||
"title": "KHR_audio Audio Data", | ||
"type": "object", | ||
"description": "A source for audio data referenced in Audio Emitters Audio can be referenced by URI or `bufferView` index. `mimeType` is required when `bufferView` is used.", | ||
"allOf": [{ "$ref": "glTFProperty.schema.json" }], | ||
"properties": { | ||
"uri": { | ||
"type": "string", | ||
"description": "The uri of the audio file.", | ||
"format": "uriref", | ||
"gltf_detailedDescription": "The uri of the audio file. Relative paths are relative to the .gltf file.", | ||
"gltf_uriType": "audio" | ||
}, | ||
"mimeType": { | ||
"type": "string", | ||
"description": "The audio's MIME type. Required if `bufferView` is defined. Unless specified by another extension, the only supported mimeType is `audio/mpeg`.", | ||
"anyOf": [ | ||
{ | ||
"enum": [ "audio/mpeg" ] | ||
"enum": ["audio/mpeg"] | ||
}, | ||
{ | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"bufferView": { | ||
"allOf": [ { "$ref": "glTFid.schema.json" } ], | ||
"description": "The index of the bufferView that contains the audio data. Use this instead of the audio source's uri property." | ||
}, | ||
"name": { }, | ||
"extensions": { }, | ||
"extras": { } | ||
}, | ||
"dependencies": { | ||
"bufferView": [ "mimeType" ] | ||
}, | ||
"oneOf": [ | ||
{ "required": [ "uri" ] }, | ||
{ "required": [ "bufferView" ] } | ||
] | ||
}, | ||
"bufferView": { | ||
"allOf": [{ "$ref": "glTFid.schema.json" }], | ||
"description": "The index of the bufferView that contains the audio data. Use this instead of the audio source's uri property." | ||
}, | ||
"name": {}, | ||
"extensions": {}, | ||
"extras": {} | ||
}, | ||
"dependencies": { | ||
"bufferView": ["mimeType"] | ||
}, | ||
"oneOf": [{ "required": ["uri"] }, { "required": ["bufferView"] }] | ||
} |
Oops, something went wrong.