aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/sfx_pcm.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sfx/sfx_pcm.h')
-rw-r--r--engines/sci/sfx/sfx_pcm.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/engines/sci/sfx/sfx_pcm.h b/engines/sci/sfx/sfx_pcm.h
index ca4d281926..6a588ba387 100644
--- a/engines/sci/sfx/sfx_pcm.h
+++ b/engines/sci/sfx/sfx_pcm.h
@@ -50,53 +50,6 @@ struct sfx_pcm_config_t {
unsigned int format; /* Sample format (SFX_PCM_FORMAT_*) */
};
-#define PCM_FEED_TIMESTAMP 0 /* New timestamp available */
-#define PCM_FEED_IDLE 1 /* No sound ATM, but new timestamp may be available later */
-#define PCM_FEED_EMPTY 2 /* Feed is finished, can be destroyed */
-
-struct sfx_pcm_feed_t {
- /* PCM feeds are sources of input for the PCM mixer. Their member functions
- ** are invoked as callbacks on demand, to provide the mixer with input it
- ** (in turn) passes on to PCM output devices.
- ** PCM feeds must explicitly register themselves with the mixer in order
- ** to be considered.
- */
-
- int (*poll)(sfx_pcm_feed_t *self, byte *dest, int size);
- /* Asks the PCM feed to write out the next stuff it would like to have written
- ** Parameters: (sfx_pcm_feed_t *) self: Self reference
- ** (byte *) dest: The destination buffer to write to
- ** (int) size: The maximum number of _frames_ (not neccessarily bytes)
- ** to write
- ** Returns : (int) The number of frames written
- ** If the number of frames written is smaller than 'size', the PCM feed will
- ** be queried for a new timestamp afterwards, or destroyed if no new timestamp
- ** is available.
- */
-
- void (*destroy)(sfx_pcm_feed_t *self);
- /* Asks the PCM feed to free all resources it occupies
- ** Parameters: (sfx_pcm_feed_t *) self: Self reference
- ** free(self) should be part of this function, if applicable.
- */
-
- int (*get_timestamp)(sfx_pcm_feed_t *self, Audio::Timestamp &timestamp);
- /* Determines the timestamp of the next frame-to-read
- ** Returns : (Timestamp &) timestamp: The timestamp of the next frame
- ** (int) PCM_FEED_*
- ** This function is OPTIONAL and may be NULL
- */
-
- void *internal; /* The private bits of a PCM feed. */
-
- sfx_pcm_config_t conf; /* The channel's setup */
-
- const char *debug_name; /* The channel name, for debugging */
- int debug_nr; /* A channel number relative to the channel name, for debugging
- ** (print in hex) */
- int frame_size; /* Frame size, computed by the mixer for the feed */
-
-};
int sfx_pcm_available();
/* Determines whether a PCM device is available and has been initialised