LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2005, 10:46 AM   #1
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
dmix asoundrc - what do period_size and period_time mean


I had some trouble with skipping audio so I started changing parameters in there. Now it looks like changing period_time from 0 to 128 helped for me. Now I'm interested in what this option actually does. All the alsa sample configurations just set it at 0 but I can't find a definition nor can I find one for period_size. So if anybody could point me to a site which does say what it is or tell me what it does Thank you in advance!
 
Old 04-05-2005, 09:12 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
here are some interesting notes
http://www.sabi.co.uk/Cfg/ALSA/asound.conf

it might be better to try dmix with the defaults first rather than continuing to adjust
unless you can understand your sound card very well
(try this as an alternative to setting the buffers in a wrapper plugin for dmix)

Code:
pcm.dsp0 {
    type plug
    slave.pcm "dmix"
}
pcm.!default {
    type plug
    slave.pcm "dmix"
}
 
Old 04-05-2005, 09:48 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
hey -- i was just messing with this cause you got me thinking
do this
run xmms the way it works best without dmix with a good file format whatever
then look at
/proc/asound/card0/pcm0p/sub0/hw_params

there you find the proper period_size: setting and buffer_size

oh yea i forgot to add i think the period_time setting is just another way to set the buffer size -- setting it to 0 doesn't seem to have any effect here and doesn't show up in hw_params -- buffer_time also doesn't seem to have any effect

this is most likely all hw specific

Last edited by foo_bar_foo; 04-05-2005 at 10:10 PM.
 
Old 04-06-2005, 03:11 AM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
I changed it to how it should be without asoundrc and it didn't work. That link you gave is really useful so I think I'll start in there as well. Strange things go on when I have asoundrc. Multiple xmms showing up in ps -aux but I guess there was a difference between them so I'm going to check it out too. Thanks for the help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Asoundrc problems Atmchicago Linux - Games 4 04-11-2005 03:19 PM
Using .asoundrc to tweak OSS Sound? DGrierson Linux - Software 0 02-03-2005 12:52 PM
What needs adding to .asoundrc to get 5.1? redneon Linux - Software 0 01-31-2005 08:33 AM
asoundrc for Terratec Aureon (ice1724) BedriddenTech Linux - Hardware 0 10-24-2004 07:37 AM
ALSA device stuff ( asoundrc file probably) Tomasfuego Linux - Hardware 1 02-12-2004 06:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration