[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11016] branches/soc-2007-hcube/source/ blender/include/BAU_soundsystem.h: Added new blender side interface.
Csaba Hruska
csaba.hruska at gmail.com
Fri Jun 22 19:04:01 CEST 2007
Revision: 11016
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11016
Author: hcube
Date: 2007-06-22 19:04:01 +0200 (Fri, 22 Jun 2007)
Log Message:
-----------
Added new blender side interface.
Added Paths:
-----------
branches/soc-2007-hcube/source/blender/include/BAU_soundsystem.h
Added: branches/soc-2007-hcube/source/blender/include/BAU_soundsystem.h
===================================================================
--- branches/soc-2007-hcube/source/blender/include/BAU_soundsystem.h (rev 0)
+++ branches/soc-2007-hcube/source/blender/include/BAU_soundsystem.h 2007-06-22 17:04:01 UTC (rev 11016)
@@ -0,0 +1,32 @@
+#ifndef BAU_SOUNDSYSTEM_H
+#define BAU_SOUNDSYSTEM_H
+
+#include "DNA_sound_types.h"
+
+// general functions
+void audio_initialize(void);
+int audio_isinitialized(void);
+void audio_finalize(void);
+int audio_getmixrate(void);
+
+// bSample functions
+struct bSample* audio_sample_new(char *name);
+struct bSample* audio_sample_find(char *name);
+int audio_sample_load(struct bSample* sample);
+void audio_sample_unload(struct bSample* sample);
+
+// bSound functions
+// hint: a bSound->sample cant be NULL, always have to be a valid pointer
+struct bSound* audio_sound_new(char *name);
+struct bSound* audio_sound_clone(struct bSound* originalsound);
+struct bSound* audio_sound_findbyid(char *id_name);
+
+int audio_sound_isplaying(struct bSound *sound);
+void audio_sound_play(struct bSound *sound);
+void audio_sound_stop(struct bSound *sound);
+
+void audio_sound_stopall(void);
+void audio_sound_loadall(void);
+
+// these functions are implemented in soundsystem.c
+#endif
More information about the Bf-blender-cvs
mailing list