Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Problem with sound

Author
Message
Bizar Guy
20
Years of Service
User Offline
Joined: 20th Apr 2005
Location: Bostonland
Posted: 4th May 2008 18:47 Edited at: 4th May 2008 19:02
I'm having a strange issue with my sound (not music), where there is crackling noise in all the sounds. This is specific to one program I'm coding, Dream in the WIP boards. It used to only happen for a minute of so when I started the code, and now it always happens. I know it's something to do with the code as the same sounds are fine in other DBC code I run.

What sort of thing causes DBC sound to crackle? It makes no sense to me, and it's become a big issue.

Edit: What the- now the sound crackles in all my code... I'll try rebooting, though I usually do.

BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 4th May 2008 19:57
Not sure of a code fix, but one thing that has caused that to happen with me are:

1. Cell Phone signals cause speakers to crackle, though this isn't likely as it is consistent.

2. More likely, devices that are activated near where your speakers are plugged in. For example, I have a game pad that I plugged in to the front of my computer. My speakers were also plugged in in front (long story) and the game pad started to cause the speakers to crackly constantly.

Since your problem is only in specific situations, try plugging your speakers into a different port if you have one. If that works, check any newly installed hardware, be it usb or internal. Try replacing them with older parts or omitting them all together to see if it fixes the problems. If it is, then the problem is that it is drawing too much current, thus creating a magnetic field which creates a current in your speaker wires. There probably is a better solution that just moving your speakers, but I don't know what it is.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Bizar Guy
20
Years of Service
User Offline
Joined: 20th Apr 2005
Location: Bostonland
Posted: 5th May 2008 03:46
Restarting got the issue back to just happening for the first minute in Dream, and no static in anything else.

I've had this problem in at least 4-6 different states in the US (I have a laptop). Also, I experience this problem with external speakers, laptop speakers, and headphones. I believe it happens on other computers as well, but I can't quite remember properly. I'm fairly certain though. Because it only happens with one program I've written, and it's been happening for 2-3 years, I'm certain it has to do with the code. I've never bothered fixing it because it's never been a big deal, but now I have a reason. I honestly don't know what it is, and the last thread that dealt with this issue was for all the code, and I fixed that by restarting. I don't know why I get static (and only for a minute at the start) in Dream.

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 5th May 2008 05:09
I had a problem where my sound wouldn't play at all!
It was a long time ago so can't remember exactly how I fixed it but I re-positioned the load line a few times and it worked.
Maybe you should try that, could be one of those strange glitches.

It is far better to complete a 10 line program than to start a 10,000 line program.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 5th May 2008 08:17
@Bizar

Maybe this link has some info that may help:
http://forum.thegamecreators.com/?m=forum_view&t=123288&b=10

Enjoy your day.
Bizar Guy
20
Years of Service
User Offline
Joined: 20th Apr 2005
Location: Bostonland
Posted: 12th May 2008 15:50
@OBese87, thanks, I might try that.

@Latch, already saw that thread, that's a different problem, the one that gets fixed when you restart the computer. My problem is sound being staticy for a minute before becomming normal again, in one specific program.

KISTech
17
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 12th May 2008 19:17
Check your sound device in Device Manager and see if there are any memory or IRQ conflicts.

jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 13th May 2008 03:01 Edited at: 13th May 2008 03:45
...also, some things I would check:
1. Sound devices have a notion of cooperation, which allows for more than 1 program to access them at the same time. Perhaps there is a conflict there.
2. USB powered communications have bled into my speakers (USB powered speakers) before, but that is fairly constant in my experience. (Same as B2N Productions' trouble above.)
3. An open mic line can cause trouble. If you mute the mic input, that might also help. (In fact, I'd try muting everything, except the wave channel, if that is what I was troubleshooting.)

...are you referring to perfect_imperfection? (You know that's music, and not sound...mp3 vs wav) Maybe the bitrate does not work with your particular codec well? It plays fine here, btw.

P.S. 19...I was listening too close! I like Dream...looking good.
Bizar Guy
20
Years of Service
User Offline
Joined: 20th Apr 2005
Location: Bostonland
Posted: 17th May 2008 06:11
I've determined now that the sound problem is specific to this computer, to this single program.

Quote: "Check your sound device in Device Manager and see if there are any memory or IRQ conflicts."

I'll look into that, thanks.

@jinzai, thanks for the suggestions, but if you read my second post, you'll know absolutely none of those would be the problem (except #1, I'll look into that). And no, I'm referring to anything loaded as a sound in DBC, regardless of the file type. Anything loaded as music works fine (such as perfect imperfection).

Quote: "P.S. 19...I was listening too close! I like Dream...looking good."

Thanks.

Login to post a reply

Server time is: 2025-06-06 15:58:50
Your offset time is: 2025-06-06 15:58:50