Skip to content

🎥 Make videos programmatically with React

Update use-audio-data.md

Jonny Burger83e8b71c44f0
diff --git a/packages/docs/docs/use-audio-data.md b/packages/docs/docs/use-audio-data.md
index bc581f755f..fe2b57db18 100644
--- a/packages/docs/docs/use-audio-data.md
+++ b/packages/docs/docs/use-audio-data.md
@@ -9,13 +9,13 @@ This function is part of Remotion 2.0 which is not yet released. The information
_Part of the `@remotion/media-utils`_ package of helper functions.
-This convienience function wraps the [`getAudioData()`](get-audio-data) function into a hook and does 3 things:
+This convienience function wraps the [`getAudioData()`](/docs/get-audio-data) function into a hook and does 3 things:
- Keeps the audio data in a state
-- Wraps the function in a [`delayRender()` / `continueRender()`](data-fetching) pattern.
+- Wraps the function in a [`delayRender()` / `continueRender()`](/docs/data-fetching) pattern.
- Handles the case where the component gets unmounted while the fetching is in progress and a React error is thrown.
-Using this function, you can elegantly render a component based on audio properties, for example together with the [`visualizeAudio()`](visalize-audio) function.
+Using this function, you can elegantly render a component based on audio properties, for example together with the [`visualizeAudio()`](/docs/visualize-audio) function.
## Arguments
@@ -25,7 +25,7 @@ A string pointing to an audio asset.
## Return value
-`AudioData | null` - An object containing audio data (see documentation of [`getAudioData()`](get-audio-data)) or `null` if the data has not been loaded.
+`AudioData | null` - An object containing audio data (see documentation of [`getAudioData()`](/docs/get-audio-data)) or `null` if the data has not been loaded.
## Example
@@ -49,6 +49,6 @@ export const MyComponent: React.FC = () => {
## See also
-- [`getAudioData()`](get-audio-data)
-- [`visualizeAudio()`](visualize-audio)
-- [Audio visualization](audio-visualization)
+- [`getAudioData()`](/docs/get-audio-data)
+- [`visualizeAudio()`](/docs/visualize-audio)
+- [Audio visualization](/docs/audio-visualization)