AudioFormat
This node defines parameters for audio streams.
Inheritance
Code
XML encoding
<AudioFormat bits='8' channels='1' sampleRate='22050' logFeature='' />
Classic encoding
AudioFormat { bits 8 channels 1 sampleRate 22050 logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
bits | SFInt32 | initializeOnly | 8 | The number of bits per sample and channel. Possible values are 8 and 16. 8 gives lesser quality, and 16 gives higher quality. | ||
channels | SFInt32 | initializeOnly | 1 | The number of channels. Possible values are 1 and 2. 1 means mono sound, and 2 means stereo sound. | ||
logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element | ||
sampleRate | SFInt32 | initializeOnly | 22050 | The sample rate in Hertz of the audio stream. Higher values mean higher quality. E.g. the sample rate of audio CDs is 44100. |