| 1 |
/* |
|---|
| 2 |
* Sweep, a sound wave editor. |
|---|
| 3 |
* |
|---|
| 4 |
* Copyright (C) 2000 Conrad Parker |
|---|
| 5 |
* |
|---|
| 6 |
* This program is free software; you can redistribute it and/or modify |
|---|
| 7 |
* it under the terms of the GNU General Public License as published by |
|---|
| 8 |
* the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 |
* (at your option) any later version. |
|---|
| 10 |
* |
|---|
| 11 |
* This program is distributed in the hope that it will be useful, |
|---|
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 |
* GNU General Public License for more details. |
|---|
| 15 |
* |
|---|
| 16 |
* You should have received a copy of the GNU General Public License |
|---|
| 17 |
* along with this program; if not, write to the Free Software |
|---|
| 18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 19 |
*/ |
|---|
| 20 |
|
|---|
| 21 |
#ifndef __EDIT_H__ |
|---|
| 22 |
#define __EDIT_H__ |
|---|
| 23 |
|
|---|
| 24 |
#include <sweep/sweep_types.h> |
|---|
| 25 |
|
|---|
| 26 |
void * |
|---|
| 27 |
sweep_large_alloc_zero (size_t len, int prot); |
|---|
| 28 |
|
|---|
| 29 |
void * |
|---|
| 30 |
sweep_large_alloc_data (size_t len, void * data, int prot); |
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
sw_framecount_t |
|---|
| 34 |
clipboard_width (void); |
|---|
| 35 |
|
|---|
| 36 |
sw_edit_buffer * |
|---|
| 37 |
edit_buffer_ref (sw_edit_buffer * eb); |
|---|
| 38 |
|
|---|
| 39 |
sw_edit_buffer * |
|---|
| 40 |
edit_buffer_from_sample (sw_sample * sample); |
|---|
| 41 |
|
|---|
| 42 |
void |
|---|
| 43 |
edit_buffer_destroy (sw_edit_buffer * eb); |
|---|
| 44 |
|
|---|
| 45 |
sw_sample * |
|---|
| 46 |
splice_out_sel (sw_sample * sample); |
|---|
| 47 |
|
|---|
| 48 |
sw_sample * |
|---|
| 49 |
splice_in_eb (sw_sample * sample, sw_edit_buffer * eb); |
|---|
| 50 |
|
|---|
| 51 |
sw_sample * |
|---|
| 52 |
crop_out (sw_sample * sample); |
|---|
| 53 |
|
|---|
| 54 |
sw_sample * |
|---|
| 55 |
crop_in (sw_sample * sample, sw_edit_buffer * eb); |
|---|
| 56 |
|
|---|
| 57 |
sw_sample * |
|---|
| 58 |
paste_over (sw_sample * sample, sw_edit_buffer * eb); |
|---|
| 59 |
|
|---|
| 60 |
void |
|---|
| 61 |
do_copy (sw_sample * sample); |
|---|
| 62 |
|
|---|
| 63 |
void |
|---|
| 64 |
do_cut (sw_sample * sample); |
|---|
| 65 |
|
|---|
| 66 |
void |
|---|
| 67 |
do_clear (sw_sample * sample); |
|---|
| 68 |
|
|---|
| 69 |
void |
|---|
| 70 |
do_delete (sw_sample * sample); |
|---|
| 71 |
|
|---|
| 72 |
void |
|---|
| 73 |
do_crop (sw_sample * sample); |
|---|
| 74 |
|
|---|
| 75 |
sw_op_instance * |
|---|
| 76 |
do_paste_in (sw_sample * in, sw_sample ** out); |
|---|
| 77 |
|
|---|
| 78 |
void |
|---|
| 79 |
do_paste_insert (sw_sample * sample); |
|---|
| 80 |
|
|---|
| 81 |
void |
|---|
| 82 |
do_paste_mix (sw_sample * sample, gdouble src_gain, gdouble dest_gain); |
|---|
| 83 |
|
|---|
| 84 |
void |
|---|
| 85 |
do_paste_xfade (sw_sample * sample, gdouble src_gain_start, |
|---|
| 86 |
gdouble src_gain_end, gdouble dest_gain_start, |
|---|
| 87 |
gdouble dest_gain_end); |
|---|
| 88 |
|
|---|
| 89 |
sw_op_instance * |
|---|
| 90 |
do_paste_over (sw_sample * in, sw_sample ** out); |
|---|
| 91 |
|
|---|
| 92 |
#if 0 |
|---|
| 93 |
void |
|---|
| 94 |
do_paste_as_new (sw_sample * in, sw_sample ** out); |
|---|
| 95 |
|
|---|
| 96 |
#else |
|---|
| 97 |
|
|---|
| 98 |
sw_sample * |
|---|
| 99 |
do_paste_as_new (void); |
|---|
| 100 |
|
|---|
| 101 |
#endif |
|---|
| 102 |
|
|---|
| 103 |
#endif /* __EDIT_H__ */ |
|---|