C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[49173] SDK 에 나온 내용 입니다.
아제나 [azena] 1075 읽음    2007-05-06 22:45
BOOL PlaySound(
  LPCSTR pszSound, 
  HMODULE hmod,    
  DWORD fdwSound   
);

Parameters
pszSound
A string that specifies the sound to play. If this parameter is NULL, any currently playing waveform sound is stopped. To stop a non-waveform sound, specify SND_PURGE in the fdwSound parameter.
Three flags in fdwSound (SND_ALIAS, SND_FILENAME, and SND_RESOURCE) determine whether the name is interpreted as an alias for a system event, a filename, or a resource identifier. If none of these flags are specified, PlaySound searches the registry or the WIN.INI file for an association with the specified sound name. If an association is found, the sound event is played. If no association is found in the registry, the name is interpreted as a filename.

pszSound에 NULL을 넣으면 현재 플레이중인 사운드가 멈춘다네요~ ^^

+ -

관련 글 리스트
49159 사운드 관련 질문입니다. 조용카리스마 1153 2007/05/03
49173     SDK 에 나온 내용 입니다. 아제나 1075 2007/05/06
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.