Re: file order after loading directory
Colin Macdonald <[email protected]>
| Newsgroups | gmane.comp.multimedia.xmms.devel |
|---|---|
| Message-ID | <Pine.GSO.4.10.10302081534490.22833-100000@stawlmihq> |
On Sat, 8 Feb 2003, Brian Craft wrote: > Why does xmms munge the order of files in a directory after doing an "add > directory", and how can I get it to stop? I don't have shuffle selected. I > always have to resort the files after loading, even though they're in the right > order in the directory. Probably (one could check the code), they are using readdir (see "man 3 readdir") which I believe reads files based on the order of the inodes on the filesystem or something like that. Basically this means you will get the files in the order you wrote them to disk (assuming your harddisk is relatively new/empty). If you want to fix this, then you could probably change the source code to run the sort function after the add function... AFAIK shuffle only affects the choice of file to be played next; nothing to do with ordering your files in the playlist. Cheers, Colin -- Colin Macdonald Graduate Student, Dept. of Mathematics, Simon Fraser University mail: cbm[at]math[dot]sfu[dot]ca, phone: 604.268.6689 (office) Please do not send me Word or PowerPoint attachments See http://www.fsf.org/philosophy/no-word-attachments.html