What the heck is this error? Seems sound-related...

This forum is currently in read-only mode.
  • My money's on a shared-memory built-in graphics card, possibly coupled with extra-large sound files.

    Sponge.

  • my money's on the counter, under the paperweight

  • Well, for some reason I have no idea how to recreate it in its own app. The sound, while adjusting a meter, plays every 75 milliseconds to give a nice "repeating" sound. It's a nice way of faking that the sound is playing with every rapid adjustment of the meter, and the only way I could actually get it to be presented that way. The sound file is only 10kb or so.

    If you'd like, you can take a look at the app itself. There's a lot of stuff going on, but what I'm talking about happens specifically in the color customization menu. It'll likely screw up for all of you guys too.

    http://www.megaupload.com/?d=EOY6STVS

    I hope that works for you guys. I remember megaupload being pretty awesome, but I guess they suddenly decided to start sucking.

  • I don't think it's your sound at all. I think it's that background on your menu screen. I get some craaazy bad slowdown when it's open, and with every arrow-key event (switching to menu options and such) it lags really bad.

    The volume slider is the worst. It's not playing every 75ms... more like every half a second. And the entire screen jerks and lags along with it.

    It looks like you have some pretty heavy shader use going on, and maybe canvases or something. I do recall you mentioning something about erasing the corners of your menu in a previous post... and the sprites look like they at least have Glow on them.

    Anyway, no it doesn't crash for me, but I really would not be surprised that it crashes for you or other people with lower-end computers than mine. You're choking it to death. You need some serious optimization.

    And if you're wondering "well why did it only start crashing when I added the sound?" the I guess that's just a final-straw scenario.

  • I don't think it's your sound at all. I think it's that background on your menu screen. I get some craaazy bad slowdown when it's open, and with every arrow-key event (switching to menu options and such) it lags really bad.

    The volume slider is the worst. It's not playing every 75ms... more like every half a second. And the entire screen jerks and lags along with it.

    Well, I have it set to 75 milliseconds... And yeah, it does lag, but... I thought it was just a little lag, that's all. Nothing completely crashing.

    [quote:z5m73yi6]It looks like you have some pretty heavy shader use going on, and maybe canvases or something. I do recall you mentioning something about erasing the corners of your menu in a previous post... and the sprites look like they at least have Glow on them.

    Well, I DO have a lot of that "erase" stuff going on, not to mention "seperate" on the layer properties themselves, but the sprites don't have Construct glow, they have Photoshop glow. They were made in Photoshop like that and saved as .png files, so there's no more effects going on there. The text however, does have "outline", but I didn't need to tell you that.

    [quote:z5m73yi6]Anyway, no it doesn't crash for me, but I really would not be surprised that it crashes for you or other people with lower-end computers than mine. You're choking it to death. You need some serious optimization.

    It DOES crash eventually, you just gotta keep fiddling with the color customization. Just try making everything yellow, or everything white, or something that would require you to move those meters around a lot. Eventually the sound effect will cut out entirely, and then it's not too long until it crashes.

    [quote:z5m73yi6]And if you're wondering "well why did it only start crashing when I added the sound?" the I guess that's just a final-straw scenario.

    I didn't think all this would be THAT much for Construct. ;_; I thought it could do a bunch of 2D stuff or something, I dunno. I guess there's nothing that can really be done?

  • [quote:3buhm52f]It DOES crash eventually, you just gotta keep fiddling with the color customization. Just try making everything yellow, or everything white, or something that would require you to move those meters around a lot. Eventually the sound effect will cut out entirely, and then it's not too long until it crashes.

    Yep. It did exactly as you said. I'm sorry I doubted you

    And after the sound stopped working, the menu speed jumped up dramatically. The scrolling background and the sliders started moving at a normal rate. Then after about ten seconds or so it crashed. Weird.

    What do your sound events look like?

    Edit:

    Hmm, it seems your "jump" sound is causing framedrop as well. strange.

  • Well, the sounds have to kinda "load" first, and obviously, I'm doing this all via resources. For the sound effects, I'm using only one option so far, but I'm going to use much more eventually. I just wanted one at first to do some sound testing, but obviously, being only a single sound object, some sounds interupt others, and I don't want that, so I'll be using more sound objects later in the development. As for the events, I'm having the sound object "play music" for the sound effects, if that makes any difference.

  • I hate to continue to pester people with this, but does anyone have any idea how I could fix this? Maybe using a different sound format? Like .xm or something? More sound objects to handle sound effects?

  • You only need one sound object.

    What do your sound events look like?

  • You already asked. o_o Sorry I didn't reply properly. ^^ Here's a list of events, screencapped and saved to an image file. If you take a look through it, it's not really any different from anything I said before, and I'm not nessecarily overworking the sound file object or anything, so I'm not sure what the problem is, really.

    <img src="http://i77.photobucket.com/albums/j42/Dreamer_Kisai/Listofsoundevents-1.jpg">

    My apologies if that's a bit long, but I figured it'd be best to begin with introducing the structure of the events, and how they're started in a group, and go down from there. ^_^;

  • Hmm, yeah, it could be the Play Music action. You shouldn't have to use Play Music for a single, short sound effect.

    Try converting your .wma files to .wav, and add them as resources. Then use the Autoplay Resource action.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The sound files were originally .wav. I had to convert them to .wma because it won't work any other way. If I try using them as .wav, and use "autoplay resource", the sound won't play. Just silence.

  • What were they created with? What was their bit depth and sampling rate?

    I've noticed that wave files made at 8 bit or 22.05kHz with SFXR often times won't play in Construct, even if they play in other audio programs. Converters and sound editors might add funky header information that Construct doesn't like, as well. Or so I've heard. So it might not have been a Construct issue. Well, not totally anyway.

    Suffice to say you should be able to autoplay .wavs no problem, especially if they're short.

    Anyway, if you still have the originals you might be able to open them in something like Audacity and re-save them. That usually fixes any sounds that are broken for me.

  • The sound files were originally .wav. I had to convert them to .wma because it won't work any other way. If I try using them as .wav, and use "autoplay resource", the sound won't play. Just silence.

    Then you should submit a bug report for that and try and get that fixed, because 'play music' certainly is not intended to play your sound effects, which may well be the source of this problem.

    Note that only WAVs with certain codecs work with XAudio2, see the wiki for more info.

  • Well... I don't get why it isn't working... I tried a .wav file with all three of those properties, and .ogg, but still nothing. Is there another event I'm supposed to do first to set it up, since they're "channels" or whatever?

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