Click here to Skip to main content
15,909,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: String convertion in c/c++? Pin
Matthew Faithfull17-Oct-08 5:09
Matthew Faithfull17-Oct-08 5:09 
GeneralRe: String convertion in c/c++? Pin
Michael Dunn17-Oct-08 11:20
sitebuilderMichael Dunn17-Oct-08 11:20 
GeneralRe: String convertion in c/c++? Pin
Matthew Faithfull19-Oct-08 21:44
Matthew Faithfull19-Oct-08 21:44 
Questionpreprocessed file issue Pin
George_George17-Oct-08 2:35
George_George17-Oct-08 2:35 
AnswerRe: preprocessed file issue Pin
David Crow17-Oct-08 3:44
David Crow17-Oct-08 3:44 
GeneralRe: preprocessed file issue Pin
George_George17-Oct-08 3:49
George_George17-Oct-08 3:49 
QuestionKilling clicking noises after downsampling 48kHz to 8kHz Pin
CrazyDogg17-Oct-08 2:28
CrazyDogg17-Oct-08 2:28 
AnswerRe: Killing clicking noises after downsampling 48kHz to 8kHz Pin
Redeye9217-Oct-08 3:34
Redeye9217-Oct-08 3:34 
This probably isn't really the forum for audio DSP questions, but I might be able to help.

I think the problem might be with your downsampling method. Try not encoding to uLaw and just sending the output to the soundcard in 8kHz PCM format. If the problem is still there, try just decimating without the LPF by changing your function to :

int CAudioOut::Reduce48to8kHz(short* pBuffer, int nBytesToReduce)
{
    ASSERT((nBytesToReduce % 6) == 0);
    short* pSrc = pBuffer;
    short* pDst = pBuffer;
    for(int i = 0; i < (nBytesToReduce / 6); i++)
    {
        *pDst++ = pSrc;
        pSrc += 6;
    }
    return (pDst - pBuffer);
}


You'll get some fairly hideous anti-aliasing, but hopefully no clicks.

Let me know if that helps and I'll explain the rest of the solution.
GeneralRe: Killing clicking noises after downsampling 48kHz to 8kHz Pin
CrazyDogg17-Oct-08 3:40
CrazyDogg17-Oct-08 3:40 
GeneralRe: Killing clicking noises after downsampling 48kHz to 8kHz Pin
Redeye9217-Oct-08 4:02
Redeye9217-Oct-08 4:02 
GeneralRe: Killing clicking noises after downsampling 48kHz to 8kHz Pin
CrazyDogg17-Oct-08 4:19
CrazyDogg17-Oct-08 4:19 
GeneralRe: Killing clicking noises after downsampling 48kHz to 8kHz Pin
Redeye9217-Oct-08 4:21
Redeye9217-Oct-08 4:21 
GeneralRe: Killing clicking noises after downsampling 48kHz to 8kHz Pin
CrazyDogg17-Oct-08 4:30
CrazyDogg17-Oct-08 4:30 
GeneralRe: Killing clicking noises after downsampling 48kHz to 8kHz Pin
Redeye9217-Oct-08 4:38
Redeye9217-Oct-08 4:38 
GeneralRe: Killing clicking noises after downsampling 48kHz to 8kHz Pin
CrazyDogg17-Oct-08 4:43
CrazyDogg17-Oct-08 4:43 
GeneralRe: Killing clicking noises after downsampling 48kHz to 8kHz Pin
Redeye9217-Oct-08 5:01
Redeye9217-Oct-08 5:01 
GeneralRe: Killing clicking noises after downsampling 48kHz to 8kHz Pin
CrazyDogg17-Oct-08 5:16
CrazyDogg17-Oct-08 5:16 
QuestionClipBoard Pin
MsmVc17-Oct-08 2:20
MsmVc17-Oct-08 2:20 
AnswerRe: ClipBoard Pin
SandipG 17-Oct-08 2:25
SandipG 17-Oct-08 2:25 
QuestionRe: ClipBoard Pin
David Crow17-Oct-08 3:50
David Crow17-Oct-08 3:50 
AnswerRe: ClipBoard Pin
MsmVc17-Oct-08 18:18
MsmVc17-Oct-08 18:18 
GeneralRe: ClipBoard Pin
David Crow18-Oct-08 14:40
David Crow18-Oct-08 14:40 
AnswerRe: ClipBoard Pin
MsmVc17-Oct-08 19:06
MsmVc17-Oct-08 19:06 
GeneralRe: ClipBoard Pin
David Crow18-Oct-08 14:38
David Crow18-Oct-08 14:38 
AnswerRe: ClipBoard Pin
Hamid_RT17-Oct-08 19:07
Hamid_RT17-Oct-08 19:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.