Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sound Not Playing

edited November 2013 in General Posts: 835

I tried using a sound in my game, but it doesnt play unless i have my headphones in, and yes, ringer is on and maxed, so is my volume.

Comments

  • Posts: 355

    Is strange @codeaNoob

  • Posts: 253
    I have no sound either, I think it's a bug. The sound works with everything else such as videos and music, but stopped working in codea...I'm using i-ph 6s...
    It usted to work fine, but all of the sudden it stopped...
  • Posts: 1,840

    @CodeaNoob @kendog400 - what systems and Codea version are you on? I am running Codea (3.2.5 [240]) on an iPad Pro and loaded @RonJeffries latest Space Invaders in then ran it - sound is fine. Try loading that on your systems and see if sound runs OK.

  • Posts: 253
    OK, thanks, will try that...Do you have a link ?...
  • dave1707dave1707 Mod
    Posts: 8,625

    Try the Codea Examples and load Sounds Plus. That lets you play different sounds and works OK for me. I’m running Codea 3.2.5 version 240. You didn’t say what Codea version you’re using. Try RonJefferies.com and select Space invaders 52, scroll to the bottom and load the invaders.zip

  • Posts: 253
    I tried the example, but got error msgs, at one time they worked.....Here are the 3 error msgs in the pics below...
    01.png 131.3K
    02.png 125.4K
    03.png 128K
  • dave1707dave1707 Mod
    edited September 28 Posts: 8,625

    @kendog400 Some commands have changes in the latest release. clearParameters is now parameters.clear(). Try running the code below. It should give you 4 seconds of monster noise.

    function setup()
        fill(255)
    end
    
    function draw()
        background(0)
        text("tap screen for 4 seconds of monster noise",WIDTH/2,HEIGHT/2)
    end
    
    function touched(t)
        if t.state==BEGAN then
            sound(asset.downloaded.A_Hero_s_Quest.Monster_Noise_1)
        end  
    end
    
  • edited September 30 Posts: 253
    .....
  • dave1707dave1707 Mod
    Posts: 8,625

    @kendog400 You posted your question in the wrong discussion. This one is about your problem with sound. Did the sound work when you used my above example. The above question should be in your discussion about your card game.

  • Posts: 131

    Had a similar issue multiple times now. Sometimes no sound is playing. By closing and re-opening Codea, I was able to fix it. I haven't changed anything major in my code regarding sound and I believe this did not occur before the last update, so it could potentially be a bug.

  • Posts: 253
    Ok....
  • Posts: 253
    I tried the above fix, but still nothing...
  • edited September 30 Posts: 1,840
    @kendog400 - you didn't reply to my query on what system you are using, and your details refer to you using iOS 12. Could you let us know then we know what your system is using. Computer iPad (version) or iPhone - iOS or iPadOS version number and Codea version number. Thanks.
  • Posts: 253
    Oh, ok, i-phone 6s, just updated codea, still no luck on getting sound back...thanks for help..
Sign In or Register to comment.