Comments (16)
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.
Defining a track in a separate passage isn't enough, you must define the track:
- in a
startup
-tagged passage, - in the
hal.tracks
special passage, or - 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.
Defining a track in a separate passage isn't enough, you must define the track:
- in a
startup
-tagged passage,- in the
hal.tracks
special passage, or- 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.
Can you send me the file?
from harlowe-audio.
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.
Can you tell me how to recreate the issue? Which links to click in which order?
from harlowe-audio.
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.
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.
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.
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.
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.
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.
The file you sent me is sound and plays.
from harlowe-audio.
Try this:
...
from harlowe-audio.
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.
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)
- Harlowe 3 refreshes and loads. HOT 3
- README confusion HOT 1
- iOS and other mobile browsers.
- Explore issues with blur and focus.
- Improve performance.
- Fix demo links in docs website.
- Problem with story's first script HOT 2
- Re: Reddit Post - New HAL Issue with audio playback HOT 2
- Fix for Harlowe 3.2 HOT 1
- Synchronous looping HOT 4
- JavaScript Code Error when placed into Twine. HOT 2
- Multiple music/sounds in a single passage HOT 3
- Adding a track macro issue HOT 2
- (group: 'name', 'play') plays all tracks defined in the story instead of only the tracks in the group HOT 2
- Javascript Code Error HOT 1
- Audio not playing on Safari HOT 1
- Make empty tracks errors more informative. [Original: TypeError When I Open The Game] HOT 4
- Having an issue with the (live:) macro
- Having issue with (track:) macro HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harlowe-audio.