On Wed, Feb 11, 2015 at 02:27:32AM -0200, Henrique Lengler wrote: > ------------------------------------------------------------------------ > Hi, > > I'm new in OpenBSD (I'm loving it), I came from Linux. I installed the > last (5.6) version, and I started to use, without doing any change in > audio settings. > > The first thing I noticed while computing at night, is a little > noise in the background, it is very low, but it exist and bothers me, its > more like a television sound when it don't have signali, but very low. >
the noise might be caused by a noisy microphone amp (even if there's no microphone plugged). By mutting the microphoe, the noise may disappear. Could you post the output of "mixerctl -a" ? > I checked if the problem wasn't the earphone, but It worked fine > plugged in a windows notebook, and I was using it in Linux in this computer > around 2 days ago, its also not eletric problem, because it don't sounds like > one, my computer never had this and it don't stop if I put my hands on it. > > I installed cmus, copied some musics to my disk and started to listen. > It plays normally, but when I click the arrows to advance in the music, I > noticed it have a delay, and it lags if I click like 3 times to advance. > And if click to close the application, the application close in the same > time, > but the audio stay playing for a while. > > The next thing is mplayer, It lag to advance the video (as cmus), but > it don't stay playing when I click close. How long is the lag? By default the buffer size is large which causes around 0.2 second of extra lag but makes audio stable (this is to allow audio to kinda work on busy or on MP systems). You could try to use smaller buffers, for instance add: sndiod_flags="-z 480" to /etc/rc.conf.local and restart sndiod with: /etc/rc.d/sndiod restart but I don't recommend this unless your system stays idle. > The last similar problem happens when I am playing a html5 video and I pause > or it stops to load, the audio gets desynchronized. So I need to click in a > part of the timeline to get it working again. > probably the player code is wrong, this can't be fixed by tweaking the config, sorry. -- Alexandre