begin process at 2008 07 05 14:19:26
1 205 182 membres
158 nouveaux aujourd'hui
14 119 membres club

Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum.
Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

Sujet : Wave vizualization and recordind [ Mutimédia / Audio ] (Chaser_DS)

Wave vizualization and recordind le 05/12/2007 16:07:18

Chaser_DS
Hi. I am from Russia, and I small speak English. I have a question. Sample - It is a test audio visualization and audio recording test (link on source code I put below). I am take a samples for recording audio from internet. And I take a other source for audio visualization. The imaging audio occurs on event "OnWaveIn". My trouble: On ditto event occurs and record audio. So here is: if press on button "Record", that occur the error ("Access violation at address ..."), but if comment part of code: { WaveInAddBuffer(WaveIn, PWaveHdr(Msg.lParam),SizeOf(TWaveHdr)); data16:=PData16(PWaveHdr(Msg.lParam)^.lpData); move(data16^[0],m,BufSize*2); // if data16^[0]<>m[1] // then showMessage('skipped'); } that record goes orderly, but not vizualize wave audio. If you are know to possible my problem, please ask me about solve trouble with combine the visual image audio and simultaneous its record. Link to sample of source code: http://chaser.front.ru/WaveVizRecorder.zip Thanks for your help! Mersi )

Re : Wave vizualization and recordind le 05/12/2007 17:07:00
Re : Wave vizualization and recordind le 05/12/2007 23:35:59

WhiteHippo
Membre Club
Hi

This is a french forum !  I'll answer you in english but it's the last time !!
The problem seems to be on your "move(data16^[0],m,BufSize*2);"
You have to take care of the length of the datas received, something like that :
    move(data16^[0],m,PWaveHdr(Msg.lParam)^.dwBufferLength);

P.S. No time to go deeper in your code to see if something else is wrong.

Cordialement.

"L'imagination est plus importante que le savoir." Albert Einstein

Re : Wave vizualization and recordind le 06/12/2007 19:32:31

Chaser_DS
Thanks WhiteHippo for help! But with this correction "move(data16^[0],m,PWaveHdr(Msg.lParam)^.dwBufferLength)" the error does not appear, but recorded wav file is play as cheep, rather then as sounds when recording. Can help someone else with this trouble?


Classé sous : and, audio, record, wave, if

Participer à cet échange

Pub



Appels d'offres

Plugin Dialer outlook
Budget : 2 000€
Travail graphique- ill...
Budget : 1 000€
creation de marque et ...
Budget : 1 000€

CalendriCode

Juillet 2008
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Téléchargements

Logiciels à télécharger sur le même thème :

Boutique

Boutique de goodies CodeS-SourceS