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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
/*
* ux_sample.c
*
* Unix interface, sound support
*
*/
#define __UNIX_PORT_FILE
#ifdef USE_NCURSES_H
#include <ncurses.h>
#else
#include <curses.h>
#endif
#include "frotz.h"
#include "ux_frotz.h"
/*
* os_beep
*
* Play a beep sound. Ideally, the sound should be high- (number == 1)
* or low-pitched (number == 2).
*
*/
void os_beep (int number)
{
beep();
}/* os_beep */
/*
* os_prepare_sample
*
* Load the sample from the disk.
*
*/
void os_prepare_sample (int number)
{
/* Not implemented */
}/* os_prepare_sample */
/*
* os_start_sample
*
* Play the given sample at the given volume (ranging from 1 to 8 and
* 255 meaning a default volume). The sound is played once or several
* times in the background (255 meaning forever). In Z-code 3 the
* repeats value is always 0 and the number of repeats is taken from
* the sound file itself. The end_of_sound function is called as soon
* as the sound finishes.
*
*/
void os_start_sample (int number, int volume, int repeats)
{
/* Not implemented */
}/* os_start_sample */
/*
* os_stop_sample
*
* Turn off the current sample.
*
*/
void os_stop_sample (void)
{
/* Not implemented */
}/* os_stop_sample */
/*
* os_finish_with_sample
*
* Remove the current sample from memory (if any).
*
*/
void os_finish_with_sample (void)
{
/* Not implemented */
}/* os_finish_with_sample */
/*
* os_wait_sample
*
* Stop repeating the current sample and wait until it finishes.
*
*/
void os_wait_sample (void)
{
/* Not implemented */
}/* os_wait_sample */
|