GithubHelp home page GithubHelp logo

Comments (16)

Meydri avatar Meydri commented on June 18, 2024 1

Try this:
...
The zip you sent me works on my laptop (the one that's struggling right now). Sound settings look clear. But I guess I'll continue using the zip you sent me hahah. Might be some weird bug, it's quite the conundrum. Either way, things have worked out. :) Thanks so much, again hahah.

from harlowe-audio.

ChapelR avatar ChapelR commented on June 18, 2024

Defining a track in a separate passage isn't enough, you must define the track:

  1. in a startup-tagged passage,
  2. in the hal.tracks special passage, or
  3. in your story JavaScript section or equivalent, after the code for HAL.

Are you certain you defined the track in one of those three ways?

from harlowe-audio.

Meydri avatar Meydri commented on June 18, 2024

Defining a track in a separate passage isn't enough, you must define the track:

  1. in a startup-tagged passage,
  2. in the hal.tracks special passage, or
  3. in your story JavaScript section or equivalent, after the code for HAL.

Are you certain you defined the track in one of those three ways?

Yes, I defined it in a hal.tracks special passage!

from harlowe-audio.

ChapelR avatar ChapelR commented on June 18, 2024

Can you send me the file?

from harlowe-audio.

Meydri avatar Meydri commented on June 18, 2024

Can you send me the file?

Of course! I'll send a zip which includes the audio folder. The text itself inside the passages are in Swedish eheh, but the code I've referenced from HAL is all in English so hopefully it'll be understandable.

from harlowe-audio.

ChapelR avatar ChapelR commented on June 18, 2024

Can you tell me how to recreate the issue? Which links to click in which order?

from harlowe-audio.

ChapelR avatar ChapelR commented on June 18, 2024

The story JavaScript of the file you sent is empty. There don't appear to be any HAL macros or a hal.tracks passage

from harlowe-audio.

Meydri avatar Meydri commented on June 18, 2024

Can you tell me how to recreate the issue? Which links to click in which order?

For me, it popped up as an issue as soon as I came to a passage where I had the code implemented. The first link to click is "Knacka." It could be that it didn't update from the old file. I'll send you a new one. Sorry for the trouble. It should have a hal.tracks passage if it's correct.

from harlowe-audio.

ChapelR avatar ChapelR commented on June 18, 2024

The issue is capitalization.

In hal.tracks:

obstacles: ./audio/Obstacles.mp3

In passage:

{
(track: 'Obstacles', 'loop', true)
(track: 'Obstacles', 'playwhenpossible')
}

In passage should be:

{
(track: 'obstacles', 'loop', true)
(track: 'obstacles', 'playwhenpossible')
}

I should probably make a more directed error message for those kinds of issues.

Suggestion: I would recommend using all lowercase letters in your file names, e.g. ./audio/obstacles.mp3 instead of ./audio/Obstacles.mp3, since some computer systems treat lowercase and uppercase letters as different and some don't.

NOTE: I removed the files from your comments so other people can't download them.

from harlowe-audio.

Meydri avatar Meydri commented on June 18, 2024

The issue is capitalization.

In hal.tracks:

obstacles: ./audio/Obstacles.mp3

In passage:

{
(track: 'Obstacles', 'loop', true)
(track: 'Obstacles', 'playwhenpossible')
}

In passage should be:

{
(track: 'obstacles', 'loop', true)
(track: 'obstacles', 'playwhenpossible')
}

I should probably make a more directed error message for those kinds of issues.

Suggestion: I would recommend using all lowercase letters in your file names, e.g. ./audio/obstacles.mp3 instead of ./audio/Obstacles.mp3, since some computer systems treat lowercase and uppercase letters as different and some don't.

NOTE: I removed the files from your comments so other people can't download them.

Aah, I see! You're right in that I probably should stick to stricter naming conventions, I'll keep that in mind in the future. The code works fine now in that I no longer receive any error messages, but no sound will actually play despite it being unmuted... (insert various befuddled facial expressions here). Might be something dumb that I'm just not noticing, though.

Thank you so much for your help, I truly appreciate it, and I'm sorry for all the trouble.

from harlowe-audio.

ChapelR avatar ChapelR commented on June 18, 2024

It plays for me. What browser are you using? Make sure audio is allowed in the settings.

Press F12 to check the JavaScript console and see if anything is there.

from harlowe-audio.

Meydri avatar Meydri commented on June 18, 2024

It plays for me. What browser are you using? Make sure audio is allowed in the settings.

Hmm.. Apparently the file wasn't found, according to the JavaScript console. Oh, and I'm using Google Chrome.

from harlowe-audio.

ChapelR avatar ChapelR commented on June 18, 2024

The file you sent me is sound and plays.

from harlowe-audio.

ChapelR avatar ChapelR commented on June 18, 2024

Try this:
...

from harlowe-audio.

Meydri avatar Meydri commented on June 18, 2024

It plays for me. What browser are you using? Make sure audio is allowed in the settings.

Press F12 to check the JavaScript console and see if anything is there.

Aight, I tried zipping it and opening it on another computer and it works just fine on that computer lol. So weird. But I guess that's fine. Thank you for your support.

from harlowe-audio.

ChapelR avatar ChapelR commented on June 18, 2024

Strange. Well try going to chrome://settings/content and checking the sound setting. If that doesn't do it, I'm not sure what will, sorry.

from harlowe-audio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.