C# Class CSPspEmu.Core.Audio.PspAudioChannel

Show file Open project: soywiz/cspspemu Class Usage Examples

Public Properties

Property Type Description
Available bool
Format PspAudio.FormatEnum
Frequency int
Index int
VolumeLeft int
VolumeRight int

Protected Properties

Property Type Description
PspAudio PspAudio

Public Methods

Method Description
PspAudioChannel ( PspAudio PspAudio ) : System

Constructor

Read ( int Count ) : short[]

Read 'Count' number of samples

Release ( ) : void
ToString ( ) : string
Updated ( ) : void
Write ( short Samples, System.Action ActionCallbackOnReaded ) : void

Write ( short SamplePointer, int VolumeLeft, int VolumeRight, System.Action ActionCallbackOnReaded ) : void

Private Methods

Method Description
MonoToStereo ( short MonoSamples ) : short[]

Converts a buffer containing mono samples into a buffer containing of stereo samples

Method Details

PspAudioChannel() public method

Constructor
public PspAudioChannel ( PspAudio PspAudio ) : System
PspAudio PspAudio
return System

Read() public method

Read 'Count' number of samples
public Read ( int Count ) : short[]
Count int Number of samples to read
return short[]

Release() public method

public Release ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Updated() public method

public Updated ( ) : void
return void

Write() public method

public Write ( short Samples, System.Action ActionCallbackOnReaded ) : void
Samples short
ActionCallbackOnReaded System.Action
return void

Write() public method

public Write ( short SamplePointer, int VolumeLeft, int VolumeRight, System.Action ActionCallbackOnReaded ) : void
SamplePointer short
VolumeLeft int
VolumeRight int
ActionCallbackOnReaded System.Action
return void

Property Details

Available public property

public bool Available
return bool

Format public property

Format of the audio in the channel. Can be mono or stereo.
public PspAudio.FormatEnum Format
return PspAudio.FormatEnum

Frequency public property

Channel's frequency. One of 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11050, 8000.
public int Frequency
return int

Index public property

public int Index
return int

PspAudio protected property

protected PspAudio,CSPspEmu.Core.Audio PspAudio
return PspAudio

VolumeLeft public property

public int VolumeLeft
return int

VolumeRight public property

public int VolumeRight
return int