diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-05 06:39:06 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-05 06:39:06 +0000 |
commit | f6eeded10a75632e1bc5ecaad9be46553c4ab908 (patch) | |
tree | 8a400e987cd72f1a4b799ce086f3d4169d87b0e9 /media/audio/win/waveout_output_win.h | |
parent | 29a984ff619eb0bdd27bc612bed55f6146cce4fe (diff) | |
download | chromium_src-f6eeded10a75632e1bc5ecaad9be46553c4ab908.zip chromium_src-f6eeded10a75632e1bc5ecaad9be46553c4ab908.tar.gz chromium_src-f6eeded10a75632e1bc5ecaad9be46553c4ab908.tar.bz2 |
Remove size_t from audio IPC code.
The change got to this size because I had to modify the surrounding code (I didn't want to just cast at the last minute).
Review URL: http://codereview.chromium.org/577006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/win/waveout_output_win.h')
-rw-r--r-- | media/audio/win/waveout_output_win.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/media/audio/win/waveout_output_win.h b/media/audio/win/waveout_output_win.h index d587c8c..df35542 100644 --- a/media/audio/win/waveout_output_win.h +++ b/media/audio/win/waveout_output_win.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// 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. @@ -34,7 +34,7 @@ class PCMWaveOutAudioOutputStream : public AudioOutputStream { virtual ~PCMWaveOutAudioOutputStream(); // Implementation of AudioOutputStream. - virtual bool Open(size_t packet_size); + virtual bool Open(uint32 packet_size); virtual void Close(); virtual void Start(AudioSourceCallback* callback); virtual void Stop(); @@ -64,7 +64,7 @@ class PCMWaveOutAudioOutputStream : public AudioOutputStream { void HandleError(MMRESULT error); // Allocates and prepares the memory that will be used for playback. Only // two buffers are created. - void SetupBuffers(size_t rq_size); + void SetupBuffers(uint32 rq_size); // Deallocates the memory allocated in SetupBuffers. void FreeBuffers(); @@ -84,7 +84,7 @@ class PCMWaveOutAudioOutputStream : public AudioOutputStream { const int num_buffers_; // The size in bytes of each audio buffer, we usually have two of these. - size_t buffer_size_; + uint32 buffer_size_; // Volume level from 0 to 1. float volume_; @@ -93,7 +93,7 @@ class PCMWaveOutAudioOutputStream : public AudioOutputStream { const int channels_; // Number of bytes yet to be played in the hardware buffer. - int pending_bytes_; + uint32 pending_bytes_; // The id assigned by the operating system to the selected wave output // hardware device. Usually this is just -1 which means 'default device'. |