summaryrefslogtreecommitdiffstats
path: root/ppapi/c/dev/ppb_audio_config_dev.h
diff options
context:
space:
mode:
authornfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-20 01:35:50 +0000
committernfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-20 01:35:50 +0000
commit56e8cc35efd400a3c38a8d459dff06bd20e9e899 (patch)
tree8333c74ebf20d17930caff775d28c9be9d1e8849 /ppapi/c/dev/ppb_audio_config_dev.h
parentf76f2689acac6ec1fd8e39f9a5cf46749e3c1834 (diff)
downloadchromium_src-56e8cc35efd400a3c38a8d459dff06bd20e9e899.zip
chromium_src-56e8cc35efd400a3c38a8d459dff06bd20e9e899.tar.gz
chromium_src-56e8cc35efd400a3c38a8d459dff06bd20e9e899.tar.bz2
Remove dev/audio, dev/audio_config, and dev/audio_trusted
Also, bump NaCl in deps to pull in new version of NaCl, which has now migrated to non-dev audio. Review URL: http://codereview.chromium.org/6281007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/dev/ppb_audio_config_dev.h')
-rw-r--r--ppapi/c/dev/ppb_audio_config_dev.h97
1 files changed, 0 insertions, 97 deletions
diff --git a/ppapi/c/dev/ppb_audio_config_dev.h b/ppapi/c/dev/ppb_audio_config_dev.h
deleted file mode 100644
index 0a1be2a..0000000
--- a/ppapi/c/dev/ppb_audio_config_dev.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/* Copyright (c) 2010 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#ifndef PPAPI_C_DEV_PPB_AUDIO_CONFIG_DEV_H_
-#define PPAPI_C_DEV_PPB_AUDIO_CONFIG_DEV_H_
-
-#include "ppapi/c/pp_bool.h"
-#include "ppapi/c/pp_instance.h"
-#include "ppapi/c/pp_macros.h"
-#include "ppapi/c/pp_resource.h"
-#include "ppapi/c/pp_stdint.h"
-
-#define PPB_AUDIO_CONFIG_DEV_INTERFACE "PPB_AudioConfig(Dev);0.4"
-
-enum {
- PP_AUDIOMINSAMPLEFRAMECOUNT = 64,
- PP_AUDIOMAXSAMPLEFRAMECOUNT = 32768
-};
-
-typedef enum {
- PP_AUDIOSAMPLERATE_NONE = 0,
- PP_AUDIOSAMPLERATE_44100 = 44100,
- PP_AUDIOSAMPLERATE_48000 = 48000
-} PP_AudioSampleRate_Dev;
-PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_AudioSampleRate_Dev, 4);
-
-/**
- * Audio configuration. This base configuration interface supports only stereo
- * 16bit output. This class is not mutable, therefore it is okay to access
- * instances from different threads.
- */
-struct PPB_AudioConfig_Dev {
- /**
- * Create a 16 bit stereo config with the given sample rate. We guarantee
- * that PP_AUDIOSAMPLERATE_44100 and PP_AUDIOSAMPLERATE_48000 sample rates
- * are supported. The |sample_frame_count| should be the result of calling
- * RecommendSampleFrameCount. If the sample frame count or bit rate aren't
- * supported, this function will fail and return a null resource.
- *
- * A single sample frame on a stereo device means one value for the left
- * channel and one value for the right channel.
- *
- * Buffer layout for a stereo int16 configuration:
- * int16_t *buffer16;
- * buffer16[0] is the first left channel sample
- * buffer16[1] is the first right channel sample
- * buffer16[2] is the second left channel sample
- * buffer16[3] is the second right channel sample
- * ...
- * buffer16[2 * (sample_frame_count - 1)] is the last left channel sample
- * buffer16[2 * (sample_frame_count - 1) + 1] is the last right channel sample
- * Data will always be in the native endian format of the platform.
- */
- PP_Resource (*CreateStereo16Bit)(PP_Instance instance,
- PP_AudioSampleRate_Dev sample_rate,
- uint32_t sample_frame_count);
-
- /*
- * Returns a supported sample frame count closest to the given requested
- * count. The sample frame count determines the overall latency of audio.
- * Since one "frame" is always buffered in advance, smaller frame counts
- * will yield lower latency, but higher CPU utilization.
- *
- * Supported sample frame counts will vary by hardware and system (consider
- * that the local system might be anywhere from a cell phone or a high-end
- * audio workstation). Sample counts less than PP_AUDIOMINSAMPLEFRAMECOUNT
- * and greater than PP_AUDIOMAXSAMPLEFRAMECOUNT are never supported on any
- * system, but values in between aren't necessarily valid. This function
- * will return a supported count closest to the requested value.
- *
- * If you pass 0 as the requested sample count, the recommended sample for
- * the local system is returned.
- */
- uint32_t (*RecommendSampleFrameCount)(uint32_t requested_sample_frame_count);
-
- /**
- * Returns true if the given resource is an AudioConfig object.
- */
- PP_Bool (*IsAudioConfig)(PP_Resource resource);
-
- /**
- * Returns the sample rate for the given AudioConfig resource. If the
- * resource is invalid, this will return PP_AUDIOSAMPLERATE_NONE.
- */
- PP_AudioSampleRate_Dev (*GetSampleRate)(PP_Resource config);
-
- /**
- * Returns the sample frame count for the given AudioConfig resource. If the
- * resource is invalid, this will return 0. See RecommendSampleFrameCount for
- * more on sample frame counts.
- */
- uint32_t (*GetSampleFrameCount)(PP_Resource config);
-};
-
-#endif /* PPAPI_C_DEV_PPB_AUDIO_CONFIG_DEV_H_ */
-