xaudio2

For questions about using Classic.

Post » Sun Apr 17, 2011 2:14 pm

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?

[code:pcz7w1qi]+ 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.
B
16
S
5
G
7
Posts: 599
Reputation: 5,000

Post » Sun Apr 17, 2011 2:32 pm

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?
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sun Apr 17, 2011 2:47 pm

Disabling the limiter solved the problem! Thanks.
B
16
S
5
G
7
Posts: 599
Reputation: 5,000

Post » Sun Apr 17, 2011 2:52 pm

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!
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sun Apr 17, 2011 2:58 pm

Thanks, I will remember.
B
16
S
5
G
7
Posts: 599
Reputation: 5,000

Post » Sun Apr 17, 2011 3:05 pm

[quote="tulamide":10spm959]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?[/quote:10spm959]

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

I had the same problem. Solved it using tulamides example:
I removed first couple of spikes. (everything before the red line)



Also make sure your sound doesn't overlap on loop.
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest