omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Sound module doesn't work with built-in speakers

    Pythonista
    sound
    2
    4
    3723
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • arthurtilly
      arthurtilly last edited by

      I've been trying to use the sound module to add effects to my game, but for some reason the sounds only play when headphones are connected to my iPad. This also happens in the [+] menu when I play the sounds, no matter what my volume is set to. However, the keyboard click sounds play regardless of whether headphones are connected. I use an iPad 3. Any help would be appreciated.

      Also, is there any way to add sound files into Pythonista? The sound tab in the [+] menu has a "Files" section which makes me think it's possible, but I don't know how to add them.

      1 Reply Last reply Reply Quote 0
      • dgelessus
        dgelessus last edited by

        The behavior you're describing sounds like you have your device muted - on a muted device, sound effects are only played via headphones. To unmute it, you need to either move the switch on the side of your iPad, or tap on the bell icon in the Control Center (if you have your side switch set to lock the screen rotation).

        You can import external files into Pythonista via the share extension. First you need to get your sound file into an app that has a "share" option for files. Then "share" the file from that app, and select "Run Python Script" in the bottom row of the share sheet. (If Pythonista's share extension isn't shown, scroll all the way to the right, tap on the three dots, and turn Pythonista's share extension on in the list.) In the Pythonista share extension, you should then have an "Import File" option.

        Pythonista doesn't show up as a normal "Open In" target because of Apple's app guidelines, which prohibit apps from executing external code. The detour via the share extension is allowed, because it has a special case to not allow importing Python scripts. (I mean, you can just rename the Python script to .txt, import it, and then rename it back. But the app review team is happy with this, and that's all that matters.)

        1 Reply Last reply Reply Quote 0
        • arthurtilly
          arthurtilly last edited by

          Thanks for the help with the sound, it worked a treat. Do you know any apps I could use that have a share option?

          1 Reply Last reply Reply Quote 0
          • dgelessus
            dgelessus last edited by dgelessus

            You can import files into iCloud Drive and then share them from the iCloud Drive app (I think you need to enable it somewhere in the iCloud settings on your device to make it show up as an app). Other than that, "USB Disk" or "Documents 5" are good free file manager apps that allow you to "open in" and "share" files. If the file is in an email, you can also open it in the Mail app and then share it from there.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors