Bridges-Java  3.4.3
Bridges(Java API)
Public Member Functions | List of all members
bridges.base.AudioChannel Class Reference

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

Public Member Functions

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

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: