Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
et_21
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
et_21
Commits
5a4189ff
Commit
5a4189ff
authored
Mar 19, 2021
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
bc521dc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
karaoke.js
play/assets/et_21/components/karaoke/scripts/karaoke.js
+4
-4
No files found.
play/assets/et_21/components/karaoke/scripts/karaoke.js
View file @
5a4189ff
...
...
@@ -113,15 +113,15 @@ cc.Class({
this
.
_audioClip
=
audioClip
;
this
.
_audioSource
=
new
cc
.
AudioSource
();
this
.
_audioSource
.
clip
=
this
.
_audioClip
;
this
.
_audioSource
.
audio
.
on
(
'
ended
'
,
()
=>
{
this
.
_audioSource
.
audio
.
on
(
'
ended
'
,
function
()
{
setTimeout
(()
=>
{
console
.
log
(
'
_audioClip ended
'
);
this
.
_audioSource
.
setCurrentTime
(
0
)
},
1000
);
});
this
.
_audioSource
.
audio
.
on
(
'
stop
'
,
()
=>
{
}
,
this
);
this
.
_audioSource
.
audio
.
on
(
'
stop
'
,
function
()
{
console
.
log
(
'
_audioClip stop
'
);
});
}
,
this
);
// this.currentAudioId = audioEngine.play(this._audioClip, false, 0);
// audioEngine.pause(this.currentAudioId);
// audioEngine.setCurrentTime(this.currentAudioId, 0);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment