Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1865)

Unified Diff: content/renderer/pepper/content_decryptor_delegate.h

Issue 26956002: Plumb support for audio sample formats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cast. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/pepper/content_decryptor_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/content_decryptor_delegate.h
diff --git a/content/renderer/pepper/content_decryptor_delegate.h b/content/renderer/pepper/content_decryptor_delegate.h
index 26989face35ea22500ef6ae9b0a8d03f5b091373..efa75867bdaa15625809715796a7c97e7afed8d7 100644
--- a/content/renderer/pepper/content_decryptor_delegate.h
+++ b/content/renderer/pepper/content_decryptor_delegate.h
@@ -103,7 +103,7 @@ class ContentDecryptorDelegate {
void DeliverFrame(PP_Resource decrypted_frame,
const PP_DecryptedFrameInfo* frame_info);
void DeliverSamples(PP_Resource audio_frames,
- const PP_DecryptedBlockInfo* block_info);
+ const PP_DecryptedSampleInfo* sample_info);
private:
// Cancels the pending decrypt-and-decode callback for |stream_type|.
@@ -132,6 +132,7 @@ class ContentDecryptorDelegate {
// buffers in |frames|. Returns true upon success.
bool DeserializeAudioFrames(PP_Resource audio_frames,
size_t data_size,
+ media::SampleFormat sample_format,
media::Decryptor::AudioBuffers* frames);
const PP_Instance pp_instance_;
@@ -178,10 +179,8 @@ class ContentDecryptorDelegate {
std::queue<uint32_t> free_buffers_;
// Keep track of audio parameters.
- media::SampleFormat audio_sample_format_;
int audio_samples_per_second_;
int audio_channel_count_;
- int audio_bytes_per_frame_;
base::WeakPtr<ContentDecryptorDelegate> weak_this_;
base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_;
« no previous file with comments | « no previous file | content/renderer/pepper/content_decryptor_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698