June 21, 2008  
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30

[00:00:20] *** Walt has quit IRC
[00:04:04] *** kb1ooo has quit IRC
[00:11:50] * angasule wonders if openal-soft is supposed to support OS X at any point
[00:31:15] *** Walt has joined #openal
[00:33:32] *** ChanServ sets mode: +v Walt
[00:46:31] *** kb1ooo has joined #openal
[00:46:31] *** ChanServ sets mode: +v kb1ooo
[00:59:50] *** prophile has quit IRC
[02:37:01] <angasule> if windows has only per user config files, it'll be a piece of cake to add it
[02:38:11] <angasule> I already have code for global and local config on linux
[05:30:51] <KittyCat> it's intended to support OSX, but I need someone to make a backend for it
[05:46:27] *** juanmabc has quit IRC
[06:04:23] * KittyCat is back.
[07:23:54] <angasule> I'm back as well
[07:24:01] <angasule> bad night out :)
[07:24:16] <angasule> what does OSX use for sound? some quicktime thing?
[07:25:15] <angasule> I guess that if windows has only local config, not global, then I have to /not/ show the local/global button, since it makes no sense
[07:26:23] <KittyCat> OSX has CoreAudio or something, I think
[07:27:41] <angasule> friggin' ifdefs
[07:28:00] <KittyCat> heh
[07:28:35] <Alam_Debian> CoreAudio
[07:28:40] <angasule> coreaudio includes openal? :?
[07:29:03] <Alam_Debian> MacOSX does have an OpenAL framework already
[07:29:33] <angasule> isn't it based on the old OpenAL SI? and thus would benefit from openal-soft?
[07:29:39] <Alam_Debian> yes
[07:30:19] <KittyCat> hmm, you sure?
[07:30:24] <Alam_Debian> note that cmake make a funny XCode project file for OpenAL-Soft
[07:30:25] <KittyCat> I thought OSX's openal was apple's own
[07:30:57] <KittyCat> svn has an OpenAL-OSX dir, anyway
[07:30:58] <angasule> if I remember correctly is a modified SI
[07:31:10] <KittyCat> it's C++ and quite object-oriented
[07:32:31] <angasule> anyway, I should get working on the config thingie
[07:32:49] <KittyCat> I'm more concerned about getting FreeALUT working with OSX, though
[07:33:12] <angasule> SHGetSpecialFolderPathA  <-- eew
[07:33:37] <KittyCat> OSX's OpenAL includes the pre-1.0 ALUT, so trying to use FreeALUT results in multiple definitions
[07:34:45] <angasule> there used to be an apple guy in openal-dev
[07:35:05] <KittyCat> apple won't remove the alut functions, even though it has the deprecated functions only
[07:35:31] <angasule> can't they remove both alut and openal SI and drop in freealut and opeanl-soft?
[07:35:56] <angasule> maybe with a bump in soname
[07:36:16] <KittyCat> osx's openal takes advantage of hardware and other coreaudio features
[07:37:40] <angasule> http://developer.apple.com/documentation/MusicAudio/Conceptual/CoreAudioOverview/WhatisCoreAudio/chapter_2_section_2.html#//apple_ref/doc/uid/TP40003577-CH3-DontLinkElementID_17
[07:40:30] <KittyCat> it ultiamtely depends on how many apps use ALUT in OSX's OpenAL framework
[07:41:01] <KittyCat> though I have supplied a patch for FreeALUT to side-step OSX's ALUT functions, but no one was able to test it
[07:42:11] <Alam_Debian> I can
[07:43:00] <Alam_Debian> wait, I would also need a Sample Program to test this, right?
[07:43:10] * angasule shackles Alam_Debian "welcome to the openal-soft testing team" :)
[07:43:38] <KittyCat> http://opensource.creative.com/pipermail/openal-devel/2008-January/005001.html
[07:43:54] <KittyCat> Alam_Debian, yeah. the svn contrib directory has a few, though, I think
[07:45:06] <angasule> while we're tossing links: http://www.anduin.net/~angasule/  -- app to configure openal-soft graphically, to be released soon after DNF
[07:49:00] *** Alam_DeathNote has joined #openal
[07:49:01] *** ChanServ sets mode: +v Alam_DeathNote
[07:49:20] <Alam_DeathNote> ok...
[07:49:54] <Alam_Debian> <KittyCat> http://opensource.creative.com/pipermail/openal-devel/2008-January/005001.html
[07:51:07] <Alam_DeathNote> ok, what is the URL for the new SVN?
[07:51:51] <KittyCat> svn://connect.creativelabs.com/OpenAL
[07:51:57] <angasule> [out] A pointer to a null-terminated string that receives the drive and path of the specified folder. This buffer must be at least MAX_PATH characters in size.  <-- I can't believe some people praise MSDN :/
[07:52:46] <Alam_DeathNote> I can not believe that Windows still exists
[07:55:57] *** RenderFx has joined #OpenAL
[07:55:57] *** ChanServ sets mode: +v RenderFx
[07:55:59] <angasule> well, I live in a very third worldish country, I expect bad stuff :P
[07:56:08] <RenderFx> Hi all
[07:56:28] <KittyCat> hi
[07:57:04] <angasule> hi RenderFx
[07:57:13] <angasule> umh, does windows have a different definition of snprintf? :/
[07:57:24] <RenderFx> Anyone here a mac developer by chance?
[07:57:33] <KittyCat>  angasule it's _snprintf in windows
[07:58:45] <RenderFx> I've written some code for ambisonic spatialization, and I want to be able to plug it in.
[07:59:00] <angasule> hmm
[07:59:17] <angasule> weird, openal-soft has snprintf (no leading _) with three parameters
[07:59:33] <RenderFx> I realize the mac does first order, but I need to run first, second, third...
[07:59:35] <angasule> but it's 3am and maybe I'm saying nonsense :?
[07:59:42] <KittyCat> angasule, yeah. it has cmake checks
[07:59:49] <KittyCat> and defines snprintf to _snprintf as needed
[08:00:01] <angasule> oh, cool, does cmake do that automatically?
[08:00:13] <KittyCat> no, but it's simple to do
[08:00:28] <KittyCat> check if snprintf exists, if not, check for _snprintf
[08:00:29] <angasule> still, it's snprintf with 3 parameters, not 4 like the linux one?
[08:00:43] <KittyCat> if that exists, do ADD_DEFINITION(-Dsnprintf=_snprintf)
[08:00:52] <angasule> haha I'm an idiot
[08:01:01] <KittyCat> RenderFx, I don't think any apple developers come here
[08:01:07] <angasule> you're copying at the end of the buffer, 3 params are enough
[08:01:29] <RenderFx> Okay
[08:01:29] <KittyCat> RenderFx, you may have better luck on the openal-dev mailing list
[08:01:30] <RenderFx> thanks
[08:01:56] <KittyCat> http://opensource.creative.com/mailman/listinfo/openal-devel
[08:03:50] <angasule> ok, now it should load the config on windows :D
[08:04:54] <RenderFx> Does anyone know details about the spatialization methods used in windows w/ creative cards?
[08:05:06] <RenderFx> ie. Is there a way to select 2nd order ambisonics?
[08:05:09] <RenderFx> or hrtfs?
[08:05:41] <angasule> you really should ask in the email list
[08:05:51] <RenderFx> okay
[08:05:53] <RenderFx> thanks :)
[08:05:53] <angasule> there are creative people there
[08:06:05] <angasule> np :)
[08:06:06] *** RenderFx has left #OpenAL
[08:11:46] <angasule> hmm
[08:13:03] <angasule> maybe I should make global config the default when uid==0 and local config when uid!=0, I don't know how easy it is to su/sudo like ubuntu's config thingies
[08:13:23] <Alam_DeathNote> check the env?
[08:14:21] <KittyCat> how do you mean?
[08:14:45] <KittyCat> if you want to check sudo/su status, get[e]uid should == 0
[08:15:06] <angasule> yes, checking is no problem
[08:15:15] <KittyCat> or, you can check getenv("HOME") to see if it's /root (though that's not reliable, I'd take it)
[08:15:26] <Alam_Debian> well, sudo sets SUDO_[USER||UID|GID] in the environment
[08:15:35] <angasule> but on *ubuntu, config programs allow you to sudo to change global settings
[08:16:23] <angasule> or should I check for write permission to the global config file and not care about uid?
[08:16:39] <KittyCat> I think what it does is call kdesu or the gnome equivilant when running the actual program
[08:16:40] <Alam_Debian> oh, you mean how GUI program ask for your password so they can do sudo?
[08:16:54] <angasule> KittyCat: yeah, but I can't depend on those being present :/
[08:17:09] <KittyCat> if they don't work, you can't do it, then
[08:17:49] <angasule> this is a qt program after all, not kde nor gnome, I would avoid depending on sudo at all
[08:18:04] <angasule> anyway, the global/local config is getting more and more useless
[08:25:24] <angasule> I'm off to bed, good night :)
[08:26:32] <KittyCat> 'night
[08:51:55] *** Halifax has joined #openal
[08:51:55] *** ChanServ sets mode: +v Halifax
[08:57:17] <Alam_DeathNote> yea, I hacked up the cmake file to work...
[08:58:29] <KittyCat> what did you need to change?
[08:59:56] <Alam_DeathNote> FIND_LIBRARY(OPENAL_LIB NAMES openal openal32 PATHS /usr/lib /usr/local/lib ${OPENAL_LIB_DIR})
[08:59:56] <Alam_DeathNote> +FIND_LIBRARY(OPENAL_LIB NAMES openal openal32 OpenAL PATHS /usr/lib /usr/local/lib ${OPENAL_LIB_DIR})
[09:00:28] <Alam_DeathNote> +# CHECK_INCLUDE_FILES("AL/alc.h;AL/al.h" AL_HEADERS)
[09:00:28] <Alam_DeathNote> +FIND_PATH(AL_HEADER al.h)
[09:00:30] <KittyCat> case sensitivity. fun
[09:00:38] <Alam_DeathNote> +  #MESSAGE(FATAL_ERROR "OpenAL header files not found - aborting.")
[09:02:11] <Alam_DeathNote> well, it builds now with your patch
[09:02:30] <Alam_DeathNote> but I still needed to hack up the CMake file
[09:03:41] <KittyCat> basically just the extra lib name and include path change?
[09:04:43] <Alam_DeathNote> all it need to OpenAL to FIND_LIBRARY statement and look for alc.h and al.h, not AL/alc.h and AL/al.h
[09:06:16] <Alam_DeathNote> my diff to CMakeList.txt is a mess
[10:36:44] *** Halifax has quit IRC
[15:16:21] *** kb1ooo has quit IRC
[16:29:09] *** prophile has joined #openal
[16:29:09] *** ChanServ sets mode: +v prophile
[16:30:53] *** kb1ooo has joined #openal
[16:30:54] *** ChanServ sets mode: +v kb1ooo
[17:53:29] *** juanmabc has joined #openal
[17:53:29] *** ChanServ sets mode: +v juanmabc
[18:14:02] *** angasule_ has joined #openal
[18:14:02] *** ChanServ sets mode: +v angasule_
[18:15:01] *** angasule has quit IRC
[18:32:42] *** Walt has quit IRC
[18:46:05] *** angasule_ is now known as angasule
[19:17:23] *** Walt has joined #openal
[19:17:23] *** ChanServ sets mode: +v Walt
[20:06:04] *** Alam_DeathNote has quit IRC
[20:06:15] *** Alam_DeathNote has joined #openal
[20:06:15] *** ChanServ sets mode: +v Alam_DeathNote
[20:39:44] *** Alam_Debian has quit IRC
[20:59:38] *** Alam_Debian has joined #openal
[20:59:38] *** ChanServ sets mode: +v Alam_Debian
[21:41:23] *** angasule has quit IRC
[21:44:10] *** angasule has joined #openal
[21:44:10] *** ChanServ sets mode: +v angasule
[21:52:40] * KittyCat is away: sleep
[22:02:51] *** juanmabc has quit IRC
[22:21:54] *** Walt has quit IRC
[23:08:51] *** juanmabc has joined #openal
[23:08:51] *** ChanServ sets mode: +v juanmabc
[23:19:48] *** Walt has joined #openal
[23:19:48] *** ChanServ sets mode: +v Walt

top