April 27, 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:20:43] *** juanmabc has quit IRC
[00:49:08] *** Walt has quit IRC
[01:07:32] *** prophile has quit IRC
[01:10:14] *** Walt has joined #openal
[02:34:01] <KittyCat> hi rsp
[02:41:15] <rsp> http://tinyurl.com/636n73 need support for more than one material but still it's good for a 14h job by a glNoob I guess :)
[02:42:16] <rsp> I learnt GL fast as I thought, probably because I knew how to write OpenAL code already
[03:10:54] <rsp> good night
[03:10:55] *** rsp has left #openal
[03:18:49] *** LiQuiDninja has joined #openal
[03:19:26] *** Walt is now known as Walt_
[05:35:54] *** juanmabc has joined #openal
[05:35:54] *** ChanServ sets mode: +v juanmabc
[10:23:50] *** juanmabc has quit IRC
[11:43:08] *** System_Failur1 has joined #openal
[11:43:24] <System_Failur1> hello hello, anyone up?
[11:43:36] <KittyCat> hi
[11:43:44] <System_Failur1> hello
[11:44:02] <System_Failur1> how's things?
[11:44:32] <KittyCat> alright
[11:45:35] <System_Failur1> alGetSourcei(source,AL_BUFFERS_QUEUED, &temp); is giving me some waked out numbers any idea why it would do that?
[11:46:14] *** prophile has joined #openal
[11:46:15] *** ChanServ sets mode: +v prophile
[11:46:17] <KittyCat> is the function failing?
[11:47:54] <System_Failur1> just a sec
[11:50:02] <System_Failur1> http://www.devmaster.net/forums/showthread.php?t=12057
[11:50:08] <System_Failur1> ryutenchi is me
[11:51:07] <System_Failur1> I also alGetError() after that and it didn't return anything odd
[11:51:40] <KittyCat> if the function call fails, it won't change the value. but since you don't set the value to anything, it contains junk
[11:51:57] <KittyCat> the function can fail if the source isn't valid, or a context isn't set
[11:55:54] <KittyCat> and since that code is being called in a destructor, if the object is global, it'll be destroyed after main() finishes
[11:56:14] <System_Failur1> hmm... testing it now...
[11:56:26] <System_Failur1> (set temp to 0)
[11:56:42] <System_Failur1> q
[11:56:42] <System_Failur1> #of buffers 738700224
[11:56:42] <System_Failur1> errors:(0 is normal.) 0
[11:56:42] <System_Failur1> Segmentation fault
[11:57:13] <System_Failur1> so it's returning ?738700224 buffers even though I set temp to 0
[11:58:20] <System_Failur1> did i miss understand you?
[11:59:19] <KittyCat> no. but it seems openal-si uses its own temporary value it writes to, and copies that to yours
[11:59:54] <System_Failur1> hmm...
[12:00:04] <KittyCat> http://rafb.net/p/Sut9qF26.html
[12:00:28] <KittyCat> so even though you set temp to 0, safety_first is still uninitialized, and overwrites your value
[12:00:53] <System_Failur1> ah
[12:01:30] <System_Failur1> I'll paste my whole code if you want to look at it
[12:01:39] <KittyCat> if it's not too big, sure
[12:03:07] <System_Failur1> http://rafb.net/p/QYkyTd46.html mind you this is my first OpenAL program and I realize it would have simplified things a lot to not make it open both wavs and oggs, but there you go
[12:03:38] <System_Failur1> in fewer words, my code sucks, sorry
[12:06:14] <KittyCat> I don't see anything immediately wrong with that. I'd need to see your source file
[12:08:04] <System_Failur1> you mean the main.cpp?
[12:08:10] <KittyCat> yeah
[12:08:20] <System_Failur1> kk, just a sec...
[12:09:59] <System_Failur1> http://rafb.net/p/wOWvtC84.html I hit 'P' and it runs through once and then i hit 'q' and it crashes at that point
[12:10:29] <System_Failur1> are you trying to compile it?
[12:11:00] <KittyCat> no, but I see the problem
[12:11:05] <System_Failur1> ?
[12:11:54] <KittyCat> alutExit destroys the context and close the device. but the SListener and SSource objects aren't destroyed until main() exits, after it's called
[12:12:39] <System_Failur1> hmmm
[12:13:38] <System_Failur1> just a sec
[12:13:59] <System_Failur1> i need to use a shorter ogg to test lol
[12:14:53] <System_Failur1> the play() will be in a callback, and in a seperate thread, but this was just to test it better for I put it in
[12:15:03] <System_Failur1> i'm new to coding with sound^^
[12:19:48] <KittyCat> just need to be careful about how C++ objects work. need to make sure code isn't run after it's supposed to
[12:20:28] <KittyCat> (like using openal objects after openal is shut down)
[12:20:40] <System_Failur1> yeah, i didn't even think about that, good catch
[12:21:37] <System_Failur1> I've come to terms with using c base code (OpenGL/AL, etc) with c++ being a pain^^;
[12:25:59] <System_Failur1> ok, now it's an issue at fclose(file), but I'll figure it out lol ^^ thank you much for your help
[12:27:29] <KittyCat> no problem
[12:29:01] <System_Failur1> so.... you a cat person >.>
[12:30:44] <KittyCat> couldn't think of anything better for a nick. my name's too common :P
[12:33:14] *** D0pamine has joined #openal
[12:33:15] *** ChanServ sets mode: +v D0pamine
[12:36:12] <System_Failur1> cat? or kitty?
[12:36:44] <KittyCat> my name? chris
[12:36:46] <System_Failur1> <<matt
[12:36:53] <System_Failur1> ah
[12:37:04] <System_Failur1> matt is far more common =P
[12:37:34] <KittyCat> heh. everyone I know knows at least one other chris. usually two or three
[12:38:06] <System_Failur1> huh... I think I only have one chris friend... and I don't remember the last time I talked to him
[12:51:22] *** juanmabc has joined #openal
[12:51:23] *** ChanServ sets mode: +v juanmabc
[12:52:36] <System_Failur1> well, thanks again, food time^^ later
[12:52:39] *** System_Failur1 has left #openal
[13:04:40] *** LiQuiDninja has quit IRC
[13:27:38] *** rsp has joined #openal
[13:27:39] *** ChanServ sets mode: +v rsp
[13:35:18] *** juanmabc has quit IRC
[13:53:06] *** nitrotrigger has joined #openal
[15:59:19] *** D0pamine has quit IRC
[16:20:10] *** nitrotrigger has quit IRC
[16:54:09] *** Walt_ has quit IRC
[17:27:19] *** Walt has joined #openal
[17:56:45] <qknight> KittyCat: hey
[17:57:00] <qknight> KittyCat: just found out that there is something like sdl-config for pulseaudio
[17:57:04] <qknight> it's using pkgconfig
[17:57:12] <qknight> % pkg-config --cflags libpulse
[17:57:24] <qknight> % pkg-config --libs libpulse
[17:57:43] <qknight> the bad think is that the --cflags doens't give me the path to the includes
[18:22:51] <qknight> maybe it returns a path only if it can't be found in a standard path
[18:22:54] <qknight> not sure
[18:48:20] *** nitrotrigger has joined #openal
[18:49:43] *** D0pamine has joined #openal
[18:49:44] *** ChanServ sets mode: +v D0pamine
[18:59:43] *** juanmabc has joined #openal
[18:59:44] *** ChanServ sets mode: +v juanmabc
[20:56:16] *** juanmabc has quit IRC
[23:03:21] *** nitrotrigger has quit IRC
[23:37:27] *** rsp has quit IRC

top