Among Us - Green Crewmate
본문 바로가기 메뉴 바로가기

DandyU's Log

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

DandyU's Log

검색하기 폼
  • 분류 전체보기 (31)
    • TIL (30)
      • Spring (4)
      • Elasticsearch (1)
      • Database (2)
      • Media (2)
      • C++ (2)
      • Android (1)
      • FFmpeg (1)
      • Java (5)
      • JPA (3)
      • JavaScript (1)
      • WAS (2)
      • Server (2)
      • Git (0)
      • BlaBlaBla (4)
    • 주절주절 (1)
  • 방명록

Audio (1)
[SDL] 오디오 볼륨 조절하기

SDL에서 오디오 볼륨 조절하기 아래의 SDL_MixAudioFormat() function을 사용하면 된다. 좀더 자세한 내용은 SDL Wiki를 참고한다. void SDL_MixAudioFormat(Uint8* dst, const Uint8* src, SDL_AudioFormat format, Uint32 len, int volume) 아래는 예제 코드라고 하기에는 좀 그렇고 SDL_MixAudioFormat () function을 사용한 코드다. #include "SDL_audio.h" // SDL_MIX_MAXVOLUME is 128. int audioVolume = (SDL_MIX_MAXVOLUME / (float) 100) * ; // SDL_MixAudioFormat() controls th..

TIL/Media 2015. 1. 14. 09:32
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • DB
  • programmer
  • C/C++
  • Virtual Thread
  • Rolling-Restart
  • oid
  • development
  • Spring
  • ffmpeg
  • CentOS
  • Java
  • HDFS
  • jdk7
  • libavformat
  • elasticsearch
  • fluentd
  • AVIOContext
  • Programming
  • springjpa
  • springboot
  • springframework
  • JAXB
  • popupWindow
  • HTTP Live Streaming
  • onbeforeunload
  • jdk6
  • JDK21
  • JPA
  • HLS
  • DATABASE
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바