Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Windows 11 startup sound #224

Closed
MalikIdreesHasanKhan opened this issue Nov 28, 2021 · 8 comments
Closed

Windows 11 startup sound #224

MalikIdreesHasanKhan opened this issue Nov 28, 2021 · 8 comments
Labels
duplicate This issue or pull request already exists not-stale Stops the stale action from closing

Comments

@MalikIdreesHasanKhan
Copy link
Contributor

MalikIdreesHasanKhan commented Nov 28, 2021

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I feel like adding a startup sound would make it feel more like Windows 11.

Describe the solution you'd like
. To play the sound upon startup of clone.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
None, other than completely omitting it.
Additional context
Add any other context or screenshots about the feature request here.
https://user-images.githubusercontent.com/77000356/143772930-d4e5142f-35a8-4cbf-85df-92ad77839788.mp4

@win11bot
Copy link
Collaborator

Hey, thank you for creating an issue. We will normally respond within 24 hours.

@win11bot
Copy link
Collaborator

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@win11bot win11bot added the Stale label Dec 29, 2021
@blueedgetechno blueedgetechno added not-stale Stops the stale action from closing and removed Stale labels Dec 29, 2021
@win11bot
Copy link
Collaborator

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@win11bot win11bot added the Stale label Jan 29, 2022
@yashash-pugalia
Copy link
Collaborator

not-stale label not working :|

@blueedgetechno
Copy link
Owner

@andrewstech

@win11bot win11bot removed the Stale label Jan 29, 2022
@andrewstech
Copy link
Collaborator

Fixed it. I had accidentally setup that label on pr only. Should work properly now.

@andrewstech
Copy link
Collaborator

andrewstech commented Feb 20, 2022

Something like this should work

import React, { useState, useEffect } from "react";
`
const useAudio = url => {
const [audio] = useState(new Audio(url));
const [playing, setPlaying] = useState(false);

const toggle = () => setPlaying(!playing);

useEffect(() => {
playing ? audio.play() : audio.pause();
},
[playing]
);

useEffect(() => {
audio.addEventListener('ended', () => setPlaying(false));
return () => {
audio.removeEventListener('ended', () => setPlaying(false));
};
}, []);

return [playing, toggle];
};

const Player = ({ url }) => {
const [playing, toggle] = useAudio(url);

return (


{playing ? "Pause" : "Play"}

);
};

export default Player;`

@andrewstech andrewstech mentioned this issue Mar 4, 2022
4 tasks
@yashash-pugalia
Copy link
Collaborator

Duplicate of #145 ?

@andrewstech andrewstech added the duplicate This issue or pull request already exists label Mar 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists not-stale Stops the stale action from closing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants