Class AC97
Handles AC97-compatible sound cards at a low-level.
Inheritance
System.Object
AC97
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Cosmos.HAL2.dll
Syntax
public sealed class AC97 : AudioDriver
Properties
|
Improve this Doc
View Source
BufferProvider
Declaration
public override IAudioBufferProvider BufferProvider { get; set; }
Property Value
Overrides
|
Improve this Doc
View Source
Enabled
Declaration
public override bool Enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
Instance
The global instance of the AC97. This property will return
null if the driver has not been initialized.
Declaration
public static AC97 Instance { get; }
Property Value
|
Improve this Doc
View Source
PCI
PCI information for the sound card handled by this driver.
Declaration
public PCIDevice PCI { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
ChangeBufferSize(UInt16)
Changes the size of the internal buffers. This will result
in a slight interruption in audio.
Declaration
public void ChangeBufferSize(ushort newSize)
Parameters
Type |
Name |
Description |
System.UInt16 |
newSize |
The new buffer size, in samples. This value cannot be an odd number, as per the AC97 specification.
|
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown when the given buffer size is invalid.
|
|
Improve this Doc
View Source
Disable()
Declaration
public override void Disable()
Overrides
|
Improve this Doc
View Source
Enable()
Declaration
public override void Enable()
Overrides
|
Improve this Doc
View Source
Declaration
public override SampleFormat[] GetSupportedSampleFormats()
Returns
Overrides
|
Improve this Doc
View Source
Initialize(UInt16)
Initializes the AC97 driver. This method will return
an existing instance if the driver is already initialized
and has a running instance.
Declaration
public static AC97 Initialize(ushort bufferSize)
Parameters
Type |
Name |
Description |
System.UInt16 |
bufferSize |
The buffer size in samples to use. This value cannot be an odd number, as per the AC97 specification.
|
Returns
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown when the given buffer size is invalid.
|
System.InvalidOperationException |
Thrown when no AC97-compatible sound card is present.
|
|
Improve this Doc
View Source
Declaration
public override void SetSampleFormat(SampleFormat sampleFormat)
Parameters
Overrides