audio · class ·

fakeAudioInputCapture

A fake audio input capture record carrying state, frames, capacityFrames, sampleRate, peakPermille, and related state.

audioclasscpumethodsource-exampleyeho

Play and control audio through Yeho's bounded audio runtime.

external class fakeAudioInputCapture

Status: source-declared

Fields and methods (12)
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. Complete example
Feed(int frames, int peakPermille) returns bool
Feed. Complete example
StopToWave(text path) returns bool
Stop to wave. Complete example
Cancel() returns bool
Cancel. Complete example

Use fakeAudioInputCapture

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using audio

// Play and control audio through Yeho's bounded audio runtime.
fakeAudioInputCapture sample = fakeAudioInputCapture(1)
Console.Log(Text.From(sample.state))
project.mech
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"

fakeAudioInputCapture.StartDefault

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using audio

// Start default.
fakeAudioInputCapture instance = fakeAudioInputCapture(1)
bool result = instance.StartDefault()
Console.Log(Text.From(result))
project.mech
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"

fakeAudioInputCapture.Feed

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

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))
project.mech
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"

fakeAudioInputCapture.StopToWave

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

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))
project.mech
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"

fakeAudioInputCapture.Cancel

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using audio

// Cancel.
fakeAudioInputCapture instance = fakeAudioInputCapture(1)
bool result = instance.Cancel()
Console.Log(Text.From(result))
project.mech
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"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/audio/audio.yh:246