IRC logs for #opendune on OFTC at 2011-08-16
⏴ go to previous day
00:03:40 *** Xaroth has joined #openDune
00:03:40 *** ChanServ sets mode: +o Xaroth
01:07:14 *** Xaroth_ has joined #openDune
04:22:21 *** Xaroth has joined #openDune
04:22:21 *** ChanServ sets mode: +o Xaroth
08:44:47 *** fjb is now known as Guest6062
09:57:31 *** Xaroth_ has joined #openDune
12:12:15 *** Xaroth has joined #openDune
12:12:15 *** ChanServ sets mode: +o Xaroth
12:31:54 <DorpsGek> SVN: truebrain (r2389) -Fix: a dangling statement that was once a debug statement. It can only result in cut-off playbacks of voices
12:35:48 <TrueBrain> hello mister glx :)
12:35:59 <TrueBrain> r2389, I added that statement because I thought it would be smart, but I think it causes bugs
12:36:19 <TrueBrain> and we have a problem with voices on Linux .. I think because SDL also uses the sigalrm
12:38:34 <glx> ha right it was a crazy statement :)
12:38:36 <TrueBrain> that is, on my machine, the callback is never ever called
12:40:06 <glx> but on your machine SDL_OpenAudio() doesn't work so the callback is of course not called
12:40:15 <TrueBrain> on other machine :)
12:40:29 <TrueBrain> and music works here
12:40:36 <TrueBrain> and for dsp all checks come back as okay
12:40:40 <TrueBrain> it just never does anything
12:41:43 <TrueBrain> the game also regular hangs, till I focus out of the screen
12:41:52 <TrueBrain> which is also really weird :P Means the timer is not called ..
12:42:10 <glx> maybe both problems are linked ;)
12:42:21 <TrueBrain> that is why I think it is a timer issue, yes :)
12:46:54 <TrueBrain> documentation says it 'might' use a thread
12:46:57 <TrueBrain> that is a bit ... not telling
12:47:46 <TrueBrain> owh, it does work without music
12:47:50 <TrueBrain> so it is a conflict between those two
12:49:52 <TrueBrain> timidity can't start when running it with voices
12:49:56 <TrueBrain> so they cant both be active
12:51:19 <TrueBrain> I wonder why SDL says it could open ...
12:51:59 <glx> even on your other system it says that
12:52:33 <TrueBrain> yeah, it is a bit weird
12:53:13 <glx> hmm we don't really check SDL_OpenAudio return value
12:53:42 <glx> This function returns -1 if it failed to open the audio device, or couldn't set up the audio thread.
12:53:47 <TrueBrain> tried it, doesn't matter
12:56:44 <TrueBrain> if (SDL_OpenAudio(&s_spec, &s_spec) != 0) return false;
12:56:48 <TrueBrain> something like that?
12:57:26 <DorpsGek> SVN: truebrain (r2390) -Fix: error out when SDL_OpenAudio reports a problem. Not that it does when you expect him to do, but .. who knows they might fix that some day
12:57:58 <TrueBrain> ah, timidity does not lock before the MPU is initialized
12:58:03 <TrueBrain> so they just annoy eachother
12:58:32 <TrueBrain> they annoy eachother, yes
12:59:03 <glx> IIRC that can happen for openttd too
13:03:09 <TrueBrain> k, problem happens when I subscribe to a channel
13:10:12 <TrueBrain> aconnect does not show SDL being connected
13:13:07 <TrueBrain> guess best is to implement the DSP in Alsa :P
13:15:31 <glx> ok let's try implementing crash log :)
13:21:33 <TrueBrain> does windows have handlers for DSP?
13:27:03 <TrueBrain> when trying to debug the 'hangs', the game runs perfectly
13:27:34 <DorpsGek> SVN: truebrain (r2391) -Fix (#85): dirty fix: when using ALSA, don't play voices, as SDL and ALSA are not being friends
13:27:39 <TrueBrain> this fix will have to do for now
13:28:09 <TrueBrain> it is a really terrible solution, but I have no better ones
13:31:23 <glx> yes windows has Wave functions
13:32:28 <TrueBrain> so we can remove SDL Audio if we want
13:32:32 <TrueBrain> might be a good solution
13:33:07 <TrueBrain> a Windows version without SDL is much appreacited :D
13:33:11 <glx> well I'm on crashlog for now ;)
13:33:18 <TrueBrain> owh, that please first
13:33:23 <TrueBrain> I have seen very nice crashlog handlers
13:33:28 <TrueBrain> namely ones that show a custom dialog
13:33:34 <TrueBrain> then allow you to send it to THEIR server directly
13:33:43 <TrueBrain> I guess that is really hard etc?
13:33:47 <TrueBrain> (given you need http lib etc etc)
13:34:10 <TrueBrain> owh, I don't mean like for now, but I wonder in general
13:34:28 <TrueBrain> is that something to aim for, or not worth it?
13:34:57 <glx> and I do it like mpu, that is a header, crashlog_win32.c and crashlog_none.c
13:35:34 <glx> that way it should be possible to easily add it for other platforms
13:35:46 <glx> (stealing openttd code again ;) )
13:36:56 <glx> so it will support 64bit even if opendune is still 32bit only :)
13:38:23 <TrueBrain> why is opendune 32bit only btw?
13:38:43 <glx> I haven't tried to add stuff in the project
13:39:39 <glx> and 64bit apps need 64bit dlls
13:40:39 <glx> so until SDL dependancy is removed it'll stay 32bit only :)
13:48:42 <planetmaker> doesn't support sdl 64 bit?
13:51:29 <glx> maybe but I use precompiled sdl-dev :)
17:19:43 <TrueBrain> project is called OpenDUNE I think
17:20:20 <TrueBrain> _handlingException -> s_handlingException
17:20:29 <TrueBrain> (goes for all static vars ;))
17:20:49 <glx> some static have g_ in other files ;)
17:21:15 <TrueBrain> I personally prefer #if defined(VAR) over #ifdef VAR
17:21:18 <TrueBrain> but .. both will work
17:26:57 <DorpsGek> SVN: glx (r2392) -Add: crash.log and crash.dmp generation for WIN32
17:27:14 <glx> should be easy to add for linux too
17:27:34 <TrueBrain> no clue if you can make a core dump in a general way
17:27:54 <glx> at least the crash.log ;)
17:28:04 <TrueBrain> neither any clue about backtraces etc
17:28:14 <TrueBrain> lot of work if I look at your patch :D
17:28:21 <TrueBrain> believe OpenTTD doesn't have anything for linux, does it?
17:30:12 <TrueBrain> 'of course', it hadn't for years :p
17:30:21 <TrueBrain> it was windows only for a lnog long time :P
17:32:15 <TrueBrain> well, copy/paste some more, and I will test it? :D:D
17:34:25 <TrueBrain> but yeah, it is most important for windows :)
17:45:50 <TrueBrain> meh; maybe some other day :D
18:00:41 *** Alberth has joined #openDune
18:00:41 *** ChanServ sets mode: +o Alberth
19:28:44 <TrueBrain> glx: compile fails on linux :P
19:30:54 <DorpsGek> SVN: truebrain (r2393) -Fix (r2392): crashlog_none.c didn't compile
19:36:15 <TrueBrain> hmm .. funny .. I seem to have an active MIDI port on my linux now .. no clue how :p
19:36:20 <TrueBrain> no clue where it leads
19:37:10 <Alberth> a hidden MIDI device under your desk :p
19:37:22 <TrueBrain> and I don't have 'asound'
19:37:26 <TrueBrain> can't find which package gives it
19:37:44 <TrueBrain> owh, it was called aconnect
19:39:32 <TrueBrain> well, voices work at least ... just MIDI, well .. :p
19:39:36 <TrueBrain> anyway, ALSA warns:
19:39:46 <TrueBrain> ALSA lib pcm: snd_pcm_recover : underrun occured
19:43:48 <TrueBrain> you got to love SDL I guess
19:50:11 <TrueBrain> on my other machine DSP + MPU work flawless btw
19:50:56 <DorpsGek> SVN: truebrain (r2394) -Fix: more a workaround, but for most linux machines the 'Midi Through Port' is not a valid MIDI port, so ignore it
19:52:40 <TrueBrain> couldn't find how to ignore it
19:54:39 <TrueBrain> from what I read, it is the kernel who adds it, pushing MIDI to the rs232 interface
19:54:42 <TrueBrain> which of course doesn't exist
19:57:02 <TrueBrain> your machine has to be ancient
19:57:14 <glx> but the kernel should know what port is present or not
19:57:49 <TrueBrain> it should; it doesn't
19:58:20 <TrueBrain> they stopped using that ... 10 years ago?
20:01:10 <TrueBrain> it is silly how much time we have spend at sound versus the rest tbfh
20:02:06 <Alberth> I gave up on sound at Linux a loong time ago :)
20:02:37 <glx> linux and sound always been a problem :)
20:03:07 <TrueBrain> yup; ALSA made it better
20:03:12 <TrueBrain> but as it has to support 1000000 things
20:03:44 <glx> I remember when I needed to compile a kernel module for CS4231 sound "card"
20:04:22 <glx> (maybe not the exact reference)
20:04:43 <glx> it was a dell pentium 133
20:04:59 <TrueBrain> the machine with an LPT port? :P
20:05:19 <glx> all my machines have a parallel port
21:02:01 <TrueBrain> ugh; I hate it when download managers download shit slower than I can download it myself
23:10:28 *** Xaroth_ has joined #openDune
continue to next day ⏵