# audioOutputStream

A 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 audioOutputStream
```

- int identity: Stores identity as int.
- audioOutputStream(): 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.
- Format() returns audioStreamFormat: Format.
- Latency() returns audioLatencyTerms: Latency.
- Evidence() returns audioStreamEvidence: Evidence.

## Use audioOutputStream

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.
audioOutputStream sample = audioOutputStream()
Console.Log(Text.From(sample.identity))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__audiooutputstream"
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--audioOutputStream/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
int result = instance.DeviceCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__audiooutputstream"
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--audioOutputStream/method-DeviceCount-2 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
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__audiooutputstream"
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--audioOutputStream/method-DeviceName-3 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
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__audiooutputstream"
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--audioOutputStream/method-ConfigureDevice-4 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
bool result = instance.ConfigureDefault()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__audiooutputstream"
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--audioOutputStream/method-ConfigureDefault-5 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
bool result = instance.Start()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__audiooutputstream"
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--audioOutputStream/method-Start-6 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
int result = instance.BeginRender()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__audiooutputstream"
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--audioOutputStream/method-BeginRender-7 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
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__audiooutputstream"
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--audioOutputStream/method-WriteStereoFrame-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
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__audiooutputstream"
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--audioOutputStream/method-EndRender-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
bool result = instance.Stop()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__audiooutputstream"
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--audioOutputStream/method-Stop-10 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
bool result = instance.Restart()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__audiooutputstream"
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--audioOutputStream/method-Restart-11 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
instance.Destroy()
Console.Log("Destroy completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__audiooutputstream"
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--audioOutputStream/method-Destroy-12 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
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__audiooutputstream"
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--audioOutputStream/method-Value-13 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
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__audiooutputstream"
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--audioOutputStream/method-Format-14 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
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__audiooutputstream"
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--audioOutputStream/method-Latency-15 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## audioOutputStream.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.
audioOutputStream instance = audioOutputStream()
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__audiooutputstream"
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--audioOutputStream/method-Evidence-16 --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
