-
Notifications
You must be signed in to change notification settings - Fork 1
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/#67] bpm별 음악 재생 추가 & 비트 비동기 연결 #69
Conversation
… into feat/#67-music
listOf( | ||
async { playOrResumeSoundPool() }, | ||
async { mediaPlayer.start() } | ||
).awaitAll() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
님 개쩐다
lifecycleScope.launch { | ||
beatStream = 0 | ||
listOf( | ||
async { setSoundPoolAsync() }, | ||
async { setMediaPlayerAsync() } | ||
).awaitAll() | ||
isLoaded = true | ||
setLoadingView(false) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 코드 중복이 좀 많은거 같은디 묶을수 잇나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
놀랍게도 생긴건 비슷하지만 모두 다른 ,,,
|
||
@AndroidEntryPoint | ||
class StretchFragment : BaseFragment<FragmentStretchBinding>(R.layout.fragment_stretch) { | ||
|
||
private val viewModel by activityViewModels<RhythmViewModel>() | ||
private lateinit var soundPool: SoundPool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 fragment 둘다 있는거 같은데 activity에 하나 놔두고 공용으로 써도 될듯?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
음악 재생기를 하나로 합쳤다가는 ,,, 무시무시한 오류들을 맛보게 될 것 같아서 ,,,, 일단 두겠읍니다
@@ -23,7 +23,7 @@ | |||
|
|||
<string name="rhythm_tv_bit">%d비트</string> | |||
<string name="rhythm_tv_bpm">%dbpm</string> | |||
<string name="rhythm_tv_step">%d걸음</string> | |||
<string name="rhythm_tv_step">%03d걸음</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이게 1이면 001로 뜨게 하는거죠?
만약에 1000들어오면 어떻게 됐었죠? 가물가물
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%03d은 최소 3자리라 잘 출력됨니당 ~~
presentation/src/main/java/com/kkkk/presentation/main/rhythm/RhythmFragment.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘하네요~
setDataSource( | ||
File(requireContext().filesDir, viewModel.filename).absolutePath | ||
) | ||
mediaPlayer = MediaPlayer.create(requireContext(), findMusicByBpm(viewModel.bpm)).apply { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
상호쌤 마이그레이션 부탁해요~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exoplayer관련 링크
⛳️ Work Description
📸 Screenshot
KakaoTalk_Video_2024-09-24-02-21-34.mp4