Play sound in with Puzzles

Home Forums Puzzles Play sound in with Puzzles

This topic contains 13 replies, has 4 voices, and was last updated by Yuri Kovelenov Yuri Kovelenov 4 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #2117
    bkumanchik
    bkumanchik
    Customer

    Is it possible to play sounds with Puzzles?

    #2119

    Sound puzzle was requested before so I’m adding it to our nearest TODO. Will start working on this on Monday.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #2120
    bkumanchik
    bkumanchik
    Customer

    Thanks Yuri :good:

    #2139

    Emailed the link with the developer preview build for you to check it out. :)

    Attachments:
    You must be logged in to view attached files.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #2143

    xfish3
    Participant

    I, too, like a beginner, still have questions.
    Yuri, could you make a lesson with an example of creating a simple application on Verge3D? At least for example with one cube, which begins to rotate immediately after loading and one monkey, starting to rotate after clicking on it.
    It is very desirable that the lesson be a video. To make it clearer, where to begin the development process.

    #2145

    xfish3
    Participant

    Sorry, wrote in the wrong section :)
    I asked the same question in the branch https://www.soft8soft.com/topic/animations-from-gltf-file/#post-2144

    #2337
    bkumanchik
    bkumanchik
    Customer

    Is there a minimum length for sound in a mobile browser, I have a tick.mp3 sound (a very short tick-like sound) and it plays fine on desktop browsers but the only way I can get it to play on a mobile browser is to first play it in some other way then it will play inside of some puzzle code.

    #2338

    Such a short sound is probably “played off” before it is loaded. Saving it in a variable in the beginning of your puzzles may help (similar to the example in the release article)

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #2340
    bkumanchik
    bkumanchik
    Customer

    I tried that (saving it in a variable) didn’t work. weird thing is once it’s played it works from then on.

    Brian

    P.S. I’m going to buy a personal copy of Verge3D for myself today!

    #2349

    Brian, thank you for becoming our customer. I’m posting here the same solution that I sent you via email.

    The problem with sound on mobiles lies in security policy now enforced in all mobile browsers. The sound playback on mobiles is only allowed via explicit user action (touch).

    To work around this common problem, you can play all your sounds upon user action at first. After that they will become available for playing inside time events. See the attached example.

    Attachments:
    You must be logged in to view attached files.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #3480

    cloggy
    Participant

    In what folder should I place my sound files so that Puzzles can find them. I have tried putting them in the media folder of my project, but every time I click the object my sound is assigned to I hear nothing. in your examples the sound is called .\mySound.mp3 or .\breath.mp3. I even tried to spell out the entire path as:
    C:\Users\Me\verge3d\applications\my_awesome_app\media\Wilhelm.ogg, but still I get no sound. Please advise, thanks.

    #3483

    Hi,

    We recommend placing sounds somewhere inside your app folder. If you place sounds in the media folder make sure the path contains it, e.g.
    ./media/mysound.mp3

    Also, not all browsers support the OGG format. You might want to convert your sound to the more widely supported MP3 format.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #3503

    cloggy
    Participant

    Thanks Yuri. Verge3D is great!

    • This reply was modified 4 months ago by  cloggy.
    #3509

    Sure. Thank you too. :)

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.