From: Takashi Iwai <tiwai@suse.de>
To: Dan Hollis <goemon@anime.net>
Cc: "Ville Syrjälä" <syrjala@sci.fi>, alsa-devel@lists.sourceforge.net
Subject: Re: more sample formats? too little place left.
Date: Mon, 10 Jun 2002 16:42:18 +0200 [thread overview]
Message-ID: <s5hk7p72o1h.wl@alsa2.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0206041353490.31844-100000@sasami.anime.net>
At Tue, 4 Jun 2002 13:55:54 -0700 (PDT),
Dan Hollis wrote:
>
> On Tue, 4 Jun 2002, Takashi Iwai wrote:
> > > Of course you will want a good API support structure for handling format
> > > conversions...
> > hmm, i don't think it must be a struct. enum (int) could have enough
> > values if it's not bitmask, although the order of format enumerators
> > may look a bit weird. there are already functions to retrieve a
> > detail information from the format type enum, such as
> > snd_pcm_format_width() and snd_pcm_format_little_endian().
>
> we want something expandable but avoid ugliness. something that jaroslav
> has been very good at so far (with switches, etc)
>
> 65535 different formats should be enough :-) and if there are functions to
> provide detailed descriptions of the formats, i think it's a good
> solution. even if the order of the formats looks strange because more are
> added on later.
>
> > so far, the bitmask is used only inside the alsa-driver and alsa-lib.
> > they must be extended in some good way. i believe that this change
> > can be hidden without changing API itself, but not figure out how
> > should we do that yet.
>
> and do it right the first time :-)
i talked (yes, physically!) with Jaroslav about this issue.
our conclusion is to extend the snd_pcm_hw_constraints_t struct,
namely, using char arrays instead of int for mask bits.
this will require an update of alsa-lib, too. the old alsa-lib
won't run. but applications are not necessarily compiled.
the other things should be kept as they were.
the order is ugly, but they are mostly exceptional cases.
we don't want to break compatibility on this stage.
i think this change can slip into rc2 (hopefully).
Takashi
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
next prev parent reply other threads:[~2002-06-10 14:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-31 14:23 more sample formats? too little place left Takashi Iwai
2002-05-31 18:36 ` Martijn Sipkema
2002-05-31 18:52 ` Martijn Sipkema
2002-06-03 13:43 ` Takashi Iwai
2002-06-03 15:00 ` Martijn Sipkema
2002-06-03 20:06 ` Frank van de Pol
2002-06-02 0:22 ` Ville Syrjälä
2002-06-03 13:47 ` Takashi Iwai
2002-06-03 21:32 ` Dan Hollis
2002-06-04 11:26 ` Takashi Iwai
2002-06-04 20:55 ` Dan Hollis
2002-06-10 14:42 ` Takashi Iwai [this message]
2002-06-10 20:46 ` Dan Hollis
2002-06-12 14:30 ` Takashi Iwai
2002-06-12 18:19 ` Dan Hollis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hk7p72o1h.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=goemon@anime.net \
--cc=syrjala@sci.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.