Bridges-Java 3.5.0-dev1
Bridges(Java API)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
bridges.base.AudioChannel Class Reference

This class provides support for audio API in bridges; this class stores the properties and audio data of a single channel. More...

Public Member Functions

 AudioChannel (int sampleCount)
 constructore
 
int getChannelSize ()
 get sample count
 
int getSample (int index)
 get sample at an index in the array
 
void setSample (int index, int sample)
 set sample at an index in the array
 

Detailed Description

This class provides support for audio API in bridges; this class stores the properties and audio data of a single channel.

This object is typically used as part of a bridges::base::AudioClip.

See the tutorial on AudioClips at https://bridgesuncc.github.io/tutorials/AudioClip.html

Constructor & Destructor Documentation

◆ AudioChannel()

bridges.base.AudioChannel.AudioChannel ( int  sampleCount)

constructore

Parameters
sampleCountnumber of samples

Member Function Documentation

◆ getChannelSize()

int bridges.base.AudioChannel.getChannelSize ( )

get sample count

Returns
number of samples

◆ getSample()

int bridges.base.AudioChannel.getSample ( int  index)

get sample at an index in the array

Parameters
indexto look for sample

◆ setSample()

void bridges.base.AudioChannel.setSample ( int  index,
int  sample 
)

set sample at an index in the array

Parameters
index
samplesample data

The documentation for this class was generated from the following file: