xaudio2

This forum is currently in read-only mode.
  • As a test I have placed a wav-file in the work directory.

    When played in the preview, i hear a short crack/crackling-sound at the start of the soundclip, that can't be heard in the original soundfile.

    Does anyone have experience with this?

    + System: Every 1000 milliseconds
    + System: Is global variable 'Countdown' Less than 5
    -> XAudio2: Autoplay file AppPath & "countdown.wav" (No loop)[/code:pcz7w1qi]
    
    Properties from Windows (translated from Dutch, so may be translated in a bit uncommon way):
    length: less than a second.
    size: 34,5 kB.
    bit transmission speed: 1411 kbps.
    Size of fragment: 16 bits.
    channels: 2 (stereo).
    sound recording speed: 44 kHz.
    sound format: PCM.
  • By default, xaudio2 has a limiter active which makes sense but affects the sound being played. Try the following:

    1) While only playing this one sound, switch off the limiter and see if it still crackles.

    2) Open your wav-file with some sound editor and select the first milliseconds (ca 25-50 ms should suffice). Then use a fade-in on that part. Save it and try again with and without the limiter. Does it still crackle?

  • Disabling the limiter solved the problem! Thanks.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Be careful though, without the limiter all sounds being played at once will add to the maximum loudness. It is easily possible to exceed the 0db, which for digital sound means everything will be unbearable distorted. So, when working without the limiter, you have to make sure, you will never cross the 0db by lowering the volumes of the sounds!

  • Thanks, I will remember.

  • By default, xaudio2 has a limiter active which makes sense but affects the sound being played. Try the following:

    1) While only playing this one sound, switch off the limiter and see if it still crackles.

    2) Open your wav-file with some sound editor and select the first milliseconds (ca 25-50 ms should suffice). Then use a fade-in on that part. Save it and try again with and without the limiter. Does it still crackle?

    ------------------------------------------------------------------------

    I had the same problem. Solved it using tulamides example:

    I removed first couple of spikes. (everything before the red line)

    <img src="http://dl.dropbox.com/u/22173473/sounderror.png">

    Also make sure your sound doesn't overlap on loop.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)