-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.h
27 lines (22 loc) · 835 Bytes
/
types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//==============================================================================
// PROJECT: zqloader
// FILE: types.h
// DESCRIPTION: Some generic types.
//
// Copyright (c) 2023 Daan Scherft [Oxidaan]
// This project uses the MIT license. See LICENSE.txt for details.
//==============================================================================
#pragma once
#include <chrono>
using namespace std::chrono_literals; // never do using namespace in include files. Except this.
/// A (std::chrono) duration in sec that can also store fractional seconds
using Doublesec = std::chrono::duration<double>;
/// Edge type, used a lot by SampleSender (miniaudio) and Pulsers.
/// Also used at tzx/SymDef hence needs size 8 bits.
enum class Edge : uint8_t
{
toggle,
no_change,
zero,
one,
};