/usr/share/z88dk/include/sound.h is in z88dk-data 1.8.ds1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | #ifndef __SOUND_H__
#define __SOUND_H__
/*
* Sound support code
*
* Stefano, Oct 2001 - First release
* Dec 2001 - Added Mattel Aquarius
* Dec 2007 - Various fixes and improvements
*
* $Id: sound.h,v 1.9 2007/12/06 11:32:36 stefano Exp $
*/
/* 1 bit sound library */
#pragma output NEED1bitsound
extern __LIB__ bit_open();
extern __LIB__ bit_close();
extern __LIB__ bit_click();
/* Sound effects; every library contains 8 different sounds (effect no. 0..7) */
extern __LIB__ bit_fx(int effect);
extern __LIB__ bit_fx2(int effect);
extern __LIB__ bit_fx3(int effect);
extern __LIB__ bit_fx4(int effect);
/* 1 BIT SYNTH - Polyphony and multitimbric effects */
extern __LIB__ bit_synth(int duration, int frequency1, int frequency2, int frequency3, int frequency4);
/* "period": the higher value, the lower tone ! */
extern __LIB__ bit_beep(int duration, int period);
/* Real frequency ! Duration is in ms */
extern __LIB__ bit_frequency(float duration, float frequency);
/* Play a song (example: "2A--A-B-CDEFGAB5C+") */
extern __LIB__ bit_play(unsigned char melody[]);
/* Platform specific parameters (mainly timing stuff) */
#ifdef SPECTRUM
#define BEEP_TSTATES 437500.0 /* 3.5 Mhz; float value = CPU_CLOCK*125 */
#endif
#ifdef MSX
#define BEEP_TSTATES 447500.0 /* 3.58 Mhz */
#endif
#ifdef AQUARIUS
#define BEEP_TSTATES 500000.0 /* 4 Mhz */
#endif
#ifdef TICALC
// TICALC, TI82, TI83, TI8X, TI85, TI86, SHARP OZ
#define BEEP_TSTATES 750000.0 /* 6 Mhz */
/* TI-83 Plus should have 1875000.0 (15 Mhz) if Silver Edition */
/* #define BEEP_TSTATES 1875000.0 */
#endif
#ifdef ACE
#define BEEP_TSTATES 406250.0 /* 3.25 Mhz */
#endif
/* We always get Z88, so it can't be a condition */
#ifndef BEEP_TSTATES
#define BEEP_TSTATES 410000.0 /* Z88 -- 3.28 Mhz */
#endif
#endif
|