mirror of https://github.com/trudnai/Steve2.git
31 lines
555 B
C
31 lines
555 B
C
//
|
|
// 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>
|
|
|
|
#define SPKR_LEVEL_MIN 25
|
|
#define SPKR_LEVEL_MAX 200
|
|
|
|
extern void spkr_init(void);
|
|
extern void spkr_exit(void);
|
|
extern void spkr_play(void);
|
|
extern void spkr_Update(void);
|
|
|
|
extern const unsigned spkr_sample_rate;
|
|
extern const unsigned spkr_buf_size;
|
|
extern char spkr_samples [];
|
|
extern unsigned spkr_sample_idx;
|
|
extern int spkr_level;
|
|
|
|
|
|
|
|
#endif /* speaker_h */
|