Re: adding directory contents to ogg123 playing in sorted order?

Ray Kohler <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <[email protected]>
On Sun, Feb 28, 2010 at 11:01 PM,  <[email protected]> wrote:
>>> Yes, we'd take such a patch.  _Especially_ if you do the extra build
>>> system legwork to establish portability. :-)  Now is good timing too,
>>> I intend to release a new ogg123 this month.
>>
>> Ok, I will work on this soon, hopefully tomorrow. I have to learn
>> autotools practically from scratch, so this could give me a little
>> trouble.
>
> Then don't worry about that part.  If you could look to see where
> support does and doesn't exist, that still helps.

The new functions I'd be using are scandir(3) and alphasort(3). Both
are BSD-derived. I know they are also present on Solaris 8+ and HP-UX
11i v2, as well as any modern glibc, as that's what I have direct
access to. It's likely that they're available on any SysV-based system
that ships a BSD-compatibility layer as well. That's quite possibly
everything.

I'll make a first pass that basically replaces
playlist_append_directory() entirely, as I'm guessing that's probably
the easiest way to handle two different cases at compile-time.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.