[00:09:12] *** predaeus has quit IRC [00:28:32] *** barra has quit IRC [00:38:00] *** Walt_ has quit IRC [01:14:28] *** Walt has joined #openal [02:07:43] *** Walt has quit IRC [02:10:44] *** Walt has joined #openal [02:33:04] *** juanmabc has quit IRC [02:55:54] *** Walt has quit IRC [03:33:24] *** Walt has joined #openal [03:38:48] *** Walt has quit IRC [03:46:50] *** Walt has joined #openal [04:12:54] *** Walt has quit IRC [04:30:40] *** Walt has joined #openal [04:31:23] *** Walt has quit IRC [04:34:38] *** Walt has joined #openal [04:46:55] *** Walt_ has joined #openal [04:47:03] *** Walt_ has quit IRC [05:17:24] *** Walt has quit IRC [05:53:30] *** jvalenzu has quit IRC [06:06:26] *** jvalenzu has joined #openal [06:07:37] *** Walt has joined #openal [07:40:42] *** Walt has quit IRC [08:07:04] *** Setien has joined #openal [08:07:04] *** ChanServ sets mode: +v Setien [08:46:24] *** Walt has joined #openal [09:08:03] *** Walt has quit IRC [09:51:20] *** juanmabc has joined #openal [09:51:20] *** ChanServ sets mode: +v juanmabc [10:12:08] *** juanmabc has quit IRC [10:49:07] *** predaeus has joined #openal [10:49:08] *** ChanServ sets mode: +v predaeus [11:03:01] *** nitrotrigger has joined #openal [11:58:17] *** Alam_Debian has quit IRC [11:58:25] *** Setien has quit IRC [11:58:28] *** theDon has quit IRC [11:58:51] *** ChanServ has quit IRC [11:58:52] *** jvalenzu has quit IRC [11:59:02] *** KittyCat has quit IRC [11:59:19] *** predaeus has quit IRC [11:59:23] *** qknight has quit IRC [11:59:51] *** ChanServ has joined #openal [11:59:51] *** predaeus has joined #openal [11:59:51] *** Setien has joined #openal [11:59:52] *** jvalenzu has joined #openal [11:59:52] *** theDon has joined #openal [11:59:52] *** irc.freenode.net sets mode: +ovvv ChanServ predaeus Setien theDon [11:59:52] *** Alam_Debian has joined #openal [11:59:52] *** KittyCat has joined #openal [11:59:52] *** qknight has joined #openal [11:59:52] *** irc.freenode.net sets mode: +vv Alam_Debian KittyCat [12:06:02] <nitrotrigger> how do I convert std::string to ALbyte* for the first argument of alutLoadWAVFile()? [12:06:18] <nitrotrigger> I'm getting error for passing std::string::c_str() [12:07:46] <KittyCat> cast it to a const ALbyte* [12:07:57] <KittyCat> might need to use reinterpret_cast [12:09:42] <nitrotrigger> could you give me an example? [12:10:01] <nitrotrigger> I haven't done casting much [12:10:40] <KittyCat> alutLoadWAVFile(reinterpret_cast<const ALbyte*>(some_string.c_str()), ...) [12:11:34] <KittyCat> might be better to use alutCreateBufferFromFile, though. alutLoadWAVFile is deprecated [12:11:52] <nitrotrigger> what's the difference? [12:12:37] <KittyCat> alutCreateBufferFromFile will return an AL buffer directly, instead of having to load the data, create the buffer, and buffer the data [12:13:39] <nitrotrigger> error: invalid conversion from ?const ALbyte*? to ?ALbyte*? [12:15:08] <KittyCat> remove the const from the cast [12:15:35] <nitrotrigger> error: reinterpret_cast from type ?const char*? to type ?ALbyte*? casts away constness [12:16:17] <KittyCat> try const_cast instead of reinterpret_cast [12:16:44] <nitrotrigger> it worked [12:16:52] <nitrotrigger> now I'm getting only warnings [12:17:19] <nitrotrigger> alutLoadWAVFile is deprecated... [12:18:36] <nitrotrigger> http://rafb.net/p/yW6rXA59.html [12:23:17] <KittyCat> alutCreateBufferFromFile is probably a better choice to use. but the code looks alright [12:23:59] <nitrotrigger> :) [12:29:25] <nitrotrigger> btw. should I delete buffer or source first? [12:31:31] <KittyCat> the source, usually [12:33:29] <nitrotrigger> http://www.devmaster.net/articles/openal-tutorials/lesson1.php [12:33:36] <nitrotrigger> is this doing it wrong? [12:36:08] <KittyCat> quite wrong, actually.. [12:36:31] <KittyCat> it needs to stop the source before trying to delete it, and it needs to make sure the buffer isn't attached to a source before deleting it [12:36:54] <nitrotrigger> then I'm doing it wrong too [12:38:26] <nitrotrigger> how to detach a source from buffer? [12:42:10] <KittyCat> attach buffer 0 to the source [12:42:25] <KittyCat> or delete the non-playing source [12:44:09] <nitrotrigger> http://rafb.net/p/v8jW3t16.html [12:44:12] <nitrotrigger> something like this? [12:44:48] <KittyCat> looks good [12:45:27] <nitrotrigger> alSourceStop() is always safe to call? [12:46:30] <nitrotrigger> btw. OpenAL really needs a good tutorial [12:47:15] <nitrotrigger> my google-skills were enough for only that one [12:49:34] <KittyCat> yeah, there doesn't seem to be many good tutorials [12:49:49] <KittyCat> I made a tutorial, but it's a bit more advnaced usage than most [12:49:55] <KittyCat> *advanced [12:51:07] <nitrotrigger> btw. (ALbyte*) fname.c_str() was enough [12:51:47] <KittyCat> C++ discourages casting that way [12:52:15] <nitrotrigger> I'll then stick in your solution [12:53:07] <KittyCat> C++ tends to prefer the uglier some_cast<type>(foo), to discourage such casting all together, and just rely on inheritence [13:16:14] <nitrotrigger> http://rafb.net/p/u3Bp3z33.html [13:17:46] <nitrotrigger> should I make a buffer queue or something to prevent the sound to stop while the next loop continues? [13:18:19] <nitrotrigger> it sounds like the sample is being played and then I can easily hear it starting again [13:20:42] <nitrotrigger> argh [13:20:48] <nitrotrigger> my sample is broken :( [13:21:18] <KittyCat> if there's a break in the playback loop, yeah. openal shouldn't introduce any breaks [13:22:15] <nitrotrigger> btw. do you know any good wav editing programs? [13:22:33] <nitrotrigger> I want to get the stable engine sounds [13:22:58] <KittyCat> only one I'm really familiar with is audacity. but it had a bit of a clunky UI [13:22:58] <nitrotrigger> but all I have are sort of accelerating sounds [13:23:16] <nitrotrigger> I've tried it, and it didn't have the feature I need [13:23:48] <nitrotrigger> I actually made a suggestion to the audacity to add that feature [13:25:06] *** D0pamine has quit IRC [13:25:20] <nitrotrigger> http://audacityteam.org/wiki/index.php?title=Feature_Requests#Effects [13:25:41] <nitrotrigger> the last request [13:31:21] <nitrotrigger> hmm no, my sample wasn't broken [13:31:24] *** D0pamine has joined #openal [13:31:24] *** ChanServ sets mode: +v D0pamine [14:11:21] <nitrotrigger> I have no idea where those breaks comes from [14:19:02] *** D0pamine has quit IRC [14:24:03] *** Walt has joined #openal [15:22:40] *** rsp has joined #openal [15:22:40] *** ChanServ sets mode: +v rsp [15:22:50] <rsp> Hi [15:23:05] <KittyCat> hi [15:25:01] <rsp> Have you tried Ubuntu 8.04? :) [15:29:20] <KittyCat> nope [15:40:05] <rsp> Ok, it rocks [15:46:32] <rsp> How can I add some cool realtime effects [15:49:20] <rsp> reverb for example [15:52:34] <KittyCat> the AL_EXT_EFX [15:52:39] <KittyCat> extension [15:52:58] <KittyCat> openal soft provides the standard reverb effect [15:53:12] <KittyCat> details can be found in creative's openal sdk [15:53:23] <rsp> Thanks [15:53:29] <rsp> Are you going to add more of them [15:53:53] <rsp> Or do you mean reverb was one of them [15:53:59] <KittyCat> not sure. depends on how efficiently they can be done in software [15:54:06] <rsp> Ok [15:54:14] <KittyCat> reverb is the only effect. but it also does the lowpass filter [15:56:01] <rsp> Cool [15:57:44] <KittyCat> and things associated with it (eg. air absorption, cone gainhf) [15:58:04] <rsp> Ok! [16:09:45] *** predaeus has quit IRC [16:10:39] *** barra_library has joined #openal [16:11:06] <barra_library> hello [16:11:10] <barra_library> ping KittyCat [16:11:13] <KittyCat> hi [16:11:36] <barra_library> I've built openal_soft from source on win32, activated the dsound backend as well [16:12:26] <barra_library> I've build our engine against openal_soft, I don't hear any sound when I run the engine while sound plays fine if I replace the openal_soft.dll with a renamed openal32.dll from creative [16:13:57] <KittyCat> how are you opening the device? [16:14:16] <barra_library> btw.: I've used the 1.3.253 release [16:14:21] <barra_library> let me try to find the code [16:15:47] <barra_library> I guess the answer is hidden in here KittyCat: http://mirror1.cvsdude.com/trac/fife/engine/browser/trunk/engine/core/audio/soundmanager.cpp [16:16:01] <barra_library> though I'm no programmer, sorry :-/ for which line should I search for? [16:16:36] <barra_library> I guess that's the relevant line? >> m_device = alcOpenDevice(NULL); [16:17:27] <KittyCat> hmm.. that looks alright to me [16:17:50] <KittyCat> though you shouldn't just set m_device to NULL if there's an error. you should close the device if it's open [16:18:42] <barra_library> I see, we don't really have an active audio programmer on the team ATM but I'll create a ticket for it later [16:18:52] <KittyCat> the default orientation looks weird.. [16:19:29] <KittyCat> should be { 0.0, 0.0, -1.0, 0.0, 1.0, 0.0} for straight-ahead [16:20:30] *** Walt has quit IRC [16:20:32] <barra_library> but that shouldn't influence if I get sound on win32 I guess? [16:20:52] <KittyCat> depends on how it works [16:21:14] <KittyCat> it could implicitly fix it [16:21:28] <barra_library> I tested openal_soft on win32 about 2 weeks ago and I thought that it worked but I was wrong; I've built it as openal32.dll and it seems it has used the creative DLL with the same name instead of openal soft so sound worked but openal_soft was not used [16:25:02] <barra_library> oki, I've changed that according to your proposal, rebuidling ATM [16:28:42] <barra_library> nope, no sound yet :-/ [16:30:22] *** ChanServ sets mode: +v jvalenzu [16:46:19] *** Walt has joined #openal [16:52:32] *** Setien has quit IRC [17:21:39] <rsp> KittyCat: What file in the SDK [17:21:57] <rsp> I'm looking at EFXReverb.cpp and there is a lot of weird syntax [17:22:13] <KittyCat> Effects Extension Guide.pdf [17:24:03] *** predaeus has joined #openal [17:24:04] *** ChanServ sets mode: +v predaeus [17:24:09] <rsp> So Soft has alGenEffects? [17:24:20] <KittyCat> yeah [17:24:24] <rsp> Cool [17:24:51] <KittyCat> you need to get it from alGetProcAddress, but it's there [17:25:01] <rsp> Ok I'll get to that later [17:28:41] <rsp> The one available is AL_EFFECT_REVERB right [17:29:35] <KittyCat> yeah [17:29:51] <rsp> grea [17:29:52] <rsp> t [17:33:26] *** Setien has joined #openal [17:33:26] *** ChanServ sets mode: +v Setien [17:36:23] *** Walt has quit IRC [18:21:26] *** barra_library has quit IRC [19:37:13] *** Setien has quit IRC [20:46:56] *** juanmabc has joined #openal [20:46:57] *** ChanServ sets mode: +v juanmabc [21:59:20] *** predaeus has left #openal [22:08:20] *** rsp has left #openal [22:10:54] *** rsp has joined #openal [22:10:55] *** ChanServ sets mode: +v rsp [22:15:39] <rsp> KittyCat: [22:15:53] <rsp> alGenEffects was not declared [23:03:33] *** nitrotrigger has quit IRC [23:22:19] *** rsp has left #openal [23:42:46] *** Walt has joined #openal [23:47:23] *** rsp has joined #openal [23:47:23] *** ChanServ sets mode: +v rsp