@quenty/sounds 10.13.0 → 10.13.1-canary.607f741.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [10.13.1-canary.607f741.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/sounds@10.13.0...@quenty/sounds@10.13.1-canary.607f741.0) (2025-12-28)
7
+
8
+ **Note:** Version bump only for package @quenty/sounds
9
+
10
+
11
+
12
+
13
+
6
14
  # [10.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/sounds@10.12.0...@quenty/sounds@10.13.0) (2025-09-26)
7
15
 
8
16
  **Note:** Version bump only for package @quenty/sounds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/sounds",
3
- "version": "10.13.0",
3
+ "version": "10.13.1-canary.607f741.0",
4
4
  "description": "Utility functions involving sounds and their state",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,14 +26,14 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/loader": "^10.9.0",
30
- "@quenty/maid": "^3.5.0",
31
- "@quenty/promise": "^10.12.0",
32
- "@quenty/promisemaid": "^5.12.0",
33
- "@quenty/rbxasset": "^5.10.0"
29
+ "@quenty/loader": "10.9.0",
30
+ "@quenty/maid": "3.5.0",
31
+ "@quenty/promise": "10.12.0",
32
+ "@quenty/promisemaid": "5.12.0",
33
+ "@quenty/rbxasset": "5.10.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "0ecdc6807f4ad638ffd49b056bceec4353895b82"
38
+ "gitHead": "607f7418f46b85cd5843f1c5665911eb2dd7e3fb"
39
39
  }
@@ -18,7 +18,7 @@ local SoundPromiseUtils = {}
18
18
  @param sound Sound
19
19
  @return Promise
20
20
  ]=]
21
- function SoundPromiseUtils.promiseLoaded(sound: Sound): Promise.Promise<()>
21
+ function SoundPromiseUtils.promiseLoaded(sound: Sound | VideoFrame): Promise.Promise<()>
22
22
  if sound.IsLoaded then
23
23
  return Promise.resolved()
24
24
  end
@@ -32,7 +32,7 @@ function SoundPromiseUtils.promiseLoaded(sound: Sound): Promise.Promise<()>
32
32
  end
33
33
  end))
34
34
 
35
- maid:GiveTask(sound.Loaded:Connect(function()
35
+ maid:GiveTask((sound :: any).Loaded:Connect(function()
36
36
  if sound.IsLoaded then
37
37
  promise:Resolve()
38
38
  end
@@ -45,12 +45,18 @@ function SoundPromiseUtils.promiseLoaded(sound: Sound): Promise.Promise<()>
45
45
  return promise
46
46
  end
47
47
 
48
- function SoundPromiseUtils.promisePlayed(sound: Sound): Promise.Promise<()>
48
+ --[=[
49
+ Promise that resolves when the sound is done playing
50
+ ]=]
51
+ function SoundPromiseUtils.promisePlayed(sound: Sound | VideoFrame): Promise.Promise<()>
49
52
  return SoundPromiseUtils.promiseLoaded(sound):Then(function()
50
- return PromiseUtils.delayed(sound.TimeLength)
53
+ return PromiseUtils.delayed(sound.TimeLength - sound.TimePosition)
51
54
  end)
52
55
  end
53
56
 
57
+ --[=[
58
+ Promise that resolves when the sound is done looping
59
+ ]=]
54
60
  function SoundPromiseUtils.promiseLooped(sound: Sound): Promise.Promise<()>
55
61
  local promise = Promise.new()
56
62
 
@@ -62,6 +68,7 @@ function SoundPromiseUtils.promiseLooped(sound: Sound): Promise.Promise<()>
62
68
 
63
69
  return promise
64
70
  end
71
+
65
72
  --[=[
66
73
  Promises that all sounds are loaded
67
74
  @param sounds { Sound }