Click here to Skip to main content
11,411,263 members (66,745 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++
Hi Guys,
I am currently working in socket programming for audio in VC++ MFC. I am using WaveIn API Function. This should work on live audio streaming . In this code once the buffer is full it has to send to the receiver side and play the recorded audio. its works fine. but i need to add two buffers before sending this audio .after adding these two bytes to the buffer it is not working ( it is getting recorded but in the playback side it is not playing it is giving some noise ).what could be the reason for this ?
pls help me in this.Thanks in advance for ur valuable comments
Posted 17-Jun-12 18:14pm
Member 9102753 at 18-Jun-12 3:43am
why no reply for the above query is that question is not clear?
Code-o-mat at 18-Jun-12 5:39am
Well, a bit hard to guess from that much information, but i supose your added 2 bytes isn't part of the audio stream, so you should not try to play them on the receiver side. Remove them/skip them or something.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 149
1 Sascha Lefévre 110
2 OriginalGriff 103
3 Dave Kreskowiak 80
4 Maciej Los 78
0 Sergey Alexandrovich Kryukov 8,920
1 OriginalGriff 6,983
2 Maciej Los 3,430
3 Abhinav S 3,248
4 Peter Leow 3,059

Advertise | Privacy | Mobile
Web01 | 2.8.150414.5 | Last Updated 17 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100