C# Class CSPspEmu.Core.Audio.PspAudioChannel

Afficher le fichier Open project: soywiz/cspspemu Class Usage Examples

Méthodes publiques

Свойство Type Description
Available bool
Format PspAudio.FormatEnum
Frequency int
Index int
VolumeLeft int
VolumeRight int

Protected Properties

Свойство Type Description
PspAudio PspAudio

Méthodes publiques

Méthode 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

Méthode Description
MonoToStereo ( short MonoSamples ) : short[]

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

Method Details

PspAudioChannel() public méthode

Constructor
public PspAudioChannel ( PspAudio PspAudio ) : System
PspAudio PspAudio
Résultat System

Read() public méthode

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

Release() public méthode

public Release ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Updated() public méthode

public Updated ( ) : void
Résultat void

Write() public méthode

public Write ( short Samples, System.Action ActionCallbackOnReaded ) : void
Samples short
ActionCallbackOnReaded System.Action
Résultat void

Write() public méthode

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

Property Details

Available public_oe property

public bool Available
Résultat bool

Format public_oe property

Format of the audio in the channel. Can be mono or stereo.
public PspAudio.FormatEnum Format
Résultat PspAudio.FormatEnum

Frequency public_oe property

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

Index public_oe property

public int Index
Résultat int

PspAudio protected_oe property

protected PspAudio,CSPspEmu.Core.Audio PspAudio
Résultat PspAudio

VolumeLeft public_oe property

public int VolumeLeft
Résultat int

VolumeRight public_oe property

public int VolumeRight
Résultat int