Lingo Dictionary > L-N > numChannels |  |

numChannels

Syntax

    member(whichCastMember).numChannels
    the numChannels of member whichCastMember

Description

Shockwave Audio (SWA) cast member property; returns the number of channels within the specified SWA streaming cast member. The value can be either 1 for monaural or 2 for stereo.

This property is available only after the SWA streaming cast member begins playing or after the file has been preloaded using the `preLoadBuffer()` command.

This property can be tested but not set.

Example

This example assigns the number of sound channels of the SWA streaming cast member Duke Ellington to the field cast member Channel Display:

    myVariable = member("Duke Ellington").numChannels
    if myVariable = 1 then
    	member("Channel Display").text = "Mono"
    else
    	member("Channel Display").text = "Stereo"
    end if