summaryrefslogblamecommitdiffstatshomepage
path: root/src/devices/sound/tiaintf.h
blob: 36c5126ba04f1e8b92956833709176845d881593 (plain) (tree)
1
2
3
4
5
6
7
8

                                        

                            
 
            
 
                                                                            



                                                                            
 
                                                                 

       
                                                                                                    

                                             
 

                                 

                                             

                                        
                                                                                                                                          
 
        

                                

  
                                    
 
                              
// license:GPL-2.0+
// copyright-holders:Ron Fries,Dan Boris
#ifndef MAME_SOUND_TIAINTF_H
#define MAME_SOUND_TIAINTF_H

#pragma once

//**************************************************************************
//  TYPE DEFINITIONS
//**************************************************************************

// ======================> tia_device

class tia_device : public device_t, public device_sound_interface
{
public:
	tia_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

	DECLARE_WRITE8_MEMBER( tia_sound_w );

protected:
	// device-level overrides
	virtual void device_start() override;
	virtual void device_stop() override;

	// sound stream update overrides
	virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;

private:
	sound_stream *m_channel;
	void *m_chip;
};

DECLARE_DEVICE_TYPE(TIA, tia_device)

#endif // MAME_SOUND_TIAINTF_H