Show / Hide Table of Contents

Struct ChannelInfo

Used with ChannelGetInfo(Int32, out ChannelInfo) to retrieve information on a channel.

Namespace: System.Dynamic.ExpandoObject
Assembly: ManagedBass.dll
Syntax
public struct ChannelInfo
Remarks

A "channel" can be a playing sample (HCHANNEL), a sample stream (HSTREAM), a MOD music (HMUSIC), or a recording (HRECORD).

Each "Channel" function can be used with one or more of these channel types.

The BassFlags.SoftwareMixing flag indicates whether or not the channel's sample data is being mixed into the final output by the hardware. It does not indicate (in the case of a stream or MOD music) whether the processing required to generate the sample data is being done by the hardware, this processing is always done in software.

BASS supports 8/16/32-bit sample data, so if a WAV file, for example, uses another sample resolution, it'll have to be converted by BASS. The OriginalResolution member can be used to check what the resolution originally was.

Properties

Channels

Number of channels... 1=mono, 2=stereo, etc.

Declaration
public int Channels { get; }
Property Value
Int32

ChannelType

The Type of Channel

Declaration
public ChannelType ChannelType { get; }
Property Value
ChannelType

FileName

The filename associated with the channel. (HSTREAM only)

Declaration
public string FileName { get; }
Property Value
String

Flags

Sample/Stream/Music/Speaker flags. A combination of BassFlags.

Declaration
public BassFlags Flags { get; }
Property Value
BassFlags

Remarks

Platform-specific

On Linux/iOS/OSX, the Unicode flag may not be present even if it was used in the stream's creation, as BASS will have translated the filename to the native UTF-8 form. On Windows CE, the opposite is true: the Unicode flag may be present even if it was not used in the stream's creation, as BASS will have translated the filename to the native UTF-16 form.

Frequency

Default playback rate.

Declaration
public int Frequency { get; }
Property Value
Int32

IsDecodingChannel

Is the channel a decoding channel?

Declaration
public bool IsDecodingChannel { get; }
Property Value
Boolean

OriginalResolution

The original resolution (bits per sample)... 0 = undefined.

Declaration
public int OriginalResolution { get; }
Property Value
Int32

Plugin

The plugin that is handling the channel... 0 = not using a plugin.

Note this is only available with streams created using the plugin system via the standard BASS stream creation functions, not those created by add-on functions. Information on the plugin can be retrieved via PluginGetInfo(Int32).

Declaration
public int Plugin { get; }
Property Value
Int32

Resolution

The resolution which Bass uses for the stream.

Declaration
public Resolution Resolution { get; }
Property Value
Resolution

Sample

The sample that is playing on the channel. (HCHANNEL only)

Declaration
public int Sample { get; }
Property Value
Int32

Back to top Copyright © 2017 Mathew Sachin
Generated by DocFx