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

Unified Diff: media/audio/audio_parameters.h

Issue 4661001: Simplified AudioOutputStream interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 years, 1 month 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 | « media/audio/audio_output_controller_unittest.cc ('k') | media/audio/audio_parameters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_parameters.h
diff --git a/media/audio/audio_parameters.h b/media/audio/audio_parameters.h
index b7b8ae507e3f75e2a91e90eed3d83e4ffad81c07..9172d743066e0a93a8c4e95390c070f5e51d1b1e 100644
--- a/media/audio/audio_parameters.h
+++ b/media/audio/audio_parameters.h
@@ -24,15 +24,21 @@ struct AudioParameters {
AudioParameters();
- AudioParameters(Format format, int channels,
- int sample_rate, int bits_per_sample);
+ AudioParameters(Format format, int channels, int sample_rate,
+ int bits_per_sample, int samples_per_packet);
+ // Checks that all values are in the expected range. All limits are specified
+ // in media::Limits.
bool IsValid() const;
- Format format; // Format of the stream.
- int channels; // Number of channels.
- int sample_rate; // Sampling frequency/rate.
- int bits_per_sample; // Number of bits per sample.
+ // Returns size of audio packets in bytes.
+ int GetPacketSize() const;
+
+ Format format; // Format of the stream.
+ int channels; // Number of channels.
+ int sample_rate; // Sampling frequency/rate.
+ int bits_per_sample; // Number of bits per sample.
+ int samples_per_packet; // Size of a packet in frames.
};
#endif // MEDIA_AUDIO_AUDIO_PARAMETERS_H_
« no previous file with comments | « media/audio/audio_output_controller_unittest.cc ('k') | media/audio/audio_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698