santy-wang
91c884362d
Merge branch 'v3.6.2' of github.com:cocos-creator/engine into v3.6.1-sync
2022-10-11 20:12:14 +08:00
timlyeee
8b4789d7af
[Bug fix] remove the player of the audio source when its clip is set to null ( #12865 )
...
* remove player when the audio source's clip is set to null
2022-09-26 11:20:22 +08:00
minggo
0d7c5c8f56
move cocos/core/scene-graph to cocos/scene-graph ( #12868 )
...
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
- component.ts
- component-event-handler.ts
- component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`:
- missing-script.ts
- model-renderer.ts
- renderer.ts
- camera-component.ts
* move `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
minggo
2f10f48c15
adjust some folders ( #12712 )
...
move cocos/core/asset-manager to cocos/asset/asset-manager
move cocos/core/assets to cocos/asset/assets
merge cocos/core/builtin to cocos/asset/asset-manager
2022-09-07 18:45:54 +08:00
timlyeee
cf7200c2fd
[v3.6.1] Fix audio source memory leak ( #12592 )
2022-08-30 11:08:21 +08:00
timlyeee
fed9a37fcb
Audio source will emit only if it attaches to a node ( #11975 )
...
* Audio source will emit only if it attaches to a node
2022-07-14 15:48:45 +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
pandamicro
8864f2f4c7
Merge remote-tracking branch 'cocos-for-editor/v3.5.2' into merge3.5
...
# Conflicts:
# cocos/core/components/renderer.ts
# cocos/core/global-exports.ts
# cocos/core/renderer/core/render-scene.ts
# cocos/core/renderer/core/render-window.ts
# cocos/core/renderer/scene/index.ts
# cocos/core/root.ts
# cocos/core/scene-graph/scene-globals.ts
# package.json
2022-06-09 15:20:30 +08:00
pandamicro
ec58a77ff0
Fix more API docs in core ( #11338 )
...
* Fix more API docs in core
* Update version
* tweaks
2022-06-02 21:03:17 +08:00
minggo
2de0ae1f72
Merge pull request #11192 from minggo/v3.6.0_merge_v3.5.1
...
V3.6.0 merge v3.5.1
2022-05-24 16:42:57 +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
pandamicro
dba83c270d
Fix multi blank lines ( #11116 )
2022-05-17 11:56:06 +08:00
Santy-Wang
23de9188ba
V3.5 docs ( #10898 )
...
* adjust api docs and delete useless annotation
* delete useless annotation
2022-04-27 15:22:22 +08:00
PP
b39a3066d9
fix audioSource get duration ( #10817 )
2022-04-21 13:20:01 +08:00
pandamicro
dae6ac508c
Fix some API doc issues ( #10788 )
...
* Fix some API doc issues
* Add some new zh doc
* remove geometry deprecation since 3.0
* Fix ci
2022-04-20 21:02:58 +08:00
Santy-Wang
e82cec17ac
update docs ( #10796 )
...
* update docs
* update docs more
* refine
* refine
2022-04-20 18:47:53 +08:00
PP
d749bbe1c4
remove legacyPublic tag ( #10702 )
2022-04-08 19:41:20 +08:00
PP
f44981764c
remove playing audio when player is destroyed ( #10670 )
2022-04-06 19:03:19 +08:00
Santy-Wang
a963881d4e
add category config file for docs ( #10589 )
...
* add category config file for docs
* add input module
* adjust name
2022-03-30 18:32:37 +08:00
Santy-Wang
ab82e1b42d
remove hidden ( #10414 )
...
* remove hidden
* fix typo
* fix unit-test
* turn on auto fix
2022-03-22 15:11:16 +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
pandamicro
bd3c30fd4c
BufferAccessor refactor for Batcher2D ( #9802 )
...
* VB cache add(only simple)
* sliced add
* after rebase
* Extract BufferAccessor from MeshBuffer
* Refactor for linear buffer accessor
* Support simple sprite
* Fix initialization issues
* Fix simple sprite rendering
* Rough adaptation
* tweaks
* Fix LinearBufferAccessor's appendBuffers
* Cleanup mesh buffer codes
* Reorganize ia allocation
* Middleware adaptation & Particle 2d adaptation (#31 )
* Middleware adaptation
* particle-2d adaptation
* Initial implementation of static vb accessor
* Complete static vb accessor
* Improve static vb accessor
* Ensure MeshBuffer.byteOffset
* Fix record batch process in static vb accessor
* Fix vb reset
* simple & simple label add (#32 )
* Meshbuffer static length (#33 )
* set ib only first time
* Meshbuffer static length
* Some name refactor
* remove RenderData.vData
* Improve buffer update logics
* Use appendIndices in fillBuffers
* The quickest version(simple & label can render) (#34 )
* Revert "Use appendIndices in fillBuffers"
This reverts commit 0600e26f7eee277c820c3097b1f48f79fcf60890.
* the quickest version
* pass renderScene
* batch
* change batcher update
Co-authored-by: pandamicro <lphuabin@gmail.com >
* Move ia record logic from accessor to batcher
* Make vertexFormat sourced from render data
* sliced & bar-filled (#35 )
* radial-filled & tiled & label (#36 )
* radial-filled & tiled
* bmfont & char label
* function change
* name change
* Remove uvDirty
fixes
Fix uv update for sprite
* Reduce mesh buffer setDirty
* uv fix
* Format label
* Refactor color and cascade opacity mechanism
* Fix empty render data or chunk absent issue
* fix some uv (#37 )
* Fix non stop allocation issue in static vb accessor
* fix bmfont richText & remove uiComponent (#38 )
* fix bmfont uv
* fix richText & remove ui Component
* Fix mesh render data batching
* Small fix
* Update for spine
* Formatting jsb spine and editor
* middle ware & particle 2d (#39 )
* motion-streak
* dragon Bones add
* tiled map unsafe change
* particle-2d add
* function name change
* some function change (#40 )
* Fix RenderData pool usage
* Fix merge issue
* fix misc bug (#41 )
* Native adaptation for spine and dragonbones with MeshRenderData
* misc fix (#42 )
* Improvements
* Fix ci and improvements
Co-authored-by: ChiaNing <sun.cloud.mo@gmail.com >
2022-01-07 15:43:04 +08:00
santy-wang
7ffe1bc031
Merge branch 'v3.4.1' of https://gitlab.cocos.net/publics/engine into v3.5.0
2022-01-06 14:41:28 +08:00
PP
a0f89df96c
fix audio bugs ( #9889 )
...
* fix setting audioSource.clip as null
https://github.com/cocos-creator/engine/pull/9782
* destroy audio player
* use null instead of undefined
Co-authored-by: dream93 <dream_chou93@163.com >
2021-12-30 19:12:07 +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
73f45e78b9
fix dead loop on audio source onDisable phase ( #9087 )
...
* fix dead loop on audio source onDisable phase
* update
2021-07-29 14:58:41 +08:00
PP
ccb50e340c
fix Audio bug on v3.3 ( #8960 )
...
* support AudioTimer in pal
update
* optimize InnerAudioContext destroy on MiniGame platform
* fix audio source on persist node paused when change scene
* compatible with audio.duration on WeChat platform
stash destroy
* fix audio can’t resume on WeChat when enter foreground
* fix audio can't pause on Android platform when enter background
* fix ci
* update null
2021-07-18 17:31:45 +08:00
santy-wang
4c92a4ba5e
Merge branch 'v3.1.2' of https://gitlab.cocos.net/publics/engine into v3.3-validate
2021-07-12 17:42:21 +08:00
Santy-Wang
9d23637f06
delete useless code ( #8601 )
...
* delete useless code
* refine format and fix typo
2021-07-09 14:38:04 +08:00
PP
fe213e7881
remove note on audioClip ( #8950 )
2021-07-09 11:21:07 +08:00
PP
6111b5792e
[CHERRY-PICK] compability with AudioClip method since deprecated on v3.1.0 ( #8905 ) ( #8908 )
...
* compability with AudioClip method since deprecated on v3.1.0 (#8905 )
* add default value for audioClip.playOneShot
* destroy player when audioClip destroy
update
2021-06-29 16:13:59 +08:00
PP
960dc20334
compability with AudioClip method since deprecated on v3.1.0 ( #8905 )
2021-06-29 10:33:13 +08:00
PP
da2130e694
support AudioSource.EventType ( #8758 )
2021-06-04 11:39:18 +08:00
PP
83176d4330
optimize deprecation ( #8602 )
...
* optimize audio deprecated
* optimize sys deprecated
* optimize MouseEvent TouchEvent deprecated
* update
* use `SystemEvent.EventType`
2021-04-30 00:15:45 +08:00
PP
b3977bd507
fix audio duration on native ( #8539 )
2021-04-23 22:25:05 +08:00
PP
cd1548d3f6
fix Audio bug ( #8515 )
...
* support AudioPlayer.loadOneShotAudio
* support native
* support minigame
* support createInnerAudioContextPolyfill
update
* fix audioLoading on runtime
* fix Safari doesn't support promise based decodeAudioData
* optimize interface design
* add onPlay polyfill for vivo
* fix setting AudioSource.clip concurrently
* add createInnerAudioContextPolyfill for Xiaomi
* add createInnerAudioContextPolyfill on Baidu
* fix web audio player currentTime
2021-04-23 18:07:58 +08:00
Santy-Wang
2b3ab66a47
add asset place holder and remove deferred loading ( #8473 )
...
* remove deferred loading and add place holder
* resolve circle referenced
* support most of asset
* refine
* fix bugs
* refine
* should use getClassId
* change name
* change name
* change isPlaceHolder to isDefault
2021-04-19 19:48:27 +08:00
PP
831722c121
optimize pal ( #8405 )
...
* rename mg
* optimize audioMgr
* remove implement class
update
* add src property for AudioPlayer
* fix multiple audioSource reference the same audioClip
* support operation-queue
update
* fix operation deadlock
* update
* fix esLint
update
update
* remove ensureStop
remove stop in play
* fix audio-dom loading
* optimize operation queue in AudioSource component
* HACK on runtime
* fix esLint
* update esLint
* HACK on WeChat DevTools
* lowercase enqueueOperationDecorator
* remve ! with @ts-expect-error
* Revert "HACK on WeChat DevTools"
This reverts commit 230a2ec9223f21fc34e8435b962c0b41c18d4e91.
* fix esLint
* rename clip.ts to audio-clip.ts
* add audio meta
* use fastRemoveAt
* change ClassDecorator to MethodDecorator
* remove player reference in audio-clip
* destroy temporary AudioPlayer after loading
* optimize syncPlayer
* fix esLint
* fix esLint
* optimize audio-manager
* optimize operation-queue
update
* fix eslint
2021-04-09 15:21:11 +08:00
PP
cd7e644694
implement audio on pal ( #8255 )
...
* Update logo in README
* add pal/audio
* deprecate property
* support wechat game AudioPlayer
* unify minigame interface
* optimize module name
* support native audio
# Conflicts:
# @types/jsb.d.ts
* add runtime platform
* fix module
* support build native virtual module
update
update
* update module name
* remove jsb-audio.js
* revert @rollup/plugin-alias
* add quickCompiler field in cc.config.json
* fix audio can't stop when paused
* fix esLint & ci
* fix ci
update
* update ccConfigJson
* add NOTE
* readonly maxAudioChannel
* add description for interface OneShotAudio
* volume range
* range for seeking
* loadNative return Promise<unknown>
* remove quickCompile field in cc.config.json
Co-authored-by: pandamicro <lphuabin@gmail.com >
Co-authored-by: Jare Guo <jareguo@users.noreply.github.com >
2021-03-25 14:30:13 +08:00
PP
df628b6fa4
optimize audioManager ( #8372 )
2021-03-17 18:46:05 +08:00
PP
4b6f20dccf
optimize audio source playOnAwake ( #8369 )
...
* optimize audio source playOnAwake
* fix esLint
2021-03-17 11:29:21 +08:00
ChiaNing
90d94fead6
api module change ( #8272 )
...
(cherry picked from commit 314ede133cd6b1873b6f71876f16947733de2c46)
2021-02-25 17:31:08 +08:00
JoneLau
6493f22faf
add component menu categories ( #8206 )
2021-01-25 19:39:43 +08:00
PP
524837c37a
fix audio can't playOneShot on iOS browser ( #8117 )
...
* fix audio can't playOneShot on iOS browser
* fix ESLint
* fix ESLint
* fix ESLint
* fix ESLint
2021-01-11 15:22:48 +08:00
Leslie Leigh (李的序)
9bd9baac12
Eslint autofix all ( #8108 )
...
* Eslint autofix all
* Manual fix
2021-01-09 11:41:10 +08:00
PP
1277f254d9
play audio on awake at the onEnable phase ( #8045 )
...
* play audio on awake at the onEnable phase
* fix code quality
* fix ci
2020-12-29 19:30:44 +08:00
Santy-Wang
ad4bff3988
Restructure Module ( #7968 )
...
* module restructure
* refine
* restructure module
* merge
* revert
* fix ci
* update import path of unit-test
* split 2d and ui
* add more module
* change audio adapter
* rename primitive
* config wechat plugin
* merge
* add category config
* merge
* merge
2020-12-24 19:07:26 +08:00
PP
0a836ac458
optimize sys info init && move in runtime adapters ( #7920 )
...
* optimize sys info init in adapters
update
* update sys init
update sys
* fix sys access
* optimize isWebIOS14OrIPadOS14Env
* update
* update
* update QTT adapter
* update sys.capacities
update sys
* update common && qtt
* add downloadFile to job module
* update engine-adapter
* update DeviceMotionEvent adaption
* remove legacy qtt
* add link-sure adaption
* fix some bug
* update vivo adaption && fs-utils
* remove legacy link-sure
* remove dom-adapter
* remove HTMLCanvas appended to document
* update vivo
* support COCOS_PLAY
* update adapters to platforms
* remove test code
* add OPPO adapter
* add huawei adapter
* remove test code
* rename folder oppo-mini-game
* rename folder huawei-quick-game
* rename folder vivo-mini-game
2020-12-15 11:54:13 +08:00