Cloudflare Pages / Build and verify the site (push) Successful in 3m29s
Use the verified dependency lock across native hosts and bundled apps. Preserve saved styles, local app reactivation, and offline packages while integrating the latest practice, Habits, Lumi, and figure preview updates.
21 lines
664 B
Ziran
21 lines
664 B
Ziran
#import, file "../src/app/audio.zi";
|
|
#import, file "../src/app/app_types.zi";
|
|
#import, file "../src/platform/media_types.zi";
|
|
#import, file "../src/core/breath_timing.zi";
|
|
c :: #system_library "c";
|
|
CheckSound :: (sound: SoundHandle) -> s32 #foreign c;
|
|
app: InnerBreeze;
|
|
|
|
#program_export
|
|
main :: () -> s32 {
|
|
app.sound_volume = 100
|
|
app.breathing.speed_level = 1
|
|
app_play_bell_cue(*app, 1.0)
|
|
if app.audio_ready == 0 || CheckSound(app.bell_sound) == 0 { return 1 }
|
|
app_audio_shutdown(*app)
|
|
app_play_breath_cue(*app, 0)
|
|
if app.audio_ready == 0 || CheckSound(app.breath_in_sound) == 0 { return 2 }
|
|
app_audio_shutdown(*app)
|
|
return 0
|
|
}
|