2008-02-21 07:39:00 +01:00
|
|
|
|
|
|
|
/*******************************************************************************/
|
|
|
|
/* Copyright (C) 2008 Jonathan Moore Liles */
|
|
|
|
/* */
|
|
|
|
/* This program is free software; you can redistribute it and/or modify it */
|
|
|
|
/* under the terms of the GNU General Public License as published by the */
|
|
|
|
/* Free Software Foundation; either version 2 of the License, or (at your */
|
|
|
|
/* option) any later version. */
|
|
|
|
/* */
|
|
|
|
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
|
|
|
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
|
|
|
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
|
|
|
/* more details. */
|
|
|
|
/* */
|
|
|
|
/* You should have received a copy of the GNU General Public License along */
|
|
|
|
/* with This program; see the file COPYING. If not,write to the Free Software */
|
|
|
|
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|
|
|
/*******************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2008-04-19 06:16:21 +02:00
|
|
|
#include "Sequence.H"
|
2008-02-21 17:20:36 +01:00
|
|
|
#include "Region.H"
|
2008-02-21 07:39:00 +01:00
|
|
|
|
2008-04-07 12:00:16 +02:00
|
|
|
|
2008-02-21 08:17:49 +01:00
|
|
|
#include <FL/Fl_Input.H>
|
|
|
|
|
2008-04-19 06:16:21 +02:00
|
|
|
class Audio_Sequence : public Sequence
|
2008-02-21 07:39:00 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2008-04-19 06:16:21 +02:00
|
|
|
Audio_Sequence ( int X, int Y, int W, int H ) : Sequence( X, Y, W, H )
|
2008-02-21 07:39:00 +01:00
|
|
|
{
|
2008-03-09 22:27:06 +01:00
|
|
|
log_create();
|
|
|
|
}
|
|
|
|
|
2008-04-19 06:16:21 +02:00
|
|
|
~Audio_Sequence ( )
|
2008-03-09 22:27:06 +01:00
|
|
|
{
|
|
|
|
log_destroy();
|
2008-02-21 07:39:00 +01:00
|
|
|
}
|
2008-02-21 13:57:33 +01:00
|
|
|
|
2008-03-09 18:56:17 +01:00
|
|
|
|
2008-04-19 06:16:21 +02:00
|
|
|
Sequence * clone_empty ( void )
|
2008-03-09 18:56:17 +01:00
|
|
|
{
|
2008-04-19 06:16:21 +02:00
|
|
|
Audio_Sequence *t = new Audio_Sequence( x(), y(), w(), h() );
|
2008-03-09 18:56:17 +01:00
|
|
|
|
|
|
|
return t;
|
|
|
|
}
|
|
|
|
|
2008-04-19 06:16:21 +02:00
|
|
|
const char *class_name ( void ) { return "Audio_Sequence"; }
|
2008-03-09 01:38:34 +01:00
|
|
|
|
2008-02-22 20:30:49 +01:00
|
|
|
int handle ( int m );
|
|
|
|
void dump ( void );
|
2008-03-03 19:59:05 +01:00
|
|
|
void remove_selected ( void );
|
2008-02-21 13:57:33 +01:00
|
|
|
|
2008-04-07 12:00:16 +02:00
|
|
|
nframes_t play ( sample_t *buf, nframes_t frame, nframes_t nframes, int channels );
|
2008-04-07 10:12:01 +02:00
|
|
|
|
2008-02-21 07:39:00 +01:00
|
|
|
};
|