1 / 20

SK-VM 사운드

SK-VM 사운드. XCE (SK-VM 홈페이지 ). http://www.developerzone.co.kr/ 접속후 회원가입. XCE (SK-VM 홈페이지 ). DOWNLOAD->SDK->WIPI 에뮬레이터 2.0(SKVM2.0) 다운로드후 설치 (C:). SK-VM 에서 실행. 폴더 생성 ( C:WIPI-JAVA 2.0.2exampleAnimation ). SK-VM 에서 실행. 파일 생성후 컴파일 ThreadAnimation.java 파일 작성 build.bat 실행 클래스 파일 생성.

Download Presentation

SK-VM 사운드

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SK-VM 사운드 서울호서전문학교 게임프로그램개발과

  2. XCE (SK-VM 홈페이지) • http://www.developerzone.co.kr/접속후 회원가입 서울호서전문학교 게임프로그램개발과

  3. XCE (SK-VM 홈페이지) • DOWNLOAD->SDK->WIPI 에뮬레이터2.0(SKVM2.0) 다운로드후 설치(C:) 서울호서전문학교 게임프로그램개발과

  4. SK-VM에서 실행 • 폴더 생성(C:\WIPI-JAVA 2.0.2\example\Animation) 서울호서전문학교 게임프로그램개발과

  5. SK-VM에서 실행 • 파일 생성후 컴파일 • ThreadAnimation.java 파일 작성 • build.bat 실행 • 클래스 파일 생성 서울호서전문학교 게임프로그램개발과

  6. SK-VM에서 실행 • WIPI-JAVA 2.0.2 실행 클릭 에뮬레이터선택 서울호서전문학교 게임프로그램개발과

  7. SK-VM에서 실행 • 클래스 패스 설정 • /example/ThreadAnimation; • ThreadAnimation 클래스 등록 서울호서전문학교 게임프로그램개발과

  8. SK-VM에서 실행 • 클래스 선택 • ThreadAnimation • 실행 서울호서전문학교 게임프로그램개발과

  9. SK-VM에서 실행 • 실행 결과 서울호서전문학교 게임프로그램개발과

  10. MMF 음원 들어보기 • MMF Player • 시작 -> WIPI Java 2.0.2 ->MMFPlayer 서울호서전문학교 게임프로그램개발과

  11. AudioClip 활용 • 사용 클래스 및 인터페이스 • com.skt.m.AudioSystem • com.skt.m.AudioClip • java.io.InputStream 사용법 import com.skt.m.*; Import java.io.*; 서울호서전문학교 게임프로그램개발과

  12. AudioClip 활용 • AudioClip 얻어오기 사용법 AudioClip clip; try{ clip = AudioSystem.getAudioClip(“mmf”); }catch(Exception e){} 서울호서전문학교 게임프로그램개발과

  13. AudioClip 활용 • *.mmf 얻어오기 • mmf는 모바일 애플리케이션에서 사용되는 사운드 사용법 InputStream is = null; byte[] buffer; try{ is = getClass().getResourceAsStream(“/test.mmf”); } catch(Exception e){} 서울호서전문학교 게임프로그램개발과

  14. AudioClip 활용 • mmf파일 출력하기(한번) 사용법 try{ buffer = new byte[is.available()]; is.read(buffer); is.close(); clip.open(buffer, 0, buffer.length); clip.play(); }catch(Exception e){} 서울호서전문학교 게임프로그램개발과

  15. AudioClip 활용 • 반복 정지 • 일시 정지 다시 실행 try{ ……. clip.stop(); }catch(Exception e){} try{ ……. clip.loop(); }catch(Exception e){} try{ ……. clip.resume(); }catch(Exception e){} try{ ……. clip.pause(); }catch(Exception e){} 서울호서전문학교 게임프로그램개발과

  16. 사운드 출력예 • SoundTest 프로젝트(C:\WIPI-JAVA 2.0.2\example\SoundTest) 반드시 추가 서울호서전문학교 게임프로그램개발과

  17. 사운드 출력예 • SoundTest 프로젝트 새로이 추가 서울호서전문학교 게임프로그램개발과

  18. 사운드 출력예 • SoundTest 프로젝트 서울호서전문학교 게임프로그램개발과

  19. 사운드 출력예 • 컴파일후 실행

  20. 실습(과제#3) • 다음키를 누를시 아래의 사운드가 출력되도록 하시오 • KEY_NUM0: m_fall.mmf • KEY_NUM1: m_GameOver.mmf • KEY_NUM2: m_Intro.mmf • KEY_NUM3: m_levelClear.mmf • KEY_NUM4: m_Stick.mmf • KEY_NUM5: m_SubTitle.mmf • 다음키를 누를시 해당음원이 무한반복 되도록 하시오 • UP : m_Intro.mmf • DOWN : m_GameOver.mmf • RIGHT : m_levelClear.mmf 서울호서전문학교 게임프로그램개발과

More Related