Previous 15994 Revisions Next

r1839 Tuesday 4th March, 2008 at 20:10:02 UTC by Wilbert Pol
[ODYSSEY2] Reorganized audio and video code a bit.
[src/mess]mess.mak
[src/mess/audio]odyssey2.c
[src/mess/includes]odyssey2.h
[src/mess/video]odyssey2.c

src/mess/audio/odyssey2.c
r1838r1839
1/**************************************************************************************
2
3   audio/odyssey2.c
4
5  The VDC handles the audio in the Odyssey 2, so most of the code can be found
6  in video/odyssey2.c.
7
8***************************************************************************************/
9#include "driver.h"
10#include "includes/odyssey2.h"
11#include "deprecat.h"
12
13sound_stream *odyssey2_sh_channel;
14
15const struct CustomSound_interface odyssey2_sound_interface =
16{
17   odyssey2_sh_start
18};
19
20void *odyssey2_sh_start(int clock, const struct CustomSound_interface *config)
21{
22   odyssey2_sh_channel = stream_create(0, 1, Machine->sample_rate, 0, odyssey2_sh_update );
23   return (void *) ~0;
24}
src/mess/includes/odyssey2.h
r1838r1839
4343
4444void odyssey2_sh_update( void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length );
4545
46
47/*----------- defined in audio/odyssey2.c -----------*/
48
49extern sound_stream *odyssey2_sh_channel;
5046extern const struct CustomSound_interface odyssey2_sound_interface;
51void *odyssey2_sh_start(int clock, const struct CustomSound_interface *config);
5247
53
5448/*----------- defined in machine/odyssey2.c -----------*/
5549
5650DRIVER_INIT( odyssey2 );
src/mess/video/odyssey2.c
r1838r1839
169169static int         start_vpos;
170170static int         start_vblank;
171171
172static sound_stream *odyssey2_sh_channel;
172173
174
173175PALETTE_INIT( odyssey2 )
174176{
175177   palette_set_colors_rgb(machine, 0, odyssey2_colors, sizeof(odyssey2_colors) / 3);
r1838r1839
554556   return 0;
555557}
556558
559static void *odyssey2_sh_start(int clock, const struct CustomSound_interface *config)
560{
561   odyssey2_sh_channel = stream_create(0, 1, Machine->sample_rate, 0, odyssey2_sh_update );
562   return (void *) ~0;
563}
564
565const struct CustomSound_interface odyssey2_sound_interface =
566{
567   odyssey2_sh_start
568};
569
557570void odyssey2_sh_update( void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length )
558571{
559572   static UINT32 signal;
src/mess/mess.mak
r1838r1839
990990$(MESSOBJ)/magnavox.a: \
991991   $(MESS_MACHINE)/odyssey2.o \
992992   $(MESS_VIDEO)/odyssey2.o \
993   $(MESS_AUDIO)/odyssey2.o \
994993   $(MESS_DRIVERS)/odyssey2.o
995994
996995$(MESSOBJ)/teamconc.a: \

Previous 15994 Revisions Next


© 1998-2018 The MESS Team