Swadge 2024
2.0.0
APIs to develop games for the Magfest Swadge
Toggle main menu visibility
Main Page
Related Pages
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Variables
a
b
c
d
f
g
l
m
n
p
r
s
t
w
Typedefs
d
e
f
h
m
n
p
q
s
t
u
w
Enumerations
a
b
c
d
g
h
i
k
l
m
o
p
s
t
u
w
Enumerator
a
c
e
g
h
i
k
l
m
n
o
p
r
s
t
v
w
z
Macros
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
▼
Swadge 2024
Introduction
Where to Start
Swadge Mode Example
►
API Reference
Espressif Documentation
►
Wireless Power Saving Notes
►
Configuring a Development Environment
►
Contribution Guide
Code of Conduct
►
Porting 2023 Swadge Modes
►
Emulator User Manual
►
MIDI Specifications
►
Serial Debug Output
►
Data Structures
▼
Files
▼
File List
►
components
docs
▼
main
►
asset_loaders
►
colorchord
►
display
►
menu
►
midi
▼
utils
►
fl_math
►
cnfs.c
►
cnfs.h
►
cnfs_image.h
►
color_utils.c
►
color_utils.h
►
coreutil.h
►
dialogBox.c
►
dialogBox.h
►
fp_math.c
►
fp_math.h
►
geometry.c
►
geometry.h
►
hashMap.c
►
hashMap.h
►
linked_list.c
►
linked_list.h
►
macros.h
►
p2pConnection.c
►
p2pConnection.h
►
settingsManager.c
►
settingsManager.h
►
soundFuncs.h
►
swSynth.c
►
swSynth.h
►
textEntry.c
►
textEntry.h
►
touchTextEntry.c
►
touchTextEntry.h
►
touchUtils.c
►
touchUtils.h
►
trigonometry.c
►
trigonometry.h
►
vector2d.c
►
vector2d.h
►
wheel_menu.c
►
wheel_menu.h
►
modeIncludeList.c
►
modeIncludeList.h
►
swadge2024.c
►
swadge2024.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
soundFuncs.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
midiPlayer.h
"
15
16
#if defined(CONFIG_SOUND_OUTPUT_SPEAKER)
17
27
#define soundPlaySfx(song, channel) globalMidiPlayerPlaySong(song, MIDI_SFX)
28
39
#define soundPlayBgm(song, channel) globalMidiPlayerPlaySong(song, MIDI_BGM)
40
50
#define soundPlaySfxCb(song, channel, cb) globalMidiPlayerPlaySongCb(song, MIDI_SFX, cb)
51
61
#define soundPlayBgmCb(song, channel, cb) globalMidiPlayerPlaySongCb(song, MIDI_BGM, cb)
62
70
#define soundStop(reset) globalMidiPlayerStop(reset)
71
77
#define soundPause() globalMidiPlayerPauseAll()
78
84
#define soundResume() globalMidiPlayerResumeAll()
85
95
#define soundSave() globalMidiSave()
96
104
#define soundRestore(data) globalMidiRestore(data)
105
116
#define soundPlayNote(freq, channel, vol) midiNoteOn(globalMidiPlayerGet(channel), 0, freq, vol)
117
125
#define soundStopNote(channel) midiNoteOff(globalMidiPlayerGet(channel), 0, freq, vol)
126
131
#define soundGetPlayerSfx() globalMidiPlayerGet(0)
132
137
#define soundGetPlayerBgm() globalMidiPlayerGet(1)
138
139
#elif defined(CONFIG_SOUND_OUTPUT_BUZZER)
140
#error "Buzzer is no longer supported, get with the times!"
141
#endif
midiPlayer.h
main
utils
soundFuncs.h
Generated by
1.10.0