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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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 *****
45 void sound_force_device(int device);
46 int sound_define_from_str(char *str);
48 struct bSound* sound_new_file(struct Main *main, char* filename);
50 // XXX unused currently
52 struct bSound* sound_new_buffer(struct bContext *C, struct bSound *source);
54 struct bSound* sound_new_limiter(struct bContext *C, struct bSound *source, float start, float end);
57 void sound_delete(struct bContext *C, struct bSound* sound);
59 void sound_cache(struct bSound* sound, int ignore);
61 void sound_delete_cache(struct bSound* sound);
63 void sound_load(struct Main *main, struct bSound* sound);
65 void sound_free(struct bSound* sound);
68 AUD_Device* sound_mixdown(struct Scene *scene, AUD_DeviceSpecs specs, int start, float volume);
71 void sound_create_scene(struct Scene *scene);
73 void sound_destroy_scene(struct Scene *scene);
75 void* sound_add_scene_sound(struct Scene *scene, struct Sequence* sequence, int startframe, int endframe, int frameskip);
77 void sound_remove_scene_sound(struct Scene *scene, void* handle);
79 void sound_mute_scene_sound(struct Scene *scene, void* handle, char mute);
81 void sound_move_scene_sound(struct Scene *scene, void* handle, int startframe, int endframe, int frameskip);
83 void sound_play_scene(struct Scene *scene);
85 void sound_stop_scene(struct Scene *scene);
87 void sound_seek_scene(struct bContext *C);
89 float sound_sync_scene(struct Scene *scene);
91 int sound_read_sound_buffer(struct bSound* sound, float* buffer, int length);