// license:BSD-3-Clause // copyright-holders:Robbbert /******************************************************************** Support for Samsung SPC-1000 cassette images Tape formats: TAP: This is a series of 0x30 and 0x31 bytes, representing binary 0 and 1. It includes the header and leaders. CAS: This format has not been investigated yet. STA: This format has not been investigated yet, but is assumed to be the save state of some other emulator. IPL: This format has not been investigated yet. ********************************************************************/ #include "spc1000_cas.h" #define WAVEENTRY_LOW -32768 #define WAVEENTRY_HIGH 32767 #define SPC1000_WAV_FREQUENCY 17000 // image size static int spc1000_image_size; static int spc1000_put_samples(INT16 *buffer, int sample_pos, int count, int level) { if (buffer) { for (int i=0; i