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

Unified Diff: chrome/common/render_messages_params.cc

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
Index: chrome/common/render_messages_params.cc
diff --git a/chrome/common/render_messages_params.cc b/chrome/common/render_messages_params.cc
index a57b076439bca112aaa16a7d629e7e52585f6a3e..b0ee44a2535eb458ab65bec009c19feedbfbde2c 100644
--- a/chrome/common/render_messages_params.cc
+++ b/chrome/common/render_messages_params.cc
@@ -136,8 +136,7 @@ ViewHostMsg_DidPrintPage_Params::ViewHostMsg_DidPrintPage_Params()
ViewHostMsg_DidPrintPage_Params::~ViewHostMsg_DidPrintPage_Params() {
}
-ViewHostMsg_Audio_CreateStream_Params::ViewHostMsg_Audio_CreateStream_Params()
- : packet_size(0) {
+ViewHostMsg_Audio_CreateStream_Params::ViewHostMsg_Audio_CreateStream_Params() {
}
ViewHostMsg_Audio_CreateStream_Params::
@@ -1096,7 +1095,7 @@ void ParamTraits<ViewHostMsg_Audio_CreateStream_Params>::Write(
WriteParam(m, p.params.channels);
WriteParam(m, p.params.sample_rate);
WriteParam(m, p.params.bits_per_sample);
- WriteParam(m, p.packet_size);
+ WriteParam(m, p.params.samples_per_packet);
}
bool ParamTraits<ViewHostMsg_Audio_CreateStream_Params>::Read(const Message* m,
@@ -1107,7 +1106,7 @@ bool ParamTraits<ViewHostMsg_Audio_CreateStream_Params>::Read(const Message* m,
ReadParam(m, iter, &p->params.channels) &&
ReadParam(m, iter, &p->params.sample_rate) &&
ReadParam(m, iter, &p->params.bits_per_sample) &&
- ReadParam(m, iter, &p->packet_size);
+ ReadParam(m, iter, &p->params.samples_per_packet);
}
void ParamTraits<ViewHostMsg_Audio_CreateStream_Params>::Log(
@@ -1122,7 +1121,7 @@ void ParamTraits<ViewHostMsg_Audio_CreateStream_Params>::Log(
l->append(", ");
LogParam(p.params.bits_per_sample, l);
l->append(", ");
- LogParam(p.packet_size, l);
+ LogParam(p.params.samples_per_packet, l);
l->append(")");
}

Powered by Google App Engine
This is Rietveld 408576698