common.h revision 788acd17adf6b3d605b5ea66cf394eb81fc086a9
1788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org/* 2788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 3788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org * 4788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org * Use of this source code is governed by a BSD-style license 5788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org * that can be found in the LICENSE file in the root of the source 6788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org * tree. An additional intellectual property rights grant can be found 7788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org * in the file PATENTS. All contributing project authors may 8788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org * be found in the AUTHORS file in the root of the source tree. 9788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org */ 10788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org 11788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TRANSIENT_COMMON_H_ 12788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org#define WEBRTC_MODULES_AUDIO_PROCESSING_TRANSIENT_COMMON_H_ 13788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgnamespace webrtc { 14788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgnamespace ts { 15788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org 16788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgstatic const float kPi = 3.14159265358979323846f; 17788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgstatic const int kChunkSizeMs = 10; 18788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgenum { 19788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org kSampleRate8kHz = 8000, 20788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org kSampleRate16kHz = 16000, 21788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org kSampleRate32kHz = 32000, 22788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org kSampleRate48kHz = 48000 23788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org}; 24788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org 25788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org} // namespace ts 26788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org} // namespace webrtc 27788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org#endif // WEBRTC_MODULES_AUDIO_PROCESSING_TRANSIENT_COMMON_H_ 28