diff options
author | 2008-03-03 01:51:31 +0000 | |
---|---|---|
committer | 2008-03-03 01:51:31 +0000 | |
commit | e31f9a631301dace92853014f9c8a909f7e02d3e (patch) | |
tree | 7a628da91c1e779225f87c96f5b80373e8496f38 /src/emu/streams.h | |
parent | 05702939cde6179483f2b0f586ec1fb696933e41 (diff) |
Normalized function pointer typedefs: they are now all
suffixed with _func. Did this throughout the core and
drivers I was familiar with.
Fixed gcc compiler error with recent render.c changes.
gcc does not like explicit (int) casts on float or
double functions. This is fracking annoying and stupid,
but there you have it.
Diffstat (limited to 'src/emu/streams.h')
-rw-r--r-- | src/emu/streams.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/streams.h b/src/emu/streams.h index 2bdb80ad20c..8f72bddd886 100644 --- a/src/emu/streams.h +++ b/src/emu/streams.h @@ -21,7 +21,7 @@ typedef struct _sound_stream sound_stream; -typedef void (*stream_callback)(void *param, stream_sample_t **inputs, stream_sample_t **outputs, int samples); +typedef void (*stream_update_func)(void *param, stream_sample_t **inputs, stream_sample_t **outputs, int samples); @@ -46,7 +46,7 @@ void streams_update(running_machine *machine); /* ----- stream configuration and setup ----- */ /* create a new stream */ -sound_stream *stream_create(int inputs, int outputs, int sample_rate, void *param, stream_callback callback); +sound_stream *stream_create(int inputs, int outputs, int sample_rate, void *param, stream_update_func callback); /* configure a stream's input */ void stream_set_input(sound_stream *stream, int index, sound_stream *input_stream, int output_index, float gain); |