summaryrefslogtreecommitdiff
path: root/www/irc/rockbox-20020605.log
diff options
context:
space:
mode:
authorRobert Hak <adiamas@rockbox.org>2002-06-14 09:07:19 +0000
committerRobert Hak <adiamas@rockbox.org>2002-06-14 09:07:19 +0000
commit216e50b3b66b8c8f15f4e06a6c9e535cb4b216c6 (patch)
tree4d5abc5e313302f22f22ed3b529a335726d6e881 /www/irc/rockbox-20020605.log
parent17f8390c44623955bc5b2e969b7ac1dcb788c453 (diff)
downloadrockbox-216e50b3b66b8c8f15f4e06a6c9e535cb4b216c6.tar.gz
rockbox-216e50b3b66b8c8f15f4e06a6c9e535cb4b216c6.zip
updating irc logs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@996 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'www/irc/rockbox-20020605.log')
-rw-r--r--www/irc/rockbox-20020605.log421
1 files changed, 421 insertions, 0 deletions
diff --git a/www/irc/rockbox-20020605.log b/www/irc/rockbox-20020605.log
new file mode 100644
index 0000000000..c28cd86bf6
--- /dev/null
+++ b/www/irc/rockbox-20020605.log
@@ -0,0 +1,421 @@
1**** BEGIN LOGGING AT Tue Jun 4 23:37:03 2002
2
3--> adiamas (~adiamas@216.194.26.223) has joined #rockbox
4--- Topic for #rockbox is Version 1.0 released! http://bjorn.haxx.se/rockbox/
5--- Topic for #rockbox set by adi|home at Tue Jun 4 04:41:56
6<xtac[z]> hm
7<xtac[z]> the archos is a bit heavy
8<xtac[z]> i need to find a light hd
9<xtac[z]> bb tom
10<-- xtac[z] has quit ("i focus on the pain the only thing that's real")
11--- You are now known as adi|home
12--- dw|gone is now known as dwihno
13--> Bagder (~daniel@as3-3-2.ras.s.bonet.se) has joined #rockbox
14<Bagder> morning fellas
15<dwihno> Good morning!
16<dwihno> And it's a wonderful morning indeed.
17<Bagder> oh sure
18<dwihno> Although my headphones haven't been fixed yet
19<adi|home> morning
20<dwihno> hellö hellö
21<adi|home> Bagder.. my email is shot right now.. can't see commits... did you work on the m3u reader?
22<Bagder> yes
23<Bagder> it might even work a bit now
24<dwihno> :O
25<Bagder> I'm more or less waiting for Zagor/Linus to try this and/or comment it
26<Bagder> or anyone else of course
27<adi|home> hmm.. ill take a look
28<Bagder> the read function should take larger peaces each time it does a read() of course...
29<adi|home> pieces
30<adi|home> not peaces
31<adi|home> :)
32<Bagder> oops
33<Bagder> :-)
34<Bagder> peace to everyone ;-)
35<adi|home> except Al-Queda
36<adi|home> they can burn...
37<Bagder> hehe
38<adi|home> them and their virgins
39* adi|home gets down off his soapbox
40<adi|home> can i access the m3u reader from the uisim?
41<Bagder> yes
42<adi|home> home
43<Bagder> name the file .m3u
44<Bagder> browse to it and press play on it
45<adi|home> k
46<Bagder> I mean, it should have a .m3u extension
47<adi|home> i get We instruct the MPEG thread to play Ani Difranco - Back Back Back.mp3 for us
48<adi|home> correct?
49<Bagder> yes
50<Bagder> I haven't made the playlist do any shuffle or anything yet
51<adi|home> k
52<Bagder> it plays it from start to end
53<Bagder> and then restarts again
54<adi|home> k
55<Bagder> however, not all that is possible to see in the simulator
56<adi|home> heheh you and i have such diff code styles :)
57<adi|home> fd = open()
58<adi|home> if (-1 != fd)
59<adi|home> hehe
60<adi|home> id do: if ((fd = open()) < 0)
61<Bagder> I never do the assignment inside the condition if I can move it outside without penalty
62<adi|home> any particular reason?
63<Bagder> for readability
64<adi|home> ahh..
65<adi|home> i wold agree with that..
66<Bagder> the generated code will be exactly the same anyway
67<adi|home> but in the same vein.. comparing against -1 specifically is a bad habit to me :)
68<Bagder> perhaps
69<adi|home> != 0 is failure in unix
70<Bagder> not if open() is documented to return -1 on error ;-)
71<adi|home> never know what functions return...
72<adi|home> heheh true..
73<adi|home> but what if it was to return -2 as well?
74<adi|home> ;)
75<Bagder> then it would be a silly check ;-)
76<adi|home> hehehe
77<adi|home> neither way is better.. just diff like i said ;)
78<Bagder> yeah
79<adi|home> besides.. i know when i become supreme overlord you will have to do it my way ...
80<adi|home> im patient.. i can wait ;)
81<Bagder> haha, you just let me know when you get your super powers and I'll fix my code then before you turn me into something unpleasant :-P
82<adi|home> no worries.. id never turn you into a canadian ;)
83<adi|home> the read/open/lseek
84* Bagder sighs ffom relief
85<adi|home> are they the ones we implimented
86<adi|home> or part of the newlib?
87<Bagder> yes
88<Bagder> newlib is not needed anymore
89<Bagder> not used
90<Hadaka> well if this would be posix stuff - I'd definitely advice to test explictly against -1 and then do errno stuff after that
91<adi|home> okay... that case, can read fail?
92<Bagder> yes, read can fail
93<Bagder> so yes, I should check for that
94<adi|home> nods
95* Bagder hides
96<Bagder> we in fact set errno too, posix-fake-mode enabled ;-)
97<adi|home> lol
98<adi|home> would use of registers be of any use on the Archos?
99<adi|home> just wondering if there is a faster way to run throught that while loop of yours..
100<Bagder> modern gcc versions more or less ignore the register keyword
101<adi|home> k
102<Bagder> I/ew should read() larger chunks instead
103<Hadaka> premature optimization is the root of all beer
104<Bagder> I/we
105<Bagder> reading single-bytes like that is plain silly
106<adi|home> there is nothing wrong with premature optimization.. so long as you odn't go overboard
107<adi|home> can you give me a rough idea of how we are managing the playlists?
108<adi|home> i missed that convo
109<Bagder> pretty simple:
110<Bagder> we have the playlist on disk as a m3u file
111<Bagder> we store only indexes to the file names in memory
112<Bagder> that is, to the entry names within the m3u
113<dwihno> The m3u is in the memory?
114<Bagder> no
115<Bagder> never
116<adi|home> can i assume the index is the seek used by lseek
117<adi|home> then you read in the filename?
118<Bagder> exactly
119<adi|home> i guess that makes sense.. you ahve to spin the drive up to read in the mp3 anyway.
120<Bagder> yes
121<adi|home> so doing it to get each index is no big deal.
122<Bagder> we can even cache a few indexes before and after if we think that'll improve things
123<adi|home> nods
124<Bagder> so when we run "random"
125<Bagder> we shuffle the arrat with all the seek-positions
126<Bagder> array
127<adi|home> makes sense
128<adi|home> okay.. so we run from start to finish on the indices right?
129<Bagder> yes
130<adi|home> then having an int index that reps the "index of *NEXT* track to play' makes no sense
131<adi|home> you only want to know the current file being played
132<adi|home> don't you?
133<Bagder> it doesn't really matter
134<adi|home> i guess
135<Bagder> I chose "next" just so that zero would make sense already when initing the struct
136<adi|home> nod
137<Bagder> the mpeg thread will id3-read the file and allow others to get that info
138<adi|home> ?
139<Bagder> thing is
140<Bagder> we deliver the track to the mpeg thread long before we hear it
141<Bagder> so we need the mpeg thread to tell the world which song that is actually playing right now
142<adi|home> nod
143--> Linus (~linus@labb.contactor.se) has joined #rockbox
144<Bagder> morning Linus
145<Linus> morning!
146<adi|home> hen you init the structure.. would you want to reset the seed for rand?
147<Bagder> yes
148<Hadaka> oh btw - random and shuffle play in my mind are different things - and both are nice, depending on situation
149<adi|home> are you editing that file at all? if not ill fix this stuff as i go
150<Bagder> adi|home: I'm not, feel free to improve
151<adi|home> ki
152<Bagder> Linus: spotted my id3-fix?
153<Linus> Hadaka: you want "true" random in some cases? That is, same song may be played twice?
154<adi|home> okay... what happens if we barf on playlist processing?
155<adi|home> ie: file read fails
156<adi|home> open fails
157<Linus> Bagder: havent't come to the Rockbox-CVS folder yet... :-)
158<Bagder> adi|home: just return, do nothing
159<adi|home> k
160<Bagder> Linus: hehe :-)
161<adi|home> i think we eventually want a message to the user no
162<adi|home> ?
163<Hadaka> Linus: yes - or at times ofcourse a simple limit of not ever picking the next song to be the same song as the one exactly before would be sufficient
164<Hadaka> Linus: but for example when using mpg123 - I do use true random play for some stuff
165<Linus> what is mp123?
166<dwihno> mpg123?
167<dwihno> you don't know what it is? :)
168<dwihno> alnmighty mp3 thingy
169<Linus> an mp3 player?
170<Hadaka> Mpg123 is a fast and portable MPEG audio player for Unix.
171<Linus> Ah.
172<Hadaka> very, very common
173<Linus> That must mean that I'm ver very unaware of things. :-)
174<adi|home> Bagder: its your code.. so let me ask.. on checking the open... is if(fd >= 0) acceptable to you?
175<adi|home> or rather i leave it -l != fd?
176--> nayr (~ryan@ip68-2-171-8.ph.ph.cox.net) has joined #rockbox
177<Linus> hi nayr!
178<Hadaka> most jukebox softwares on unix use that as a backend - also there's a free replacement for it, mpg321, which is compatible
179<nayr> Hello!
180<adi|home> hey nayr
181<adi|home> do we have stat in our api now?
182<adi|home> or maybe it just makes more sense to lseek to a files end to get its size?
183<Linus> The ID3 code seeks to the end
184<adi|home> heheh okay "static unsigned int playlist_seed = 0xdeadcafe"
185<adi|home> is just wrong
186<Linus> why do you need the file length?
187<adi|home> right now we are reading in the m3u file a byte at a time
188<adi|home> that makes no sense.
189<Linus> no it doesn't
190<Linus> ...and...
191<adi|home> so get the file size
192<adi|home> define a static buffer of say 100 bytes
193<adi|home> and read in at a better increment.
194<adi|home> so you kno when you hit the file end
195<adi|home> your still not mallocing..
196<adi|home> so life is okay
197<Linus> why do you need the file size for that?
198<adi|home> i guess i could just keep lseeking?
199<Linus> you could just read until end-of-file
200<adi|home> are we gaurenteed to have an end-of-file?
201<Linus> of course
202<Linus> otherwise you wouldn't be able to lseek(9 to find out the end-of-file...
203<adi|home> right, thats what im saying...
204* adi|home now that i have my head outta my ass
205<adi|home> lets say char buf[100]
206<adi|home> then we do successive lseeks of 100 till we fail
207<adi|home> then we just grab the rest of the file when we fail
208<Linus> you don't need a buffer to do lseek()
209<adi|home> i know that
210<adi|home> but where are you putting the data from the m3u file?
211<Linus> Maybe I'm not understanding what you want to accomplish
212<adi|home> read/parse an m3u file
213<adi|home> to store in our playlist structure
214<Linus> So get the data, one row at a time (it's a text file, right?)
215<adi|home> right
216<Linus> why seek()?
217<adi|home> how do you know when a line ense?
218<adi|home> ends?
219<adi|home> you search for CRLF
220<Linus> CR/LF or just LF?
221<Linus> whatever
222<adi|home> im just going by what we have right now
223<adi|home> nods
224<adi|home> so to do that you need to read from the file into a buffer
225<Linus> so read into a 100 byte buffer, and look for EOL's
226<adi|home> thats what im saying :)
227<adi|home> thus the char buf[100]
228<Linus> but I still don't understand the seek() part
229<adi|home> are just going to read until read fails?
230<Linus> exactly
231<adi|home> so how do you tell the dif between "we reached the end of file: failed" and "archos is fucked: failed"/
232<adi|home> ?
233<-- trillback has quit (zahn.openprojects.net irc.openprojects.net)
234<-- adi|work has quit (zahn.openprojects.net irc.openprojects.net)
235<-- webmind has quit (zahn.openprojects.net irc.openprojects.net)
236<-- datazone has quit (zahn.openprojects.net irc.openprojects.net)
237<-- gd has quit (zahn.openprojects.net irc.openprojects.net)
238<-- PiotR has quit (zahn.openprojects.net irc.openprojects.net)
239<-- PsycoXul has quit (zahn.openprojects.net irc.openprojects.net)
240<Linus> -1 means failure, 0 means end-of-file
241<Linus> still there?
242<-- Linus (~linus@labb.contactor.se) has left #rockbox
243--> Linus (~linus@labb.contactor.se) has joined #rockbox
244<adi|home> yeah.. just giant brain fart...
245<adi|home> i see what your getting at
246<Linus> great
247<adi|home> im not changing this now.. im bound to fsck it up.. to tired.. i ll hit it in the morning
248<adi|home> night all
249<adi|home> thanks for helping me pull my head from my ass Linus ;)
250--> gd (~chatzilla@dns.agssmf.com) has joined #rockbox
251--> PiotR (~piotr@212-170-21-172.uc.nombres.ttd.es) has joined #rockbox
252--> PsycoXul (psyco@adsl-63-205-43-243.dsl.lsan03.pacbell.net) has joined #rockbox
253<Hadaka> hmm, one should make a feature checklist of what the archos (recorder) can do - and what is implemented in rockbox
254<Linus> night, adi|home!
255<Hadaka> how does the resume work on the original archos btw? does it save the current song/directory somewhere when it starts playing it or?
256<Linus> The Player saves that info on the hard drive
257<Linus> when it starts playing a song
258<nayr> ?? I could never get resume to work anyway.
259<Linus> but not when the battery is too low
260<Linus> I guess it's a safety feature not to write on the hard disk when low on batteries
261<Linus> nayr: how come?
262<Hadaka> ookkay
263<nayr> Well, maybe I'm not understanding what it's supposed to do. I was thinking it would resume a song where it left off between power cycles (ala iPod)
264<Linus> The recorder, OTOH saves that data in internal RAM
265<Linus> nayr: it only remembers which song it played
266<Linus> nayr: we will try to implement mid-song resume in Rockbox
267<nayr> Hmmm... OK. Well, I became overly excited when I heard about this project on /.
268<nayr> I figure there's a much better chance of getting the features I want by working with you folks than working with archos. :-)
269<Linus> nayr: nice. i hope you still feel that way.
270<Linus> nayr: are you a programmer?
271<Hadaka> yeah, mid-song resume (and keeping of the current playlist) would be just dandy
272<nayr> I used to pretend to be. But if I can code at all, it's high-level stuff (RAD/UI, 4GL, etc.) C/ASM really isn't my forte. I can read it, but I can't code it :(
273<Linus> ok. you can still be very useful
274<nayr> But I kick ass at QA, especially when I've got a personal stake in the project. =)
275<Linus> may god help us :-)
276<Linus> the QA department!
277<nayr> Programmers tend to hate me pretty quickly. =)
278<Linus> :-)
279<nayr> bedtime now. I'm sure I'll be bouncing back in here again soon. Thanks for all the work you folks have done so far, and I look forward to good things in the future!
280<-- nayr (~ryan@ip68-2-171-8.ph.ph.cox.net) has left #rockbox
281<-- Hadaka has quit (zahn.openprojects.net irc.openprojects.net)
282--> Hadaka (naked@graywolf.onnanifujiyuu.org) has joined #rockbox
283--> trillback (~trillian@sdn-ar-001ncraleP254.dialsprint.net) has joined #rockbox
284--> adi|work (~adiamas@pool-151-204-140-140.ny325.east.verizon.net) has joined #rockbox
285--> webmind (webmind@seal.student.utwente.nl) has joined #rockbox
286--> datazone ([sm5Ow6WK8@207.136.36.203) has joined #rockbox
287<Bagder> Linus: anyway, the id3 code should be reentrant now
288<Linus> Bagder: great
289<Bagder> and if you get time, I'd appreciate if you tried the playlist code on target
290<Bagder> I realize time is a shortage here ;-)
291<Linus> So the MP3 thread should use the ID3 code to dig some info from the file it plays
292<Bagder> yes
293<Linus> and pass it to the GUI somehow
294<Bagder> and "export" that info
295<Bagder> right
296<Linus> I'll try to find out a good way to report the current playing pos as well
297<Linus> I'll look into Lion's suggestion and see what I can do.
298<Bagder> about using a timer?
299<Linus> I didn't follow the playlist discussion. Do we have a working version?
300<Bagder> we do
301<Linus> Bagder: timer?
302<Bagder> somewhat "naive" and simple still thugh
303<Bagder> Linus: forget it, I didn't follow that talk so closely ;-)
304<Linus> AFAICS, there is no good way to determine the song length
305<Linus> does the ID3 tag contain such info?
306<Bagder> no, not without scanning the whole file
307<Bagder> VBR is hell
308--- Linus is now known as Linus|meeting
309<dwihno> :/
310<dwihno> VBR is evil stuff
311<Bagder> I can't believe I work in a project without gdb on target, when even rockbox has it :-/
312<dwihno> gdb?
313<dwihno> <-- sucks, tell me what gdb is good for
314<Bagder> debugger
315<Bagder> you've not developed seriously when you say that
316<dwihno> ah
317<dwihno> I used the visual c debugger
318<Bagder> right
319<dwihno> How hard is gdb to learn?
320<Bagder> gdb is much more powerful, if somewhat more crude interface
321<Bagder> the basics are simple
322<Bagder> using it from within emacs makes it even easier
323<dwihno> You got some basic introduction stuff?
324<Bagder> 'b [symbol]' for breakpoints
325<Bagder> 'c' for continue
326<Bagder> 'run' to start
327<Bagder> 'n' for next
328<Bagder> 's' for step-in
329<Bagder> that's it ;-)
330<Bagder> 'p [variable]' display variable contents
331<Bagder> 'info locals' display all local variables
332<dwihno> does it require some extra stuff compiled into the binary?
333<Bagder> yes, it requires that it was compiled with -g for maximum use
334<dwihno> mkay
335--> Zagor (~bjst@labb.contactor.se) has joined #rockbox
336<Bagder> hey Z
337<Zagor> hi
338<Bagder> Zagor: I added some playlist code yday
339<Bagder> not very fancy or anything, but it could work
340<Zagor> ok, nice
341<Bagder> it's still basic and slightly "naive"
342<Bagder> but a start
343<Bagder> Zagor: I made 'playing' hold a play "mode" instead of just a boolean
344<Bagder> so that play-all-dir should still work too
345<Zagor> in tree.c you mean?
346<Bagder> yes
347<Zagor> ok
348<Bagder> they're just digits now, but we should remake it into some enum or somthing
349<Zagor> yup
350<Zagor> 152 subscribers today
351<Bagder> wow
352<-- Smari has quit (Read error: 110 (Connection timed out))
353* ironi has returned, [gone/11h 49m 47s]
354<ironi> hello ppl
355<Zagor> hi ironi
356<Bagder> hey ho
357<ironi> just came home
358<ironi> I'm thinking on working on my persolan homepage
359<ironi> It needs a facelift
360<Bagder> time to go and get a visa ;-)
361--- Bagder is now known as Bagder|away
362<ironi> hehe
363<ironi> apt-get dist-upgrade is my favourite command ever
364<Zagor> yeah, debian rocks
365<ironi> it does.
366<Zagor> hehe, nice peak yesterday.
367<Zagor> 3rd june: 4700 accesses
368<Zagor> 4th june: 60196 accesses
369<Zagor> pages, not accesses
370<Zagor> 04:00-05:00 on the 4th: 25 pages
371<Zagor> 05:00-06:00 on the 4th: 3279 pages :)
372<ironi> has there been a post on slashdot?
373<ironi> =)
374<Zagor> quite so
375<dwihno> Is there some way to make directories invisible using the archos firmware? I'd like to have a folder to store documents and stuff and I don't want it being displayed :)
376<Zagor> not that I know of
377<ironi> dwihno: well maybe hidden directories could be excluded in the archos
378<ironi> that is perhaps an easy solution
379<dwihno> yeah
380<dwihno> I'll test that later
381<dwihno> I sold my last computer last night
382<dwihno> So now I have ZERO computers
383<dwihno> Zero, zip, nada!
384<ironi> heh
385<dwihno> INGA!
386<ironi> when is the dell coming?
387<dwihno> No jävla datorer! :)
388<dwihno> I haven't ordered it yet
389<ironi> oh ok
390<dwihno> I'm awaiting a faktura to be betalad by the evil customer
391<ironi> it doesn't take long for themto ship it though, i thiok.
392<ironi> you din't take cash, thats bad.
393<ironi> =)
394<dwihno> Nah, it will probably take less than 1 week
395<dwihno> Are there any good ways to install some really kickass boot loader?
396<dwihno> I want to have Win98, Win2k and linux on the same box :)
397<Zagor> i'm sure the guys in #linuxhelp knows all about that. :)
398<ironi> dwihno: grub is nice
399<dwihno> ironi: never tried it... :)
400* dwihno goes on a google streak
401<ironi> if you want windows gui easy-to-install-bla-bla-mumbo-jumbo there is powerquest bootmagic
402<dwihno> Eww
403<ironi> grub is cool though because you can edit the options in the boot loader
404<ironi> at boot
405<dwihno> That's what I like!
406<dwihno> I like configurability
407<ironi> i tried when using gentoo
408<ironi> i really find it better than lilo for me
409<dwihno> Hmm, how come?
410<ironi> i just like it more
411<dwihno> Is it cute? :)
412<ironi> you dont edit a config file, you instead enter a grub console where you supply commands
413<ironi> you can enter this console at boot too
414<ironi> if you want
415<dwihno> ah
416<dwihno> Damn DNS server!
417<dwihno> GIVE ME THE LOOKUP YOU EVIL DNS STUFF! :)
418<dwihno> ah, now it works
419--- Disconnected (Connection timed out).
420**** ENDING LOGGING AT Wed Jun 5 06:14:13 2002
421