bofeng-song
600b9270a9
fix infinite loop cause js error while playing more than maxAudioChannel audios ( #16559 )
...
* fix infinite loop cause js error while playing more than maxAudioChannel audios
2023-12-05 15:37:49 +08:00
bofeng-song
2831c61f0d
Fix webaudio's bug: calling the 'checkEnded' interface after 'destroy' has been called can trigger a JavaScript error ( #16393 )
...
(cherry picked from commit a8e7f18bf7e4bc5decad9b78d1dc169c6068ce86)
2023-10-11 10:06:51 +08:00
bofeng-song
1a9b232221
fix audio can not reset to position 0 after call stop operation on web platform ( #16122 )
...
* fix audio can not reset to position 0 after call stop operation on web platform
2023-08-29 17:50:25 +08:00
bofeng-song
012531ffeb
Fix logic error of audio's currentTime ( #15962 )
2023-08-15 16:59:11 +08:00
bofeng-song
4ca3c88d8d
Fix the issue on some platform, the audio cannot start playing at the exact position after calling stop and then seek ( #15924 )
...
* Fix the issue On the Huawei platform, the audio cannot start playing at the exact position after calling stop and then seek
2023-08-14 10:48:24 +08:00
bofeng-song
6b8009561e
refine: erase unneed audio operation & fix potential bug ( #15884 )
...
* refine: erase unneeded audio operation & fix some potential bug
2023-08-10 17:06:53 +08:00
bofeng-song
22388ba701
The Taobao platform has improved the implementation of innerAudioContext. ( #15839 )
2023-08-01 14:24:27 +08:00
bofeng-song
4a2f290516
Fix audio can not be paused & resume on mini game platform ( #15811 )
...
* Fix audio can not be paused & resume on mini game platform
2023-08-01 11:34:40 +08:00
bofeng-song
d73096a1c5
Fix the problem of noise when playing web audio for more than 5 minutes. ( #15807 )
...
* Fix the problem of noise when playing web audio for more than 5 minutes.
2023-07-31 14:13:03 +08:00
bofeng-song
02716c4a84
Fix the memory leak caused by excessive simultaneous playback of sound effects on the mini game platform ( #15541 )
...
* Fix the memory leak caused by excessive simultaneous playback of sound effects on the mini game platform.
(cherry picked from commit 4616c2482f00ecedf01a714e25449a8682793e3e)
(cherry picked from commit 2ee2a1609bb3927f1cb71a0d70cf0273ab0e37da)
2023-06-27 10:41:12 +08:00
PP
509d73b27d
merge branch v3.8.0-aot ( #15421 )
...
* PR1: add explicit function return type (#15311 )
* PR4: add explicit function return type (#15314 )
* [ci skip][AUTO]: Automated code generating update: 8843bfe54cd3f8e6f84432948716c8d130ecb233 (#15314 ) (#15357 )
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
* add function return type
* fix version checking
* fix return type
---------
Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com >
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2023-06-13 18:08:45 +08:00
dogeFu
09e000266d
feature : add EDITOR_NOT_IN_PREVIEW marco ( #15354 )
...
* feature : add marco for editor preview and refactor code with new marco
* refactor: replace GAME_VIEW with EDITOR_PREVIEW
* Revert "refactor: replace GAME_VIEW with EDITOR_PREVIEW"
This reverts commit e28953e9e7acbb49dc5bdc650b2ff65510d4b084.
* update cc config json
* refactor code
* remove uselese parentheses
* set ccglobal to be false
* skip global variable test case
2023-06-07 17:52:51 +08:00
bofeng-song
08063379f3
support splash for taobao & refine code ( #15136 )
...
* support splash for taobao & refine code
2023-05-23 09:41:16 +08:00
qiuguohua
641a2fe2a4
Release the listener when destroyed. ( #15036 )
2023-05-14 23:08:34 +08:00
PP
3cb698c8aa
add more jsb interface info && fix some types ( #14628 )
...
* add jsb interface info
* mark TODO
workaround
* fix type
* remove some new ts-expect-error
* fix type in strict mode
2023-03-22 15:22:09 +08:00
PP
fa51b804b5
remove and ban @ts-expect-error ( #14572 )
...
* remove ts-expect-error usage in engine
* deprecate Scheduler interface
* remove JavaScriptCore
* set some engineInternal public property as getter setter
* fix build-declaration
* fix releaseManager export name conflict
* update scriptEngineType
* fix and update some comment
* remove w_mat, w_pos, w_rot, w_scale
* update renderer
* fix setRootBufferDirty not binding on native
* optimize floatToHashString
* mark NOTE
2023-03-20 13:48:26 +08:00
santy-wang
0a81bf445e
Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2
2023-03-13 16:51:47 +08:00
qiuguohua
25a3619413
Repair the problem that only one music is played when multiple music is played in the same node ( #14319 )
...
* Repair the problem that only one music is played when multiple music is played in the same node
* Modify comments
* Define callback functions to avoid removing all listeners when offrunning
2023-02-27 13:49:17 +08:00
bofeng-song
882887cb9f
support taobao mini game ( #14324 )
2023-02-22 10:34:17 +08:00
pandamicro
8eb177b53d
Merge remote-tracking branch 'cocos-for-editor/v3.7.0' into develop
...
# Conflicts:
# README.md
# pal/audio/minigame/player-minigame.ts
2022-12-30 19:30:21 +08:00
pandamicro
87fd1dac1f
Merge remote-tracking branch 'cocos-for-editor/v3.6.3' into develop
...
# Conflicts:
# native/cocos/platform/android/java/libs/game-sdk.jar
# native/external-config.json
# pal/audio/minigame/player-minigame.ts
2022-12-30 19:28:39 +08:00
bofeng-song
19ffc349b6
Make audio be independent of core module ( #13948 )
2022-12-29 15:32:08 +08:00
pandamicro
afd22296b4
MIT license update and to new year 2023 ( #13927 )
...
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
minggo
5c90582715
fix merge typo
2022-12-21 17:32:51 +08:00
minggo
bfeca12a09
Merge branch 'v3.6.3' into merge-v3.6.3
2022-12-21 17:26:22 +08:00
PP
d255936cdb
optimize audio adaption on Taobao ( #13835 )
...
* fix: onPlay
* fix: onPause
* don't call stop
* remove HACK
2022-12-16 15:16:42 +08:00
bofeng-song
4939c4d915
Fix audio bugs on the mini-game platform ( #13772 ) ( #13787 )
2022-12-12 10:13:06 +08:00
bofeng-song
3c393ae111
Fix audio bugs on the mini-game platform ( #13772 )
...
(cherry picked from commit 8ee9ad317190134a51d67045d3d36927b16f9523)
2022-12-09 14:41:50 +08:00
minggo
f78617a11d
Merge pull request #13509 from yyycggg/v3.6.3
...
Merge branch 'v3.6.1-taobao' into v3.6.3
2022-11-24 09:46:59 +08:00
timlyeee
6063a4a4c1
[Hack] Jump across the safety policy ( #13517 )
2022-11-23 17:00:24 +08:00
ycg
071ee7edb7
Merge branch 'v3.6.1-taobao' into v3.6.3
2022-11-23 14:10:14 +08:00
timlyeee
2a7648de7f
[Bug fix] Add detections for innerAudioContext. ( #13162 )
...
* [Bug fix] Add detections for innerAudioContext.
1. Pausing an innerAudioContext which is not fully initialized, the currentTime might be null.-https://github.com/cocos/3d-tasks/issues/14080
2. Pause means nothing for a stopped audio
3. InnerAudioContext.destroy behavior is insane that it might not stop the audio immediatly,
* remove log
* get once
2022-11-21 11:29:38 +08:00
ycg
d9b3c18210
Adapter Rendering, Editbox, Label and Audio. ( #13025 )
...
* Adapter System-info on Taobao
* add 'zh_CN' for iPad
* Adapter screen-adapter on Taobao
* Remove useless comments
* Adapter EditBox and Label
* Adapter Audio
* Fix: GL.getUniformLocation returns an incorrect value
* Add @typescript-eslint/no-unsafe-return
2022-10-14 15:55:06 +08:00
timlyeee
f341032746
[Optimize] Cache current time for audio player in minigame. ( #12814 )
...
* Cache current time for minigames
* Save current time as private member
* Make cache time changed in callback
* update cache time to abort middle state for seek
2022-09-22 14:20:52 +08:00
timlyeee
4381b41525
V3.6.1 fix audio stuck ( #12589 )
2022-09-01 11:48:34 +08:00
PP
4999d0c315
ensure running audio context ( #11996 )
2022-07-15 10:03:03 +08:00
PP
613addca36
play web audio after context get running ( #11708 )
...
* play web audio after context get running
update
* update
2022-07-01 14:46:44 +08:00
PP
1fccb90926
support audio PCMData and sampleRate getter ( #11470 )
...
* support audio buffer and sampleRate getter
update comment
update interface
update
update comment
update jsb.d.ts
update
* support getPCMData
update
support on native
support on miningame
update
* update comment
* add example doc
2022-06-29 13:39:05 +08:00
PP
c03e261851
remove audioTimer for minigame platform ( #11351 )
2022-06-20 10:41:50 +08:00
mmyduckx
df1594c8d8
Gameview editor macro ( #11568 )
...
* GameView related EDITOR macro modify
* remove debug code
* fix ci
* fix review
* fix review
2022-06-20 10:05:29 +08:00
PP
14cb8d60ce
optimize audiosource playing ( #11104 )
...
* remove invalid audio operation before setting clip
* skip invalid audio seeking on minigame platform
2022-05-24 10:42:56 +08:00
PP
a124dd313d
release _innerAudioContext after playOneShot ended ( #10763 )
...
* release _innerAudioContext after playOneShot ended
* fix ci
2022-04-14 17:04:20 +08:00
PP
d749bbe1c4
remove legacyPublic tag ( #10702 )
2022-04-08 19:41:20 +08:00
santy-wang
995f5b2d41
Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5-merge
2022-01-24 15:56:49 +08:00
PP
1300cb8ab7
fix audio buffer memory leak on ByteDance and Web platform ( #9933 )
2022-01-06 18:27:26 +08:00
PP
fbde8d1e90
use lagacyPublic to marked deprecated public interface ( #9859 )
...
* use lagacy-public
* publish beta6
* remove jsDoc tag from constructor
* use legacyPublic
* publish beta 7
2021-12-28 11:48:10 +08:00
PP
cc01fad918
support internal interface filter ( #9797 )
...
* support interface filter
* publish build-engine@4.2.20-beta.1
* update
* fix other type of statement
* publish @cocos/build-engine 4.2.20
* update lock
* remove `@internal` from constructor documentation
* change to internal_cc tag
* support target tag in interface-filter
* publish 4.2.21-beta.1
* remove `@private_cc` tag
* remove public internal interface
* remove public internal getter setter
* remove public declare internal property
* update
* remove `__editorExtrasTag__`
* remove public internal interface on `js`
* pulish @cocos/build-engine 4.2.21-beta.2
* change tag to `@deprecated_to_user`
* support `@deprecated_to_user`
* publish 4.2.21-beta.3
* finish change request
* change to marked_as_engine_private
* publish 4.2.21-beta.5
2021-12-22 12:55:45 +08:00
PP
55299dc7fa
start audioSourceBufferNode before running audio context ( #9660 )
...
* start audioSourceBufferNode before running audio context
* remove test
2021-11-15 11:37:29 +08:00
PP
14a34d2c17
reset currentTime when stop native audio ( #9604 )
2021-11-03 16:41:34 +08:00
PP
a5a5ff9d38
fix cached currentTime on native audio ended ( #9509 )
2021-10-22 11:51:22 +08:00