You are not logged in.

#1 2008-05-25 17:03:54

Benzo
Member
From: Lima, Peru
Registered: 2008-05-25
Posts: 46

Wav files are played missing the first 0.10 seconds

Every wav file I play misses the first 0.10 - 0.15 seconds with every media player I tried except with Audacity which plays them fine. This problem happens even with fresh new users. I erased my root partition and installed everything again but the problem remains. Please any help.

Offline

#2 2008-05-25 22:05:08

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: Wav files are played missing the first 0.10 seconds

I have the same problem: it looks like a problem with alsa.
It's funny because if I use the oss compatibility layer, the files play just fine.

Offline

#3 2008-05-26 00:38:09

Benzo
Member
From: Lima, Peru
Registered: 2008-05-25
Posts: 46

Re: Wav files are played missing the first 0.10 seconds

Thanks God I'm not the only one with this crazy bug!!!! smile, I didn't notice that alsa got something to do with the problem, thanks for the info carlocci, I'm gonna search about it and post any possible solution.

Offline

#4 2008-05-26 14:23:56

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: Wav files are played missing the first 0.10 seconds

I tried to search with google, but couldn't find anything.

What card do you have?

this is mine:

00:06.0 Multimedia audio controller: nVidia Corporation MCP2S AC'97 Audio Controller (rev a1)
    Subsystem: ASRock Incorporation Unknown device 9761
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0 (500ns min, 1250ns max)
    Interrupt: pin A routed to IRQ 19
    Region 0: I/O ports at e800 [size=256]
    Region 1: I/O ports at ec00 [size=128]
    Region 2: Memory at ff6ff000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: [44] Power Management version 2
        Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
        Status: D0 PME-Enable- DSel=0 DScale=0 PME-

using snd_intel8x0 as driver

I'll try fiddling with some module parameters tonight

Offline

#5 2008-05-26 16:20:57

Benzo
Member
From: Lima, Peru
Registered: 2008-05-25
Posts: 46

Re: Wav files are played missing the first 0.10 seconds

Mine is this one:

00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
    Subsystem: Micro-Star International Co., Ltd. Unknown device 7309
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0 (500ns min, 1250ns max)
    Interrupt: pin B routed to IRQ 20
    Region 0: Memory at dfff4000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: [44] Power Management version 2
        Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
        Status: D0 PME-Enable- DSel=0 DScale=0 PME-
    Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/0 Enable-
        Address: 0000000000000000  Data: 0000
        Masking: 00000000  Pending: 00000000
    Capabilities: [6c] HyperTransport: MSI Mapping Enable- Fixed+

But I got no idea how to know which the driver is

Last edited by Benzo (2008-05-26 16:43:10)

Offline

#6 2008-05-26 17:02:01

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: Wav files are played missing the first 0.10 seconds

hwdetect --show-sound
or sudo hwd -e

Offline

#7 2008-05-26 17:35:44

Benzo
Member
From: Lima, Peru
Registered: 2008-05-25
Posts: 46

Re: Wav files are played missing the first 0.10 seconds

Ok thanks

$ hwdetect --show-sound
SOUND  : snd-mixer-oss snd-pcm-oss snd-hwdep snd snd-page-alloc snd-pcm snd-timer snd-hda-intel soundcore

Offline

#8 2008-05-28 19:03:21

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: Wav files are played missing the first 0.10 seconds

Ok, I made some other checks.
I was misled by mplayer: mpg123 using the alsa output module plays mp3s fine.
So it seems it was a coincidence and both mplayer and aplay have this problem.

Just to know, what programs did you notice the problem with?

Offline

#9 2008-05-29 18:26:55

Benzo
Member
From: Lima, Peru
Registered: 2008-05-25
Posts: 46

Re: Wav files are played missing the first 0.10 seconds

Beep-Media-Player
Exaile
Totem
VLC
aplay file.wav
gst-launch-0.10 playbin uri=file://

I reported the bug in alsa https://bugtrack.alsa-project.org/alsa- … hp?id=3979 but no answer yet

Offline

#10 2008-06-24 00:08:41

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Wav files are played missing the first 0.10 seconds

I have the same problem. mpg123 and audacity work fine, but all others I've tried (mpd, aplay, mplayer) fail. Where's the problem, so it can be fixed?

~ $ cat /proc/asound/cards 
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfebf8000 irq 22
~ $ hwdetect --show-sound
SOUND  : snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore

Last edited by peets (2008-06-24 00:16:16)

Offline

#11 2008-08-04 09:24:12

derivator
Member
From: Czech Republic
Registered: 2007-08-11
Posts: 5

Re: Wav files are played missing the first 0.10 seconds

Hello people

i've the same problem, fortunately i only need playing short wavs in IM programs, so i simply added 0.1 seconds of silence to these wav files.

//edit
Do you use any sound deamons?
i've noticed this only happens when playing wavs if i don't use any sound deamon. I tried starting esd and playing the wav using esdplay works normally - no bloody gap at the beginning of the sound.

Last edited by derivator (2008-08-04 09:27:51)

Offline

#12 2008-08-04 09:58:21

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: Wav files are played missing the first 0.10 seconds

I have same problem
but only with mplayer


Zygfryd Homonto

Offline

#13 2008-08-04 15:14:34

randomist
Member
Registered: 2008-08-04
Posts: 2

Re: Wav files are played missing the first 0.10 seconds

I also have this problem, playing "Front_Center.wav" in aplay gives me "-ont Center" not a major issue, but it is annoying

Offline

#14 2008-08-07 19:13:24

Devastator
Member
From: Poland
Registered: 2008-05-27
Posts: 179

Re: Wav files are played missing the first 0.10 seconds

I've got similiar problem, but it happens on all audio files. It is quite annoying when you're listening to few connected together music tracks (live recordings for example). I suppose it may be caused that player requires some time to close current file, and open the next one, but there should be some prefetching or something to avoid such situations... But I am still a begginer, and I may be wrong smile

Last edited by Devastator (2008-08-07 19:13:39)


Some applications are WYSIWYG, and some are WYSIWTF.

Offline

#15 2008-08-31 15:38:49

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Wav files are played missing the first 0.10 seconds

This issue is resolved for me with the latest release of alsa. See here: http://bbs.archlinux.org/viewtopic.php?pid=413985.

Offline

#16 2008-08-31 16:20:19

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: Wav files are played missing the first 0.10 seconds

one small step for an alsa developer, one giant leap for me

Offline

Board footer

Powered by FluxBB