2020-05-10 06:40:37 +00:00
|
|
|
//
|
|
|
|
// speaker.h
|
|
|
|
// A2Mac
|
|
|
|
//
|
|
|
|
// Created by Tamas Rudnai on 5/9/20.
|
|
|
|
// Copyright © 2020 GameAlloy. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef speaker_h
|
|
|
|
#define speaker_h
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2020-05-10 17:54:34 +00:00
|
|
|
#define SPKR_LEVEL_MIN 0
|
|
|
|
#define SPKR_LEVEL_MAX 127
|
2020-05-10 06:40:37 +00:00
|
|
|
|
|
|
|
extern void spkr_init(void);
|
|
|
|
extern void spkr_exit(void);
|
|
|
|
extern void spkr_play(void);
|
|
|
|
|
|
|
|
extern const unsigned spkr_buf_size;
|
|
|
|
extern char spkr_samples [];
|
|
|
|
|
2020-05-10 17:54:34 +00:00
|
|
|
extern uint8_t spkr_level;
|
|
|
|
|
|
|
|
|
2020-05-10 06:40:37 +00:00
|
|
|
|
|
|
|
#endif /* speaker_h */
|