1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/cocobaby-VoiceCurve

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать

A permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

Permissions
  • Commercial use
  • Modification
  • Distribution
  • Patent use
  • Private use
Limitations
  • Trademark use
  • Liability
  • Warranty
Conditions
  • License and copyright notice
  • State changes
README.md 1.6 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
kyson Отправлено 01.04.2015 06:54 b721bde

声音大小显示演示项目


##预览

预览

##描述

这是一个多个模块API的使用演示项目,包括声音的大小采集、自定义曲线图、感光API的使用等

##使用说明

####XML布局文件

<com.tt.voicecurve.CurveView
        android:id="@+id/curve"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true" />

####页面中使用

        mCurveView = (CurveView) this.findViewById(R.id.curve);
        mButton = (Button) this.findViewById(R.id.button1);
        mButton.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View arg0) {
                if (mIsStop) {
                    recordThread = new RecordThread(mHandler);
                    recordThread.startRecord();
                    mCurveView.clearScreen();
                    mButton.setText("停止");
                    mIsStop = false;
                } else {
                    recordThread.stopRecord();
                    mButton.setText("开始");
                    mIsStop = true;
                }
            }
        });

##更多

##License

Copyright (c) 2014 Kyson

Licensed under the Apache License, Version 2.0

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/cocobaby-VoiceCurve.git
git@api.gitlife.ru:oschina-mirror/cocobaby-VoiceCurve.git
oschina-mirror
cocobaby-VoiceCurve
cocobaby-VoiceCurve
master