LIKO-12
  • Docs
  • Help
  • Blog

›Peripherals

Introduction

  • What is LIKO-12
  • How to install LIKO-12
  • Getting started
  • Your first LIKO-12 program

Peripherals

  • Audio
  • BIOS - Basic Integrated Operating System
  • CPU - Central Processing Unit
  • FDD - Floppy Disk Drive
  • Gamepad
  • GPU - Graphics Processing Unit
  • HDD - Hard Disk Drive
  • Keyboard
  • RAM - Random Access Memory
  • TouchControls - The Touch Gamepad Input
  • WEB

Peripherals' Objects

  • GPU / fontData
  • GPU / image
  • GPU / imageData
  • GPU / quad
  • GPU / spriteBatch
  • WEB / response
Edit

Audio

Allows the generation of chiptune audio.

  • Version: v1.0.0
  • Available since: LIKO-12 v0.7.0
  • Last updated in: LIKO-12 v0.8.0

Methods:


Audio.generate

Generates a tune from wave, frequency, and amplitude

  • Available since: Audio: v1.0.0, LIKO-12: v0.7.0
  • Last updated in: Audio: v1.0.0, LIKO-12: v0.8.0
Audio.generate(wave, freq, amp)

Arguments:

  • <wave> (number): The waveform id, it should be at least 0, but no more then 5.
  • <freq> (number): The frequency of the tune.
  • <amp> (number): The amplitude of the tune.

Audio.play

Plays a sound effect over a channel.

  • Available since: Audio: v1.0.0, LIKO-12: v0.7.0
  • Last updated in: Audio: v1.0.0, LIKO-12: v0.8.0
Audio.play(sfx, chn)

Arguments:

  • <sfx> (table): The sound effect data.
  • [chn] (number) (Default:0): A channel from 0 to 3.

Audio.stop

Stops the playing music.

  • Available since: Audio: v1.0.0, LIKO-12: v0.7.0
  • Last updated in: Audio: v1.0.0, LIKO-12: v0.8.0
Audio.stop()
← Your first LIKO-12 programBIOS - Basic Integrated Operating System →
  • Methods:
    • Audio.generate
    • Audio.play
    • Audio.stop
LIKO-12
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
Project Chat (Discord)Twitter
More
BlogGitHubStar
Copyright © 2020 The LIKO-12 Organization