Ejemplo n.º 1
0
 extern static int _Initialize(PPResource audio_encoder,
                               uint channels,
                               PPAudioBufferSampleRate input_sample_rate,
                               PPAudioBufferSampleSize input_sample_size,
                               PPAudioProfile output_profile,
                               uint initial_bitrate,
                               PPHardwareAcceleration acceleration,
                               PPCompletionCallback callback);
Ejemplo n.º 2
0
 /**
  * Initializes an audio encoder resource. The plugin should call Initialize()
  * successfully before calling any of the functions below.
  *
  * @param[in] audio_encoder A <code>PP_Resource</code> identifying the audio
  * encoder.
  * @param[in] channels The number of audio channels to encode.
  * @param[in] input_sampling_rate The sampling rate of the input audio buffer.
  * @param[in] input_sample_size The sample size of the input audio buffer.
  * @param[in] output_profile A <code>PP_AudioProfile</code> specifying the
  * codec profile of the encoded output stream.
  * @param[in] initial_bitrate The initial bitrate for the encoder.
  * @param[in] acceleration A <code>PP_HardwareAcceleration</code> specifying
  * whether to use a hardware accelerated or a software implementation.
  * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
  * completion.
  *
  * @return An int32_t containing an error code from <code>pp_errors.h</code>.
  * Returns PP_ERROR_NOTSUPPORTED if audio encoding is not available, or the
  * requested codec profile is not supported.
  */
 public static int Initialize(PPResource audio_encoder,
                              uint channels,
                              PPAudioBufferSampleRate input_sample_rate,
                              PPAudioBufferSampleSize input_sample_size,
                              PPAudioProfile output_profile,
                              uint initial_bitrate,
                              PPHardwareAcceleration acceleration,
                              PPCompletionCallback callback)
 {
     return(_Initialize(audio_encoder,
                        channels,
                        input_sample_rate,
                        input_sample_size,
                        output_profile,
                        initial_bitrate,
                        acceleration,
                        callback));
 }