Commit 2869ca70 authored by sletz's avatar sletz
Browse files

Cleanup.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4207 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 3f9a3d85
......@@ -266,3 +266,9 @@ SERVER_EXPORT jack_time_t GetMicroSeconds()
{
return _jack_get_microseconds();
}
SERVER_EXPORT jack_time_t jack_get_microseconds()
{
return _jack_get_microseconds();
}
......@@ -34,31 +34,6 @@
#include <regex.h>
#include <string.h>
/*
#include <jack/internal.h>
#include <jack/engine.h>
#include <jack/messagebuffer.h>
#include <sysdeps/time.h>
#include "alsa_driver.h"
#include "hammerfall.h"
#include "hdsp.h"
#include "ice1712.h"
#include "usx2y.h"
#include "generic.h"
*/
/*
#include "JackAlsaDriver.h"
#include "JackEngineControl.h"
#include "JackClientControl.h"
#include "JackPort.h"
#include "JackGraphManager.h"
#include "JackLockedEngine.h"
#include "JackPosixThread.h"
#include "JackCompilerDeps.h"
*/
#include "alsa_driver.h"
#include "hammerfall.h"
#include "hdsp.h"
......@@ -70,8 +45,6 @@
#include "alsa_midi_impl.h"
//#include "JackServerGlobals.h"
extern void store_work_time (int);
extern void store_wait_time (int);
extern void show_wait_times ();
......@@ -118,7 +91,6 @@ jack_driver_nt_init (jack_driver_nt_t * driver)
driver->nt_run_cycle = 0;
}
static void
alsa_driver_release_channel_dependent_memory (alsa_driver_t *driver)
{
......@@ -1147,14 +1119,6 @@ alsa_driver_stop (alsa_driver_t *driver)
*/
// Steph
/*
int chn;
for (chn = 0; i < fPlaybackChannels; chn++) {
jack_default_audio_sample_t* buf =
(jack_default_audio_sample_t*)fGraphManager->GetBuffer(fPlaybackPortList[chn], fEngineControl->fBufferSize);
memset (buf, 0, sizeof (jack_default_audio_sample_t) * fEngineControl->fBufferSize);
}
*/
ClearOutput();
if (driver->playback_handle) {
......@@ -1385,7 +1349,6 @@ alsa_driver_wait (alsa_driver_t *driver, int extra_fd, int *status, float
poll_ret = jack_get_microseconds ();
// Steph
//fBeginDateUst = poll_ret;
SetTime(poll_ret);
if (extra_fd < 0) {
......@@ -1666,15 +1629,6 @@ alsa_driver_read (alsa_driver_t *driver, jack_nframes_t nframes)
buf + nread, contiguous);
}
*/
/*
int chn;
for (chn = 0; chn < fCaptureChannels; chn++) {
if (fGraphManager->GetConnectionsNum(fCapturePortList[chn]) > 0) {
buf = (jack_default_audio_sample_t*)fGraphManager->GetBuffer(fCapturePortList[chn], orig_nframes);
alsa_driver_read_from_channel (driver, chn, buf + nread, contiguous);
}
}
*/
ReadInput(orig_nframes, contiguous, nread);
if ((err = snd_pcm_mmap_commit (driver->capture_handle,
......@@ -1742,15 +1696,6 @@ alsa_driver_write (alsa_driver_t* driver, jack_nframes_t nframes)
}
}
*/
/*
int chn;
for (chn = 0; chn < fCaptureChannels; chn++) {
port = fGraphManager->GetPort(fCapturePortList[chn]);
if (port->MonitoringInput()) {
driver->input_monitor_mask |= (1 << chn);
}
}
*/
MonitorInput();
if (driver->hw_monitoring) {
......@@ -1802,22 +1747,6 @@ alsa_driver_write (alsa_driver_t* driver, jack_nframes_t nframes)
*/
// Steph
/*
int chn;
for (chn = 0; chn < fPlaybackChannels; chn++) {
// Ouput ports
if (fGraphManager->GetConnectionsNum(fPlaybackPortList[chn]) > 0) {
buf = (jack_default_audio_sample_t*)fGraphManager->GetBuffer(fPlaybackPortList[chn], orig_nframes);
alsa_driver_write_to_channel (driver, chn, buf + nwritten, contiguous);
// Monitor ports
if (fWithMonitorPorts && fGraphManager->GetConnectionsNum(fMonitorPortList[chn]) > 0) {
monbuf = (jack_default_audio_sample_t*)fGraphManager->GetBuffer(fMonitorPortList[chn], orig_nframes);
memcpy(monbuf + nwritten, buf + nwritten, contiguous * sizeof(jack_default_audio_sample_t));
}
}
}
*/
WriteOutput(orig_nframes, contiguous, nwritten);
if (!bitset_empty (driver->channels_not_done)) {
......@@ -1888,6 +1817,8 @@ alsa_driver_detach (alsa_driver_t *driver)
{
return 0;
}
//Steph
/*
static int
alsa_driver_attach (alsa_driver_t *driver)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment