The value of this property describes the angle or direction from which the sound is coming from. This assumes you have a sound system that is capable of resolving a full 360 degree panorama. A stereo system should be able to place the sound source in approximately the correct position left to right, by careful use of phasing may be able to move the sound source in and out of the sound field.
The directional value can be specified either as a value in degrees or by using one or two keywords.
An azimuthal value specified in degrees must have the deg suffix. Thus 90 degrees would encoded as 90deg.
The keyword combinations and their azimuthal location are listed in the table:
Angle | Keywords |
0 | center |
20 | center-right |
40 | right |
60 | far-right |
90 | right-side |
120 | far-right behind |
140 | right behind |
160 | center-right behind |
180 | center behind |
200 | center-left behind |
220 | left-behind |
240 | far-left behind |
270 | left-side |
300 | far-left |
320 | left |
340 | center-left |
In addition you can also specify these keywords:
leftwards
rightwards
These shift the sound source in the appropriate direction by 20 degrees.
See also: | Aural style sheets, BGSOUND.balance, style.elevation |
Prev | Home | Next |
style object (2) | Up | style.background |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |