Adding support for writing zlib compressed set files and fixing audio
[terminatorX.git] / src / tX_engine.cc
index 0b48a3095cf348c0eb61f01f6b39be4ea7d23548..f0548c650830edabc87130fc7222152b31ca8f82 100644 (file)
@@ -257,7 +257,7 @@ tX_engine_error tX_engine :: run() {
        vtt_class::set_sample_rate(device->get_sample_rate());
        
        if (recording_request) {
-               if (tape->start_record(globals.record_filename, device->get_buffersize()*sizeof(int16_t), device->get_sample_rate())) {
+               if (tape->start_record(globals.record_filename, vtt_class::get_mix_buffer_size(), device->get_sample_rate())) {
                        device->close();
                        delete device;
                        device=NULL;