Howdy, Stranger!

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

Audio-related bug?

in Bugs Posts: 81

I thought I saw a recent post about this or something similar, but can’t find it.

I am a daily user of Codea, and an endless listener of music. Here’s what happens:

1) Find some great music to listen to...
2) Open Codea, open a project, and run the code
2) End code execution and return to edit mode
3) Now switch out of Codea (any way: home button, swipe, double tap home button)
4) Once you open another app (Safari, Spotify, Working Copy, Shade?!), there’s a noticeable hiccup of sorts in the audio - a quick blip loss of audio, then it returns.
5) Reopen Codea, and the hiccup happens again...

This will always happen. Completely reproducible.

Anyone else having this issue? I’m on an iPad Pro, 1st gen 12.9.

Tagged:

Comments

  • pacpac
    Posts: 216

    Yea same iPad but when I did an ios update it quit so just check for an update.

  • SimeonSimeon Admin Mod
    Posts: 5,403

    @iam3o5am sorry about this issue, it relates to something called the "audio session category" on iOS

    Because Codea offers a microphone recording API, as well as music and sound effects playback, it needs to re-configure the audio session whenever it opens. This causes the audio hiccup you can hear when Codea sets the mode to playback + recording. I haven't found a way around this (yet)

  • Thanks @Simeon for the info. It’s far from being a deal-breaker for me. Lot’s of hiccups just means I’m having a good day (music + coding).

  • Posts: 244
    My sound ( ) fx isn't working, before it was ok, I think it's a bug, doesn't seem to work on any of my PGMs....it just stopped all of the sudden..
  • Posts: 1,807
    @Simeon - could you capture the current audio configuration when starting up Codea then restore just before exiting?
  • dave1707dave1707 Mod
    Posts: 8,563

    @kendog400 Try this. If this doesn’t work, then check that your volume is turned on. I doubt it’s a bug.

    function setup()
        sound(asset.downloaded.A_Hero_s_Quest.Arrow_Shoot_1)
    end
    
  • Posts: 244
    Thanks, by the way, I tried the lua touch for android, it doesn't have a function setup () , or a function draw () , and it doesn't work so well...I only wanted it to help me with codea....got a lot of unexpected chatter error msgs....
  • Posts: 244
    I tried to use the setup pgm, nothing seems to work, I checked the volume, still no audio. I've seen this happen before, but out of nowhere the audio started working again...I even used a pgm...
    ~~~
    displayMode (FULLSCREEN)
    function setup ()
    end

    function draw ()
    background (0)
    fill(255)
    text ("Tocuch screen to play soud", WIDTH/2, HEIGHT-100)
    sprite (asset.builtin.space_art.UFO) WIDTH/2, HEIGHT/2)
    end

    function touched (t)
    if t.state==BEGAN then
    sound (asset.documents.card_deal,2)
    end
    ~~~
    Still nothing....
  • dave1707dave1707 Mod
    Posts: 8,563

    What device are you using and does the sound work on other apps. If it doesn’t work with only Codea, maybe you can save your projects somewhere, delete Codea and reload it.

  • Posts: 244
    It is i-phone 6s....was on sale for $150.....faster than i-pad 4.....have to adjust text screen locations or text gets printed off the screen...
Sign In or Register to comment.