llvm-mos-sdk
sound.h
Go to the documentation of this file.
1 // Copyright 2024 LLVM-MOS Project
2 // Licensed under the Apache License, Version 2.0 with LLVM Exceptions.
3 // See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
4 // information.
5 
6 #include <stdbool.h>
7 #include <stdint.h>
8 
9 #ifndef _NEO_SOUND_H
10 #define _NEO_SOUND_H
11 
12 #include <neo6502.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
21 void neo_sound_reset(void);
22 
27 
31 void neo_sound_beep(void);
32 
36 void neo_sound_queue(uint8_t channel, uint16_t frequency, uint16_t duration, uint16_t slide, uint8_t target);
37 
47 
55 
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif
std::uint16_t
::uint16_t uint16_t
Definition: cstdint:22
std::uint8_t
::uint8_t uint8_t
Definition: cstdint:21
channel
char channel
Definition: famitone2.h:31
neo6502.h
neo_sound_play_effect
void neo_sound_play_effect(uint8_t channel, uint8_t id)
Play the sound effect.
neo_sound_queue
void neo_sound_queue(uint8_t channel, uint16_t frequency, uint16_t duration, uint16_t slide, uint8_t target)
Queue a sound.
neo_sound_reset_channel
void neo_sound_reset_channel(uint8_t channel)
Reset the specified sound channel.
neo_sound_beep
void neo_sound_beep(void)
Play the startup beep.
neo_sound_channel_count
uint8_t neo_sound_channel_count(void)
Query the number of channels.
neo_sound_reset
void neo_sound_reset(void)
Reset the sound system.
neo_sound_status
uint8_t neo_sound_status(uint8_t channel)
Query the status of the specified channel.