70 for (
int i = 0; i <
soundMap.size(); i++) {
127 if (volume !=
nullptr)
145 if ((index >= 0) && (index <
soundMap.size())) {
147 int i =
getIndex(index,
nullptr, &sd);
159 static bool offsets =
false;
188 ImGui::Text(
"%.1f %.1f %.1f", ss.getPos().x, ss.getPos().y, ss.getPos().z);
199 if (ss.isPlaying()) {
214 static bool offsets2 =
false;
238 if ((sd.getSample() < 0) || (sd.getSample() >=
sampleIndices.size())) {
245 if (sd.getSource() >= 0) {
268 static int index = 0;
IMGUI_API void PopItemWidth()
IMGUI_API bool CollapsingHeader(const char *label, const char *str_id=NULL, bool display_frame=true, bool default_open=false)
static int getIndex(int index, float *volume=nullptr, SoundDetail **sd=nullptr)
IMGUI_API void NextColumn()
IMGUI_API void SetColumnOffset(int column_index, float offset_x)
static std::vector< int > sampleIndices
static std::vector< SoundDetail > soundDetails
static void stop(int source)
static LogLevel & get(int level)
static int sourceAt(int source, glm::vec3 pos)
static int prepareSources()
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0), bool repeat_when_held=false)
static void setEnabled(bool on=true)
static void addSampleIndex(int index)
static void addSoundSource(glm::vec3 p, int id, int flags)
static std::vector< int > soundMap
static void addSoundMapEntry(int id)
IMGUI_API void Columns(int count=1, const char *id=NULL, bool border=true)
IMGUI_API void SameLine(int column_x=0, int spacing_w=-1)
static int addSource(int buffer, float volume=1.0f, bool atListener=false, bool loop=false)
static void setPosition(glm::vec3 p)
IMGUI_API void Text(const char *fmt,...)
IMGUI_API void Separator()
static std::vector< SoundSource > soundSources
IMGUI_API float GetWindowWidth()
static void play(int source, bool atListener=false)
IMGUI_API bool SliderInt(const char *label, int *v, int v_min, int v_max, const char *display_format="%.0f")
IMGUI_API void PushItemWidth(float item_width)
static int playSound(int index)
static void addSoundDetail(int sample, float volume)
IMGUI_API void PushID(const char *str_id)