Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

azimuth

摘要

结合 elevationazimuth 能够对不同音源进行空间定位。这是很重要的,它提供了一个自然的途径分别呈现多个声音,而且每一个都产生于音场的不同方位上。立体声输出建立了一个平面的音场,而双路立体声耳机和多路话筒允许建立一个完整的三维立体音场。

语法

azimuth:angle | [[ left-side | far-left | left |
    center-left | center | center-right | right |
    far-right | right-side ] || behind ] | leftwards |
    rightwards | inherit

角度(angle)

音源位置是通过一个-360度360度之间的角度来描述的。0度代表音场中央的正前方(这是默认值)。90度是右侧,180度是背后,而270度或者-90度是左边。

Image:Azimuth.png

位置关键字

  • left-side: 即270度.
  • left-side behind: 即270度.
  • far-left: 即300度.
  • far-left behind: 即240度.
  • left: 即320度.
  • left behind: 即220度.
  • center-left: 即340度.
  • center-left behind: 即200度.
  • center: 即0度.
  • center behind: 即180度.
  • center-right: 即20度.
  • center-right behind: 即160度.
  • right: 即40度.
  • right behind: 即140度.
  • far-right: 即60度.
  • far-right behind: 即120度.
  • right-side: 即90度.
  • right-side behind: 即90度.
  • behind: 即180度. Also used as a modifier for other positional keyword values, as above.
  • leftwards: Moves the sound counter-clockwise by 20 degrees, relative to the current angle.
  • rightwards: Moves the sound clockwise by 20 degrees, relative to the current angle.

举例

h1   { azimuth: 30deg }
td.a { azimuth: far-right }          /*  60deg */
#12  { azimuth: behind far-right }   /* 120deg */
p.comment { azimuth: behind }        /* 180deg */

规范

浏览器兼容性

TBD (this might be abandoned in favour of a centralized compatibility chart)

参阅

elevation

 

文档标签和贡献者

标签: 
 此页面的贡献者: malayaleecoder, teoli, Mgjbot, Steekid
 最后编辑者: malayaleecoder,