aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/include
diff options
context:
space:
mode:
authorFilippos Karapetis2009-02-17 09:15:17 +0000
committerFilippos Karapetis2009-02-17 09:15:17 +0000
commitffc07febeb08dfade2242441c9b963805634e742 (patch)
tree71b4d96a029613e907b6dc7b09e40c2155306d36 /engines/sci/include
parent0e33a5647883c0a0f02f012b250aca98b549fea7 (diff)
downloadscummvm-rg350-ffc07febeb08dfade2242441c9b963805634e742.tar.gz
scummvm-rg350-ffc07febeb08dfade2242441c9b963805634e742.tar.bz2
scummvm-rg350-ffc07febeb08dfade2242441c9b963805634e742.zip
Removed unused SFX code
svn-id: r38396
Diffstat (limited to 'engines/sci/include')
-rw-r--r--engines/sci/include/sfx_pcm.h36
-rw-r--r--engines/sci/include/sfx_timer.h30
2 files changed, 0 insertions, 66 deletions
diff --git a/engines/sci/include/sfx_pcm.h b/engines/sci/include/sfx_pcm.h
index f05e96d331..c4118b3b8f 100644
--- a/engines/sci/include/sfx_pcm.h
+++ b/engines/sci/include/sfx_pcm.h
@@ -33,13 +33,6 @@
#include "sci/include/sfx_time.h"
#include "sci/include/scitypes.h"
-/* A number of standard options most devices will support */
-#define SFX_PCM_OPTION_RATE "rate" /* Sampling rate: Number of samples per second */
-#define SFX_PCM_OPTION_BITS "bits" /* Sample size in bits */
-#define SFX_PCM_OPTION_STEREO "stereo" /* Whether to support stereo output */
-#define SFX_PCM_OPTION_BUF_SIZE "buffer-size" /* Requested buffer size */
-/* Device implementors are advised to use these constants whenever possible. */
-
#define SFX_PCM_MONO 0
#define SFX_PCM_STEREO_LR 1 /* left sample, then right sample */
#define SFX_PCM_STEREO_RL 2 /* right sample, then left sample */
@@ -91,9 +84,6 @@ typedef struct _sfx_pcm_device {
** endianness/signedness/bit size/mono-vs-stereo conversions.
*/
- const char *name;
- const char *version;
-
int (*init)(struct _sfx_pcm_device *self);
/* Initializes the device
** Parameters: (sfx_pcm_device_t *) self: Self reference
@@ -103,20 +93,6 @@ typedef struct _sfx_pcm_device {
** specified beforehand.
*/
- void (*exit)(struct _sfx_pcm_device *self);
- /* Uninitialises the device
- ** Parameters: (sfx_pcm_device_t *) self: Self reference
- */
-
- int (*set_option)(struct _sfx_pcm_device *self, char *name, char *value);
- /* Sets an option for the device
- ** Parameters: (sfx_pcm_device_t *) self: Self reference
- ** (char *) name: Name of the option to set
- ** (char *) value: Value of the option to set
- ** Returns : (int) SFX_OK on success, SFX_ERROR otherwise (unsupported option)
- ** May be NULL
- */
-
int (*output)(struct _sfx_pcm_device *self, byte *buf,
int count, sfx_timestamp_t *timestamp);
/* Writes output to the device
@@ -153,18 +129,6 @@ typedef struct _sfx_pcm_device {
** output() will block or fail, drained according
** to conf.rate */
- /* The following are optional */
- sfx_timer_t *timer;
- /* Many PCM drivers use a callback mechanism, which can be
- ** exploited as a timer. Such a timer may be exported here and
- ** will be preferred over other timers. */
- /* This is an _optional_ timer provided by the PCM
- ** subsystem (may be NULL). It is checked for afer
- ** initialisation, and used in preference to any
- ** other timers available.
- */
- void *internal; /* The private bits */
-
} sfx_pcm_device_t;
diff --git a/engines/sci/include/sfx_timer.h b/engines/sci/include/sfx_timer.h
index 8b17067a20..8280b430af 100644
--- a/engines/sci/include/sfx_timer.h
+++ b/engines/sci/include/sfx_timer.h
@@ -31,20 +31,7 @@
#include "sci/include/sfx_core.h"
typedef struct {
- const char *name;
- const char *version;
-
int delay_ms; /* Approximate delay (in milliseconds) between calls */
- int flags;
-
- int
- (*set_option)(char *name, char *value);
- /* Sets an option for the timing mechanism
- ** Parameters: (char *) name: The name describing what to set
- ** (char *) value: The value to set
- ** Returns : (int) SFX_OK, or SFX_ERROR if the name wasn't understood
- ** May be NULL
- */
int
(*init)(void (*callback)(void *data), void *data);
@@ -64,23 +51,6 @@ typedef struct {
** All resources allocated with the timer should be freed as an effect
** of this.
*/
-
- int
- (*block)(void);
- /* Blocks the timer
- ** Returns : (int) SFX_OK on success, SFX_ERROR on failure
- ** When this function returns it is guaranteed that no timer callback is
- ** currently being executed and that no new timer callback will occur
- ** until unblock() is called.
- */
-
- int
- (*unblock)(void);
- /* Unblocks the timer
- ** Returns : (int) SFX_OK on success, SFX_ERROR on failure
- ** Any callbacks that were blocked should be executed immediately when
- ** possible.
- */
} sfx_timer_t;
#endif /* !_FREESCI_SFX_TIMER_H_ */