2 * sound.h (mar-2001 nzc)
6 * ***** BEGIN GPL LICENSE BLOCK *****
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23 * All rights reserved.
25 * The Original Code is: all of this file.
27 * Contributor(s): none yet.
29 * ***** END GPL LICENSE BLOCK *****
44 struct bSound* sound_new_file(struct Main *main, char* filename);
46 // XXX unused currently
48 struct bSound* sound_new_buffer(struct bContext *C, struct bSound *source);
50 struct bSound* sound_new_limiter(struct bContext *C, struct bSound *source, float start, float end);
53 void sound_delete(struct bContext *C, struct bSound* sound);
55 void sound_cache(struct bSound* sound, int ignore);
57 void sound_delete_cache(struct bSound* sound);
59 void sound_load(struct Main *main, struct bSound* sound);
61 void sound_free(struct bSound* sound);
63 void sound_unlink(struct bContext *C, struct bSound* sound);
65 struct SoundHandle* sound_new_handle(struct Scene *scene, struct bSound* sound, int startframe, int endframe, int frameskip);
67 void sound_delete_handle(struct Scene *scene, struct SoundHandle *handle);
69 void sound_update_playing(struct bContext *C);
71 void sound_scrub(struct bContext *C);
74 AUD_Device* sound_mixdown(struct Scene *scene, AUD_Specs specs, int start, int end, float volume);
77 void sound_stop_all(struct bContext *C);