# windowsAudioOutputStream

A windows audio output stream record carrying identity.

Last updated: 2026-09-09

Package: audio | Status: source-declared

Tags: audio, class, cpu, method, source-example, yeho

Play and control audio through Yeho's bounded audio runtime.

```yh
external class windowsAudioOutputStream
```

- int identity: Stores identity as int.
- windowsAudioOutputStream(): Windows audio output stream.
- DeviceCount() returns int: Device count.
- DeviceName(int index) returns text: Device name.
- ConfigureDevice(int index) returns bool: Configure device.
- ConfigureDefault() returns bool: Configure default.
- Start() returns bool: Start.
- BeginRender() returns int: Begin render.
- WriteStereoFrame(int frame, float left, float right) returns bool: Write stereo frame.
- EndRender(int frames) returns bool: End render.
- Stop() returns bool: Stop.
- Restart() returns bool: Restart.
- Destroy(): Destroy.
- Value(int field) returns int: Value.
- Device() returns audioDeviceIdentity: Device.
- Format() returns audioStreamFormat: Format.
- Latency() returns audioLatencyTerms: Latency.
- Evidence() returns audioStreamEvidence: Evidence.

## Use windowsAudioOutputStream

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using audio

// Play and control audio through Yeho's bounded audio runtime.
windowsAudioOutputStream sample = windowsAudioOutputStream()
Console.Log(Text.From(sample.identity))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.DeviceCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Device count.
windowsAudioOutputStream instance = windowsAudioOutputStream()
int result = instance.DeviceCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-DeviceCount-2 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.DeviceName

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Device name.
windowsAudioOutputStream instance = windowsAudioOutputStream()
int argument_index = 1
text result = instance.DeviceName(argument_index)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-DeviceName-3 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.ConfigureDevice

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Configure device.
windowsAudioOutputStream instance = windowsAudioOutputStream()
int argument_index = 1
bool result = instance.ConfigureDevice(argument_index)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-ConfigureDevice-4 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.ConfigureDefault

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Configure default.
windowsAudioOutputStream instance = windowsAudioOutputStream()
bool result = instance.ConfigureDefault()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-ConfigureDefault-5 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.Start

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Start.
windowsAudioOutputStream instance = windowsAudioOutputStream()
bool result = instance.Start()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-Start-6 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.BeginRender

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Begin render.
windowsAudioOutputStream instance = windowsAudioOutputStream()
int result = instance.BeginRender()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-BeginRender-7 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.WriteStereoFrame

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Write stereo frame.
windowsAudioOutputStream instance = windowsAudioOutputStream()
int argument_frame = 1
float argument_left = 1.0
float argument_right = 1.0
bool result = instance.WriteStereoFrame(argument_frame, argument_left, argument_right)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-WriteStereoFrame-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.EndRender

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// End render.
windowsAudioOutputStream instance = windowsAudioOutputStream()
int argument_frames = 1
bool result = instance.EndRender(argument_frames)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-EndRender-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.Stop

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Stop.
windowsAudioOutputStream instance = windowsAudioOutputStream()
bool result = instance.Stop()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-Stop-10 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.Restart

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Restart.
windowsAudioOutputStream instance = windowsAudioOutputStream()
bool result = instance.Restart()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-Restart-11 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.Destroy

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Destroy.
windowsAudioOutputStream instance = windowsAudioOutputStream()
instance.Destroy()
Console.Log("Destroy completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-Destroy-12 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.Value

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Value.
windowsAudioOutputStream instance = windowsAudioOutputStream()
int argument_field = 1
int result = instance.Value(argument_field)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-Value-13 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.Device

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Device.
windowsAudioOutputStream instance = windowsAudioOutputStream()
audioDeviceIdentity result = instance.Device()
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-Device-14 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.Format

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Format.
windowsAudioOutputStream instance = windowsAudioOutputStream()
audioStreamFormat result = instance.Format()
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-Format-15 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.Latency

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Latency.
windowsAudioOutputStream instance = windowsAudioOutputStream()
audioLatencyTerms result = instance.Latency()
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-Latency-16 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioOutputStream.Evidence

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Evidence.
windowsAudioOutputStream instance = windowsAudioOutputStream()
audioStreamEvidence result = instance.Evidence()
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudiooutputstream"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "audio"
version = "0.1.0"
path = "../../../yeho/packages/audio"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/audio--windowsAudioOutputStream/method-Evidence-17 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/audio/audio.yh

AI training permission: https://demonhunterlabs.com/ai-use
