notes
1: You should ideally create a 2nd question / thread when changing the topic of discussion.
2: You need to use the Preformatted Text </>
option in the comment field’s Toolbar when you include source code examples in a comment, it stops the forum’s software from altering that code in a way that makes it unusable.
I believe your 1st code example was meant to look like so…
(track: "file:///C:/Users/Desktop/Test/audio/", "play")
{
(link-repeat: "Start shooting!")[
(track: "submachine gun", "play")
]
}
…and your 2nd example like so…
(track: "file:///C:/Users/Desktop/Test/audio/", "play")
{
(mouseover-replace: "Mina")[
(track: "mina", "play", 1)
(live: 1s)[
(go-to: "TRAck PLAY")
]
]
}
3: When including non-standard macros in code example it helps if you either:
- Supply the source code for them if they are your own.
- Supply a link to where you sourced them from if not your own.
Based on the fact you are using a (track:)
macro call in your example I will assume you are using Chapel’s Harlowe Audio Library. I will also assume that you have correctly used a hal.tracks
Special Passage to pre-define the “tracks” you will be using in your project.
There are a couple of issues the Audio related code in your examples:
1: You are using an Absolute URL as the 1st argument in the first (track:)
macro call of both of your code examples, when that argument should be the Name (identifier) of a “track” that you pre-defined in your project’s hal.tracks Special Passage.
(track: "file:///C:/Users/Desktop/Test/audio/", "play")
2: You are passing the Number 1 as the 3rd argument to the second (track:) macro call in your second code example…
(track: "mina", "play", 1)
but the “play” command doesn’t support additional arguments.
play: Plays the indicated track, if possible.
Arguments: none.
Returns: nothing.
I must admit I’m a little confused by the fact that you are adding mouse-over based interactions to a project that is being designed for Blind people, who will likely be using an Accessibility device / Reader software to interact with the project and not a Mouse.