# windowsAudioInputCapture

A windows audio input capture 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 windowsAudioInputCapture
```

- int identity: Stores identity as int.
- windowsAudioInputCapture(): Windows audio input capture.
- StartDefault() returns bool: Start default.
- StartDevice(int index) returns bool: Start device.
- DeviceCount() returns int: Device count.
- DeviceName(int index) returns text: Device name.
- StopToWave(text path) returns bool: Stop to wave.
- Cancel() returns bool: Cancel.
- Value(int field) returns int: Value.
- State() returns int: State.
- Frames() returns int: Frames.
- SampleRate() returns int: Sample rate.
- PeakPermille() returns int: Peak permille.
- CapacityFrames() returns int: Capacity frames.

## Use windowsAudioInputCapture

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.
windowsAudioInputCapture sample = windowsAudioInputCapture()
Console.Log(Text.From(sample.identity))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.StartDefault

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Start default.
windowsAudioInputCapture instance = windowsAudioInputCapture()
bool result = instance.StartDefault()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-StartDefault-2 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.StartDevice

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Start device.
windowsAudioInputCapture instance = windowsAudioInputCapture()
int argument_index = 1
bool result = instance.StartDevice(argument_index)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-StartDevice-3 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.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.
windowsAudioInputCapture instance = windowsAudioInputCapture()
int result = instance.DeviceCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-DeviceCount-4 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.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.
windowsAudioInputCapture instance = windowsAudioInputCapture()
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__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-DeviceName-5 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.StopToWave

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Stop to wave.
windowsAudioInputCapture instance = windowsAudioInputCapture()
text argument_path = "argument path"
bool result = instance.StopToWave(argument_path)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-StopToWave-6 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.Cancel

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Cancel.
windowsAudioInputCapture instance = windowsAudioInputCapture()
bool result = instance.Cancel()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-Cancel-7 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.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.
windowsAudioInputCapture instance = windowsAudioInputCapture()
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__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-Value-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.State

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// State.
windowsAudioInputCapture instance = windowsAudioInputCapture()
int result = instance.State()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-State-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.Frames

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Frames.
windowsAudioInputCapture instance = windowsAudioInputCapture()
int result = instance.Frames()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-Frames-10 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.SampleRate

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Sample rate.
windowsAudioInputCapture instance = windowsAudioInputCapture()
int result = instance.SampleRate()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-SampleRate-11 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.PeakPermille

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Peak permille.
windowsAudioInputCapture instance = windowsAudioInputCapture()
int result = instance.PeakPermille()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-PeakPermille-12 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## windowsAudioInputCapture.CapacityFrames

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Capacity frames.
windowsAudioInputCapture instance = windowsAudioInputCapture()
int result = instance.CapacityFrames()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__windowsaudioinputcapture"
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--windowsAudioInputCapture/method-CapacityFrames-13 --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
