All of lore.kernel.org
 help / color / mirror / Atom feed
From: Raymond <rayau@netvigator.com>
To: alsa-devel@lists.sourceforge.net
Cc: Dino Puller <dino@e4a.it>, Lee Revell <rlrevell@joe-job.com>,
	Takashi Iwai <tiwai@suse.de>,
	Manuel Jander <manuel.jander@gmail.com>
Subject: Re: Alsa mix in HW
Date: Fri, 02 Sep 2005 21:07:17 +0800	[thread overview]
Message-ID: <43184E85.3090100@netvigator.com> (raw)

> Dino wrote:
>> Raymond wrote:
>>
>> Dino,
>>
>> Do your sound cards has devices (snd_hardware_t) support the
>> following  features ?
>>
> I've got an Hercules Fortissimo II (cs46xx)

>> 1) Hardware mixing (no. of subdevices > 1 ??? )

> Yes 31 subdevices

>> 2) Panning mono to 2 or more speakers (.channels_min = 1 and pcm
>> volume/panning control for each subdevice)

> Nope i'm working on volume control per voice but i need more help from
> alsa developers. I can access to each volume control but when i change
> the volume the bass are cutting off and i don't know why :(

The patch for the volume control per voice of au88x0 has just been sent
to openvortex for review. For attenutation by distance, what dB range
can be provided by the volume control of cs46xx ?

16-bits audio data need gain when passing through cs46xx to
18-bits/20-bits DAC of AC97

Does anyone know the dB_to_volume conversion forumla of those pcm volume
control of trident, ymfpci, maestro3, emu10k1 ?

>> 3) Playback 8/16 bits mono/stereo audio (.format )

> Yep

>> Valid Formats are AL_FORMAT_MONO8, AL_FORMAT_MONO16,
>> AL_FORMAT_STEREO8  and AL_FORMAT_STEREO16.

Although cs46xx and trident support S8 ,U8, S16 and U16.

ymfpci, au88x0, maestro3 and emu10k1 only support U8 snd S16

It would be better to store audio in U8 and S16.

The structure AL_source should contain format/channels of the audio to
mono stream for 3D spatialization and the background music.

THe au88x0 driver may use different devices to spatialize mono audio
and stereo background music.

>> 3) Doppler Effect (.rate = SNDRV_PCM_RATE_CONTINUOUS )

> Nope but i souldn't spent too much time for this issue. Pitch shifting
> cost us only 1 addiction in floating point for each word.

Do cs46xx have hardware to perform pitch shift ?

>> 4) Recording API (capture 8/16 bits mono/stereo audio)

> Yep but openal-alsa doesn't support it yet

Do the alsa driver (.info = SNDRV_PCM_INFO_PAUSE) 
snd_pcm_hw_params_can_pause() perform the alcCaptureStop() by calling 
snd_pcm_pause(pcm, 1) and restart by calling snd_pcm_pause(pcm, 0) 
without calling snd_pcm_close() ?

Capture audio

If the application doesn't need to capture audio for an amount of time,
they can halt the device without closing it via the alCaptureStop entry
point.

The implementation is encouraged to optimize for this case. The amount
of audio samples available after restarting a stopped capture device is
reset to zero. The application does not need to stop the capture device
to read from it.

>> 5) Background music (.channels_max >= 2 )

> Yes

>>
>>
>> Valid Formats are AL_FORMAT_MONO8, AL_FORMAT_MONO16,
>> AL_FORMAT_STEREO8  and AL_FORMAT_STEREO16.
>>
>> Refer to alsa-lib/include/pcm.h
>>
>> /** Signed 8 bit */
>> SND_PCM_FORMAT_S8 = 0,
>> /** Unsigned 8 bit */
>> SND_PCM_FORMAT_U8,
>> /** Signed 16 bit Little Endian */
>> SND_PCM_FORMAT_S16_LE,
>> /** Signed 16 bit Big Endian */
>> SND_PCM_FORMAT_S16_BE,
>> /** Unsigned 16 bit Little Endian */
>> SND_PCM_FORMAT_U16_LE,
>> /** Unsigned 16 bit Big Endian */
>> SND_PCM_FORMAT_U16_BE,
>>
>> Is the audio data stored in the alBuffer signed or unsigned ?

> Is 16bit(also for 8bit wave) signed.

Do the audio convert to U8 and S16 in alutLoadWav?

> But openal-alsa works for you? Did you noticed a system improvement?
> I've obtained 2fps in ut2004 about 5% not bad :)

NO,  I cannot link any demo using the re-compiled openal-alsa library.

> bye,
> Dino









-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

             reply	other threads:[~2005-09-02 13:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-02 13:07 Raymond [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-09-10  0:22 Alsa mix in HW Raymond
2005-09-06  9:26 Raymond
2005-09-05  2:32 Raymond
     [not found] <42EBAE72.9090608@e4a.it>
2005-08-17 12:42 ` Raymond
2005-08-17 16:42   ` Lee Revell
2005-08-17 17:25     ` Takashi Iwai
2005-08-18  6:05       ` Manuel Jander
     [not found]         ` <43054957.1000407@netvigator.com>
2005-08-19 16:30           ` Manuel Jander
2005-08-20  8:30 ` Raymond
2005-08-22 16:41   ` Takashi Iwai
2005-08-23 15:45     ` Raymond
2005-08-27  2:02     ` Raymond

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=43184E85.3090100@netvigator.com \
    --to=rayau@netvigator.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=dino@e4a.it \
    --cc=manuel.jander@gmail.com \
    --cc=rlrevell@joe-job.com \
    --cc=tiwai@suse.de \
    /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.