Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: audio recording #381

Closed
wants to merge 88 commits into from
Closed

feat: audio recording #381

wants to merge 88 commits into from

Conversation

CDFN
Copy link
Collaborator

@CDFN CDFN commented May 24, 2024

This PR adds most of recording feature which is subject of #360 and #361.

Base automatically changed from feat/microfone-permission to main May 28, 2024 06:41
src/frontend/Navigation/Stack/AudioStack.tsx Outdated Show resolved Hide resolved
public/fonts.css Outdated Show resolved Hide resolved
src/frontend/hooks/useAudioPlayback.ts Show resolved Hide resolved
src/frontend/hooks/useAudioPlayback.ts Show resolved Hide resolved
src/frontend/screens/Audio/AudioPrepareRecordingScreen.tsx Outdated Show resolved Hide resolved
src/frontend/screens/Audio/AudioPrepareRecordingScreen.tsx Outdated Show resolved Hide resolved
src/frontend/screens/Audio/AudioRecordingScreen.tsx Outdated Show resolved Hide resolved
src/frontend/screens/Audio/AudioRecordingScreen.tsx Outdated Show resolved Hide resolved
@CDFN CDFN force-pushed the feat/audio-recording-screen branch from 9e2859f to 525bc74 Compare May 29, 2024 12:51
elapsedTime: SharedValue<number>;
}

export function convertMsToTime(ms: number) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like how it looks but for context: Bohdan had issues with passing functions from react-intl into reanimated UI thread, hence this method.

Comment on lines +108 to +109
createdAt: 0,
duration: 0,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're unable to save metadata with audio recording, hence mock values for now. Possibly related to #378

Copy link
Collaborator Author

@CDFN CDFN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

notes for self & some context for other reviewers

@CDFN CDFN marked this pull request as ready for review May 29, 2024 14:16
@CDFN CDFN requested review from EvanHahn and ErikSin May 29, 2024 14:16
@EvanHahn EvanHahn removed their request for review May 29, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio enhancement New feature or request swmansion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants