iOS 시스템 사운드를 가리키는 상수 목록을 어디서 찾을 수 있는지 알고 계십니까? AudioServicesCreateSystemSoundID 메소드에 해당 사운드를 제공 할 수있게 해주시겠습니까?iPhone - 시스템 사운드 코드
5
A
답변
1
이 AudioServices.h
에서이다 :이 도움이
//==================================================================================================
#pragma mark AudioServices Constants
/*!
@enum AudioServices constants
@abstract Constants for use with System Sound portion of the AudioServices APIs.
@constant kSystemSoundID_UserPreferredAlert
Use this constant with the play sound APIs to
playback the alert sound selected by the User in System Preferences.
@constant kSystemSoundID_Vibrate
Use this constant with the play sound APIs to vibrate the device
- iPhone only
- on a device with no vibration capability (like iPod Touch) this will
do nothing
@constant kSystemSoundID_FlashScreen
Use this constant with the play sound APIs to flash the screen
- Desktop systems only
*/
enum
{
#if TARGET_OS_IPHONE
kSystemSoundID_Vibrate = 0x00000FFF
#else
kSystemSoundID_UserPreferredAlert = 0x00001000,
kSystemSoundID_FlashScreen = 0x00000FFE,
// this has been renamed to be consistent
kUserPreferredAlert = kSystemSoundID_UserPreferredAlert
#endif
};
희망.
0
제가 알고있는 유일한 사람은 AudioToolbox/AudioServices.h에있는 kSystemSoundID_Vibrate
입니다.
관련 문제
- 1. 시스템 사운드 잠금
- 2. Windows 시스템 사운드 추가
- 3. 푸시 알림 사운드 iPhone
- 4. 아이폰 SDK : "시스템 사운드"재생
- 5. HTML을 사용하여 시스템 사운드 재생
- 6. iPhone 앱의 사운드 포맷
- 7. iPhone 앱 사운드 인식?
- 8. iPhone 게임 무료 사운드
- 9. iPhone 사운드 조작
- 10. 스플래시 화면에서 iPhone 사운드 재생
- 11. NStimer iphone SDK와 동기화 사운드?
- 12. 내부 사운드 iPhone SDK 기록
- 13. 사운드 파일 선택 + iPhone SDK
- 14. 자바 재생 사운드. 기본 시스템 사운드가 있습니까?
- 15. iphone SMS 시스템 구현
- 16. IPhone/xcode에서 누른 버튼을 기반으로 사운드 재생
- 17. iPhone AVPlayer - 백그라운드에서 코드 실행
- 18. 버튼을 일시 중지하고 사운드 코드 오류를 재생합니다.
- 19. iphone/ipod touch에서 사운드 파일 재생
- 20. 좋은 iPhone 사운드 관리자 프레임 워크가 있습니까?
- 21. iPhone - AudioServicesPlaySystemSound 및 AVAudioPlayer로 재생되지 않는 사운드
- 22. SDK를 통한 iPhone 셔터 사운드 무시
- 23. iPhone 앱에서 생성 된 사운드 녹음
- 24. iPhone 앱에서 샘플링 된 사운드 클립의 합법성
- 25. iPhone 시스템 설정에 iPhone 앱 설정이 표시되어야합니까?
- 26. 코드 해석을 통한 블로그 시스템
- 27. 파일을 iPhone 시스템 폴더에 복사
- 28. iPhone SDK의 시스템 제공 버튼
- 29. iPhone 소켓에서 시스템 호출 ("보내기")
- 30. 시스템 버튼이있는 iPhone 세그먼트 컨트롤
감사합니다.하지만 웹에 표시된 예에서 찾을 수있는 모든 이름은 다음과 같습니다 (https://developer.apple.com/library/ios/#samplecode/SysSound/Listings/Classes_SysSoundViewController_m.html). # // apple_ref/doc/uid/DTS40008018-Classes_SysSoundViewController_m-DontLinkElementID_6 – Oliver
당신이 말하는 이름은 무엇입니까? – Viraj
"TAP"in -> NSURL * tapSound = [[NSBundle mainBundle] URLForResource : @ "tap" withExtension : @ "aif"]; // CFURLRef 인스턴스와 URL을 저장 self.soundFileURLRef = (CFURLRef) tapSound가 유지]; // 사운드 파일을 나타내는 시스템 사운드 객체를 만듭니다. AudioServicesCreateSystemSoundID ( soundFileURLRef, 및 soundFileObject ); 나는 웹 예제에서 다른 많은 것들을 발견했다. – Oliver