lab.naminsik
  • Javascript, jQuery
  • Reactjs
  • React Native
  • iOS
  • Android
  • AWS
  • Server
  • Html, CSS
  • Php
  • asp .net
  • SQL
  • Word Press
search
keywords
  • Javascript, jQuery 2018‧07‧04

    audio context 볼륨 조절하기

    audio context를 createBufferSource 를 이용해서 재생시킬 때 음원의 소리를 조절하고 싶어 gain 을 쓸 때가 있다. var AudioContext = window.AudioContext || window.webkitAudioContext; var context = new AudioContext(); source = context.createBufferSource(); var gainNode = context.createGain(); gainNode.gain.value = 0.5; //0~1 gainNode.connect(context.destination); source.connect(gainNode); gain.value 에 0부터 1까지 소숫점으로 볼륨을 지정해주면 된다.

popular

  • [회고] Github Actions가 갑자기 안된다. (Waiting for a runner to pick up this job…)
  • Photoshop - [폰트 캐쉬 삭제] 삭제한 폰트도 계속 리스트에 존재할 때
  • Gulp - 시작전 준비하기
  • 키보드 키 코드
  • 스니펫용 함수형 컴포넌트 코드
  • 워드프레스 사용자 등록 관리 및 등급
  • 내 컴퓨터에서 DNS 정보 갱신
  • CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server.
  • react native - No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB
  • 개발 앱 실행 시 음악 앱의 재생 중단되는 현상 대응 (AVAudioSessionCategoryAmbient)

comment

  • 감사합니다!
  • 감사합니다~
  • 잘 해결 되셨다니 다행입니다!...
  • 정말 감사합니다. 덕분에 해결했습니다!...
  • 유용한정보 대단히 감사합니다....