working game
This commit is contained in:
11
include/BinaryData.h
Normal file
11
include/BinaryData.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
namespace ph {
|
||||
namespace data {
|
||||
|
||||
static const unsigned int NotesMP3_size = 164234;
|
||||
|
||||
const char* GetMP3Data();
|
||||
|
||||
} // namespace data
|
||||
} // namespace ph
|
||||
22
include/Ph.h
Normal file
22
include/Ph.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
namespace ph {
|
||||
|
||||
enum Note {
|
||||
A = 0,
|
||||
Bb,
|
||||
B,
|
||||
C,
|
||||
Db,
|
||||
D,
|
||||
Eb,
|
||||
E,
|
||||
F,
|
||||
Gb,
|
||||
G,
|
||||
Ab,
|
||||
|
||||
NoteCount,
|
||||
};
|
||||
|
||||
} // namespace ph
|
||||
17
include/PhAudio.h
Normal file
17
include/PhAudio.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "Ph.h"
|
||||
|
||||
namespace ph {
|
||||
namespace audio {
|
||||
|
||||
int Init();
|
||||
|
||||
void PlayNote(Note note);
|
||||
|
||||
double NoteDuration();
|
||||
|
||||
void Destroy();
|
||||
|
||||
} // namespace audio
|
||||
} // namespace ph
|
||||
10
include/PhGui.h
Normal file
10
include/PhGui.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
namespace ph {
|
||||
namespace gui {
|
||||
|
||||
void Render();
|
||||
void Init();
|
||||
|
||||
} // namespace gui
|
||||
} // namespace ph
|
||||
Reference in New Issue
Block a user