I am taking microhone input from a logitech usb microhone on an xbox360 and outputting the audio singal in realtime. It's mostly working, except I'm getting some annoying 'clicks' inbetween the good signal. I could make a guess as to the cause of these 'clicks', but could anyone with a little more experience of outputting microphone signals give me some more informed advice? Thanks....
Removing click from realtime microphone playback
Started by ●August 2, 2008
Reply by ●August 2, 20082008-08-02
glowkeeper wrote:> I am taking microhone input from a logitech usb microhone on an xbox360 and > outputting the audio singal in realtime. > > It's mostly working, except I'm getting some annoying 'clicks' inbetween > the good signal. > > I could make a guess as to the cause of these 'clicks', but could anyone > with a little more experience of outputting microphone signals give me some > more informed advice? > > Thanks....Timing problem when switching buffers? Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by ●August 2, 20082008-08-02
On Aug 2, 8:05 am, "glowkeeper" <glowkee...@yahoo.co.uk> wrote:> I am taking microhone input from a logitech usb microhone on an xbox360 and > outputting the audio singal in realtime. > > It's mostly working, except I'm getting some annoying 'clicks' inbetween > the good signal. > > I could make a guess as to the cause of these 'clicks', but could anyone > with a little more experience of outputting microphone signals give me some > more informed advice? > > Thanks....It sounds like a sample rate mismatch because the A/D and D/A are not running off the same clock source. John
Reply by ●August 3, 20082008-08-03
>On Aug 2, 8:05 am, "glowkeeper" <glowkee...@yahoo.co.uk> wrote: >> I am taking microhone input from a logitech usb microhone on an xbox360and>> outputting the audio singal in realtime. >> >> It's mostly working, except I'm getting some annoying 'clicks'inbetween>> the good signal. >> >> I could make a guess as to the cause of these 'clicks', but couldanyone>> with a little more experience of outputting microphone signals give mesome>> more informed advice? >> >> Thanks.... > >It sounds like a sample rate mismatch because the A/D and D/A are not >running off the same clock source.If that is the case, what steps might I take to minimise the effect?
Reply by ●August 3, 20082008-08-03
>glowkeeper wrote: >> I am taking microhone input from a logitech usb microhone on an xbox360and>> outputting the audio singal in realtime. >> >> It's mostly working, except I'm getting some annoying 'clicks'inbetween>> the good signal. >> >> I could make a guess as to the cause of these 'clicks', but couldanyone>> with a little more experience of outputting microphone signals give mesome>> more informed advice? >> >> Thanks.... > >Timing problem when switching buffers?I have certainly had timing issues where the microphone has been filling up the buffer faster than the sound library has been requesting data, and visa-versa, and indeed, the sound quality then was dreadful. Is that what you mean? I've since got them running pretty close together whereby my microphone mostly gives me SAMPLE_RATE/FRAME_RATE data each frame, and my sound library requests SAMPLE_RATE/FRAME_RATE of data. The amount of data the mic' driver gives varies a little from frame to frame, but over time, it seems to average out correctly, and my buffer logic introduces a small lag to ensure that the sound library is always reading a buffer that the microphone has filled with a full SAMPLE_RATE/FRAME_RATE samples worth of information.
Reply by ●August 3, 20082008-08-03
glowkeeper wrote:>> glowkeeper wrote: >>> I am taking microhone input from a logitech usb microhone on an xbox360 > and >>> outputting the audio singal in realtime. >>> >>> It's mostly working, except I'm getting some annoying 'clicks' > inbetween >>> the good signal. >>> >>> I could make a guess as to the cause of these 'clicks', but could > anyone >>> with a little more experience of outputting microphone signals give me > some >>> more informed advice? >>> >>> Thanks.... >> Timing problem when switching buffers? > > I have certainly had timing issues where the microphone has been filling > up the buffer faster than the sound library has been requesting data, and > visa-versa, and indeed, the sound quality then was dreadful. Is that what > you mean?Yes.> I've since got them running pretty close together whereby my microphone > mostly gives me SAMPLE_RATE/FRAME_RATE data each frame, and my sound > library requests SAMPLE_RATE/FRAME_RATE of data."Pretty close" can turn "dreadful" into clicks.> The amount of data the > mic' driver gives varies a little from frame to frame, but over time, it > seems to average out correctly, and my buffer logic introduces a small lag > to ensure that the sound library is always reading a buffer that the > microphone has filled with a full SAMPLE_RATE/FRAME_RATE samples worth of > information.If there really are no discarded samples or "Feed me!" gaps, look for overload in the data. How many bits in the microphone samples? How many at the sound card? Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by ●August 3, 20082008-08-03
On Aug 3, 11:31 am, Jerry Avins <j...@ieee.org> wrote:> glowkeeper wrote: > >> glowkeeper wrote: > >>> I am taking microhone input from a logitech usb microhone on an xbox360 > > and > >>> outputting the audio singal in realtime. > > >>> It's mostly working, except I'm getting some annoying 'clicks' > > inbetween > >>> the good signal. > > >>> I could make a guess as to the cause of these 'clicks', but could > > anyone > >>> with a little more experience of outputting microphone signals give me > > some > >>> more informed advice? > > >>> Thanks.... > >> Timing problem when switching buffers? > > > I have certainly had timing issues where the microphone has been filling > > up the buffer faster than the sound library has been requesting data, and > > visa-versa, and indeed, the sound quality then was dreadful. Is that what > > you mean? > > Yes. > > > I've since got them running pretty close together whereby my microphone > > mostly gives me SAMPLE_RATE/FRAME_RATE data each frame, and my sound > > library requests SAMPLE_RATE/FRAME_RATE of data. > > "Pretty close" can turn "dreadful" into clicks. > > > The amount of data the > > mic' driver gives varies a little from frame to frame, but over time, it > > seems to average out correctly, and my buffer logic introduces a small lag > > to ensure that the sound library is always reading a buffer that the > > microphone has filled with a full SAMPLE_RATE/FRAME_RATE samples worth of > > information. > > If there really are no discarded samples or "Feed me!" gaps, look for > overload in the data. How many bits in the microphone samples? How many > at the sound card? > > Jerry > -- > Engineering is the art of making what you want from things you can get. > �����������������������������������������������������������������������A good thing to look for, but the OP's description "clicks between the good signal" does not suggest that problem. John
Reply by ●August 3, 20082008-08-03
On Aug 2, 1:05�pm, "glowkeeper" <glowkee...@yahoo.co.uk> wrote:> I am taking microhone input from a logitech usb microhone on an xbox360 and > outputting the audio singal in realtime. > > It's mostly working, except I'm getting some annoying 'clicks' inbetween > the good signal. > > I could make a guess as to the cause of these 'clicks', but could anyone > with a little more experience of outputting microphone signals give me some > more informed advice? > > Thanks....If it happened to me I think I would run tests to characterise the problem as to find the cause more easily, or at least have a better clue what to do. I think such a test can be as simple as recording a relatively low frequency sine wave and just 'look' at the clicks in a sound editor to know 'what they're made of' basically. I'd say it's the first almost necessary step towards a good solution.
Reply by ●August 4, 20082008-08-04
>On Aug 2, 1:05=A0pm, "glowkeeper" <glowkee...@yahoo.co.uk> wrote: >> I am taking microhone input from a logitech usb microhone on an xbox360a=>nd >> outputting the audio singal in realtime. >> >> It's mostly working, except I'm getting some annoying 'clicks'inbetween>> the good signal. >> >> I could make a guess as to the cause of these 'clicks', but couldanyone>> with a little more experience of outputting microphone signals give meso=>me >> more informed advice? >> >> Thanks.... > >If it happened to me I think I would run tests to characterise the >problem as to find the cause more easily, or at least have a better >clue what to do. I think such a test can be as simple as recording a >relatively low frequency sine wave and just 'look' at the clicks in a >sound editor to know 'what they're made of' basically. I'd say it's >the first almost necessary step towards a good solution.That's a nice suggestion! I'll grab my 440Hz guitar tuner and do just that.....
Reply by ●August 4, 20082008-08-04
glowkeeper wrote:>>On Aug 2, 1:05=A0pm, "glowkeeper" <glowkee...@yahoo.co.uk> wrote: >> >>>I am taking microhone input from a logitech usb microhone on an xbox360 > > a= > >>nd >> >>>outputting the audio singal in realtime. >>> >>>It's mostly working, except I'm getting some annoying 'clicks' > > inbetween > >>>the good signal. >>> >>>I could make a guess as to the cause of these 'clicks', but could > > anyone > >>>with a little more experience of outputting microphone signals give me > > so= > >>me >> >>>more informed advice? >>> >>>Thanks.... >> >>If it happened to me I think I would run tests to characterise the >>problem as to find the cause more easily, or at least have a better >>clue what to do. I think such a test can be as simple as recording a >>relatively low frequency sine wave and just 'look' at the clicks in a >>sound editor to know 'what they're made of' basically. I'd say it's >>the first almost necessary step towards a good solution. > > > That's a nice suggestion! I'll grab my 440Hz guitar tuner and do just > that.....Actually just sing an A440. You won't even have to be on key for it to be useful.






