Surround example?
-------- Original Message --------
Subject: Re: [Alsa-devel] Surround example?
Date: Sat, 19 Nov 2005 10:25:34 +0100
From: Dino Puller <[email protected]>
To: Takashi Iwai <[email protected]>
References: <[email protected]> <[email protected]> <s5hoe4ip00t.wl%[email protected]> <[email protected]> <s5hlkzmoxxm.wl%[email protected]>
Quoted 51 lines · Takashi Iwai
At Fri, 18 Nov 2005 14:55:42 +0100,
Quoted 36 lines · Dino Puller
Quoted 32 lines · Takashi Iwai
At Fri, 18 Nov 2005 13:10:59 +0100,
Quoted 18 lines · Dino Puller
Quoted 4 lines · Dino Puller
Hi all,
i'd like to code a surround player, but i haven't found any
documentation about it, can you give me a link to a tutorial or an example or something?Quoted 8 lines
Thanks,
Dino PullerQuoted 5 lines
Ok now i've opened my surrond40 device but now what i have to change to my snd_pcm_mmap_begin/snd_pcm_mmap_commit routine? Actully i can hear noise only from front channels.
Are you using 1.0.10-final?
Quoted 10 lines
Quoted 6 lines
Takashi
No i'm using default alsalib that come with debian sid: 1.0.9 are there any improvement or issue in 1.0.10 ?
Quoted 8 lines
Yes.
Takashi
Hmm i'm looking to pcm.c example but when i lunch
#./pcm -Dsurround40 -c4 -mdirect_interleaved
I obtain:
Access type not available for playback: Invalid argument Setting of hwparams failed: Invalid argument
And direct mmap interleaved is the method i want to implement. So pcm.c isn't a good example for my purpose? Any Documentation?
thanks,
Dino
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
At Sat, 19 Nov 2005 10:26:14 +0100,
Quoted 78 lines · Dino Puller
-------- Original Message --------
Subject: Re: [Alsa-devel] Surround example?
Date: Sat, 19 Nov 2005 10:25:34 +0100
From: Dino Puller <[email protected]>
To: Takashi Iwai <[email protected]>
References: <[email protected]> <[email protected]>
<s5hoe4ip00t.wl%[email protected]> <[email protected]> <s5hlkzmoxxm.wl%[email protected]>Quoted 54 lines · Takashi Iwai
At Fri, 18 Nov 2005 14:55:42 +0100,
Quoted 39 lines · Dino Puller
Quoted 35 lines · Takashi Iwai
At Fri, 18 Nov 2005 13:10:59 +0100,
Quoted 19 lines · Dino Puller
Quoted 5 lines · Dino Puller
Hi all,
i'd like to code a surround player, but i haven't found any
documentation about it, can you give me a link to a tutorial or an example or something?Quoted 8 lines
Thanks,
Dino PullerQuoted 7 lines
Ok now i've opened my surrond40 device but now what i have to change to my snd_pcm_mmap_begin/snd_pcm_mmap_commit routine? Actully i can hear noise only from front channels.
Are you using 1.0.10-final?
Quoted 10 lines
Quoted 6 lines
Takashi
No i'm using default alsalib that come with debian sid: 1.0.9 are there any improvement or issue in 1.0.10 ?
Quoted 8 lines
Yes.
Takashi
Quoted 6 lines
Hmm i'm looking to
pcm.cexample but when i lunch
#./pcm -Dsurround40 -c4 -mdirect_interleaved
I obtain:Access type not available for playback: Invalid argument Setting of hwparams failed: Invalid argument
WORKSFORME. Which driver?
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
Quoted 102 lines · Takashi Iwai
At Sat, 19 Nov 2005 10:26:14 +0100,
Quoted 89 lines · Dino Puller
-------- Original Message --------
Subject: Re: [Alsa-devel] Surround example?
Date: Sat, 19 Nov 2005 10:25:34 +0100
From: Dino Puller <[email protected]>
To: Takashi Iwai <[email protected]>
References: <[email protected]> <[email protected]> <s5hoe4ip00t.wl%[email protected]> <[email protected]> <s5hlkzmoxxm.wl%[email protected]>Quoted 65 lines · Takashi Iwai
At Fri, 18 Nov 2005 14:55:42 +0100,
Quoted 53 lines · Dino Puller
Quoted 36 lines · Takashi Iwai
At Fri, 18 Nov 2005 13:10:59 +0100,
Quoted 21 lines · Dino Puller
Quoted 13 lines · Dino Puller
Hi all,
i'd like to code a surround player, but i haven't found any documentation about it, can you give me a link to a tutorial or an example or something?Thanks,
Dino PullerQuoted 7 lines
Ok now i've opened my surrond40 device but now what i have to change to my snd_pcm_mmap_begin/snd_pcm_mmap_commit routine? Actully i can hear noise only from front channels.
Quoted 11 lines
Are you using 1.0.10-final?
Takashi
Quoted 6 lines
No i'm using default alsalib that come with debian sid: 1.0.9 are there any improvement or issue in 1.0.10 ?
Quoted 10 lines
Yes.
Takashi
Quoted 8 lines
Hmm i'm looking to
pcm.cexample but when i lunch
#./pcm -Dsurround40 -c4 -mdirect_interleaved
I obtain:Access type not available for playback: Invalid argument Setting of hwparams failed: Invalid argument
Quoted 6 lines
WORKSFORME. Which driver?
Takashi
I'm using an Herculess Fortissimo II with a cs46xx driver.
Anyway i was looking for an example/documentation.
I've found that pcm.c is not correct for a mmaped play in surround mode: we have to setting the device with SND_PCM_ACCESS_MMAP_COMPLEX flag and pcm.c doesn't do it. For the remaining code pcm.c is right and nothing change from 2 channels to 4 ones in terms of main loop. I've found how alsa works, thanks.
Ah direct_loop (always in pcm.c) doesn't use the parameter areas, why not to clean it out?
bye,
Dino
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
At Mon, 21 Nov 2005 17:57:50 +0100,
Quoted 117 lines · Dino Puller
Quoted 108 lines · Takashi Iwai
At Sat, 19 Nov 2005 10:26:14 +0100,
Quoted 95 lines · Dino Puller
-------- Original Message --------
Subject: Re: [Alsa-devel] Surround example?
Date: Sat, 19 Nov 2005 10:25:34 +0100
From: Dino Puller <[email protected]>
To: Takashi Iwai <[email protected]>
References: <[email protected]> <[email protected]>
<s5hoe4ip00t.wl%[email protected]> <[email protected]> <s5hlkzmoxxm.wl%[email protected]>Quoted 69 lines · Takashi Iwai
At Fri, 18 Nov 2005 14:55:42 +0100,
Quoted 57 lines · Dino Puller
Quoted 40 lines · Takashi Iwai
At Fri, 18 Nov 2005 13:10:59 +0100,
Quoted 23 lines · Dino Puller
Quoted 5 lines · Dino Puller
Hi all,
i'd like to code a surround player, but i haven't found any documentation about it, can you give me a link to a tutorial or an example or something?Quoted 10 lines
Thanks,
Dino PullerQuoted 9 lines
Ok now i've opened my surrond40 device but now what i have to change to my snd_pcm_mmap_begin/snd_pcm_mmap_commit routine? Actully i can hear noise only from front channels.
Quoted 11 lines
Are you using 1.0.10-final?
Takashi
Quoted 6 lines
No i'm using default alsalib that come with debian sid: 1.0.9 are there any improvement or issue in 1.0.10 ?
Quoted 10 lines
Yes.
Takashi
Quoted 8 lines
Hmm i'm looking to
pcm.cexample but when i lunch
#./pcm -Dsurround40 -c4 -mdirect_interleaved
I obtain:Access type not available for playback: Invalid argument Setting of hwparams failed: Invalid argument
Quoted 6 lines
WORKSFORME. Which driver?
Takashi
Quoted 9 lines
I'm using an Herculess Fortissimo II with a cs46xx driver. Anyway i was looking for an example/documentation.
I've found thatpcm.cis not correct for a mmaped play in surround mode:
we have to setting the device withSND_PCM_ACCESS_MMAP_COMPLEXflag andpcm.cdoesn't do it. For the remaining codepcm.cis right and nothing change from 2 channels to 4 ones in terms of main loop.
I've found how alsa works, thanks.
Ahdirect_loop(always inpcm.c) doesn't use the parameter areas, why not to clean it out?
Keeping the uniform function type is nice, IMO. The parameters are marked as ATTRIBUTE_UNUSED now on CVS.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click