John Cutter's Forum Posts

  • This is related to a question I just asked in the "How do I..." forum.

    My project needs to use mobile Bluetooth and as that is not supported by Safari I am having to use a browser called "Bluefy" (which is available for Android and iOS.)

    My website/program was loading until I added a .webm sound call. Now I'm just getting a black screen. (It works on Safari - except the Bluetooth part, of course.)

    I thought maybe I could use a different format, but Construct seems to automatically convert all audio files to .webm Opus.

  • I've written a short program that plays audio from a URL:

    - Add remote URL "https://example.com/test/test.webm" (type "audio/webm; codecs=opus") as name "voice"

    - Play "voice" not looping from Sounds at 0 dB (tag "voice")

    I've exported this code to my website and it runs just fine on my PC. Unfortunately, I need it to work on my iPhone, too. But when I push the PLAY button nothing happens.

    Any ideas?

    UPDATE: I just saw this bug: "Audio remote url doesn't work in iOS #4721". Ashley says the workaround was to make sure to include .webm files in the program. All of my audio files are .webm, so I know that's not the problem.

  • Thanks for all the replies!

    I should have been a little more specific about what I need to do. I have written a little tool that does two things:

    1) It records audio from my microphone

    2) It starts a timer, so when I press keys on the keypad I can save the timestamps, and the key values, in a JSON file.

    I have another program that starts a timer and PLAYS the audio files. Then I can look at the JSON timestamps to "sync" the audio file with my program. I have this working already, but the audio files are Mono, and Stereo would be much better.

    Is it possible to launch Audacity from Construct 3? I wonder if the timing would be a little inconsistent, though.

  • I want to record binaural audio so I bought a special microphone. Unfortunately, the audio recorder built into Construct appears to only be mono!

    Is there any way to record stereo audio?

    UPDATE: I should have been more specific in my initial question. I am looking for a way to record stereo audio using Construct 3. (Even if I have to use the Javascript feature.) It's part of a more extensive program.

  • I have created a Bluetooth-enabled device and I'm controlling it with a Construct 3 program. I'm planning to sell my device on Shopify and it would be great if I could embed my program on the product page.

    I can apparently embed a program using the Scirra Arcade, but is there any way to "hide" it? It's not a game, it's just a way to connect to and control the Bluetooth device.

    Is there another way to embed a C3 program?

  • I have a niche business idea that I think could do fairly well. It would involve me bundling an audio file with a data file, and selling these as "programs".

    I'd like to make a really nice-looking Shopify site and sell my programs there, and then have a button or link on Shopify that takes customers to my C3 Player program... which would be on a different website. That's not ideal, but I think it should work. Anyone see issues with that approach?

    Alternatively, I could create a website that includes my player program. But then I would need a shopping cart of some kind to handle the sales part. Five years ago someone mentioned using Snipcart... Has anyone tried that recently?

  • Okay, fixed my problem.

    I was using a tag when I downloaded the sound, but not when I *played* the sound. Once I set and used that second tag it worked great!

    Thanks, Jase00!

  • The project I'm working on uses external audio url, and I use "audio.playbacktime" very often for syncing objects to the music, which works well! I haven't had the same bug that you have described. Hmm..

    That would be awesome if it worked!! Thanks for the reply! Hmm. I must have been doing something wrong. Here's what I did:

    FIRST TEST

    1. I played a .webm file, stored on my website. I could hear the file playing.

    2. Every tick: Set text file to "Audio.PlaybackTime(tag)". (The text field just stays blank.)

    SECOND TEST

    1. I saved the .webm file to my project and ran it like a normal sound effect.

    2. Every tick: Set text file to "Audio.PlaybackTime(tag)". (As soon as I start the sound I see numbers climbing in the text field.)

    Let me try it again.

  • Because the audio object offers you Audio.CurrentTime or Audio.PlaybackTime(Tag) which you can compare against your timestamps.

    I'm not sure if it's a bug, but apparently "Audio.PlaybackTime(Tag)" doesn't work when you load a sound externally. (Using "Add remote URL".)

    Maybe I can simply use timers.

  • My application requires a vocal recorder. I looked at some of the code but didn't have a microphone to test it. I wound up buying a microphone that has really good stereo (it's almost binaural). Unfortunately, the audio recorder built into Construct is only mono!

    Does anyone know if this is a limitation of Construct? Or is it an HTML5/browser limitation?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Haha. No, I'm not making a story book app. :-) I just came up with that as an example since it seemed easier to explain.

    I'm actually trying to control a TENS machine using Bluetooth, and I want to sync signals from the machine with a long audio file that is playing.

    Thanks for the reply anyway! I appreciate it!

  • Thanks, WackyToaster! I don't often get replies to my questions here so I appreciate the response. :-)

    I'm saving the timestamps in a dictionary object and then comparing them against the current time every tick. (That's the idea anyway, haven't tried it yet.)

    I hadn't found the Audio.CurrentTime or Audio.PlaybackTime(Tag) properties yet, but those sound like they should work much better. Thanks!!

  • One thing that I have considered is adding high pitched sounds at certain points in my audio recording. Maybe sounds that are too high for human hearing?

    Would I be able to detect those high pitched "pings" using the audio analyzer?

  • WHAT I'M TRYING TO DO:

    I want to record my voice, and while I'm recording, press number keys on my keyboard at specific times.

    Then I want to play back the audio recording, and have code trigger at the specified times.

    For example, I might record a story that includes me saying: "Then Sally turned the corner and she saw a large bear! It raised up!" At the appropriate time I would press "1" on the keyboard. (This uses Date.now to tell me that "1" was pressed at 6.364 seconds.)

    When someone PLAYS my "story" I will play/stream my audio file and start checking the timestamps. At 6.364 seconds that first timestamp would trigger, and the "1" would tell me to play an animation where the bear raises up.

    CONCERNS

    Some of my stories could last 15 or more minutes and I'm concerned that there could be lag or other issues that make the audio get out of sync with the timestamps.

    Is there a better approach that I should be using?

  • You do not have permission to view this post