# fakeAudioInputCapture

A fake audio input capture record carrying state, frames, capacityFrames, sampleRate, peakPermille, and related state.

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 fakeAudioInputCapture
```

- int state: Stores state as int.
- int frames: Stores frames as int.
- int capacityFrames: Stores capacity frames as int.
- int sampleRate: Stores sample rate as int.
- int peakPermille: Stores peak permille as int.
- bool failStart: Stores fail start as bool.
- bool failSave: Stores fail save as bool.
- fakeAudioInputCapture(int capacityFrames): Fake audio input capture.
- StartDefault() returns bool: Start default.
- Feed(int frames, int peakPermille) returns bool: Feed.
- StopToWave(text path) returns bool: Stop to wave.
- Cancel() returns bool: Cancel.

## Use fakeAudioInputCapture

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.
fakeAudioInputCapture sample = fakeAudioInputCapture(1)
Console.Log(Text.From(sample.state))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__fakeaudioinputcapture"
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--fakeAudioInputCapture/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## fakeAudioInputCapture.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.
fakeAudioInputCapture instance = fakeAudioInputCapture(1)
bool result = instance.StartDefault()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__fakeaudioinputcapture"
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--fakeAudioInputCapture/method-StartDefault-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## fakeAudioInputCapture.Feed

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using audio

// Feed.
fakeAudioInputCapture instance = fakeAudioInputCapture(1)
int argument_frames = 1
int argument_peakPermille = 1
bool result = instance.Feed(argument_frames, argument_peakPermille)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__fakeaudioinputcapture"
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--fakeAudioInputCapture/method-Feed-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## fakeAudioInputCapture.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.
fakeAudioInputCapture instance = fakeAudioInputCapture(1)
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__fakeaudioinputcapture"
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--fakeAudioInputCapture/method-StopToWave-10 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## fakeAudioInputCapture.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.
fakeAudioInputCapture instance = fakeAudioInputCapture(1)
bool result = instance.Cancel()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.audio__fakeaudioinputcapture"
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--fakeAudioInputCapture/method-Cancel-11 --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
