Skip to contentSkip to conversation

Sound in QT-Threads

DISCUSSION Gabriel Gatzsche 2 participants 2 messages Jul 3, 2002 – Jul 5, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines

Hello!
I have made a program with two qt-threads. One for reading from soundcard, one for writing. There are no problems if the threads work allone. But if both threads work in the same time, the program chrashes some times with following message:

     wavplay: pcm.c:5191: snd_pcm_mmap_commit: Assertion `offset == 

*pcm->appl_ptr % pcm->buffer_size' failed.
Can somebody tell, what to do?

Thanks for your help
Gabriel

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf

#2 lore raw

Hi,

At Wed, 03 Jul 2002 08:04:17 +0200,

Quoted 10 lines · Gabriel Gatzsche
Quoted 10 lines

Hello!
I have made a program with two qt-threads. One for reading from soundcard, one for writing.
There are no problems if the threads work allone. But if both threads work in the same time, the program
chrashes some times with following message:

     wavplay: pcm.c:5191: snd_pcm_mmap_commit: Assertion `offset == 

*pcm->appl_ptr % pcm->buffer_size' failed.
Can somebody tell, what to do?

it's difficult to say many things...
does it happen if you run two processes (not threads), one for playback and another for capture at the same time?

anyway it'd be better to show codes to check more details.

ciao,

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Bringing you mounds of caffeinated joy.
http://thinkgeek.com/sf