| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <windows.h> | 5 #include <windows.h> |
| 6 #include <mmsystem.h> | 6 #include <mmsystem.h> |
| 7 #pragma comment(lib, "winmm.lib") | 7 #pragma comment(lib, "winmm.lib") |
| 8 | 8 |
| 9 #include "media/audio/win/waveout_output_win.h" | 9 #include "media/audio/win/waveout_output_win.h" |
| 10 | 10 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 return; | 244 return; |
| 245 } | 245 } |
| 246 obj->QueueNextPacket(buffer); | 246 obj->QueueNextPacket(buffer); |
| 247 } else if (msg == WOM_CLOSE) { | 247 } else if (msg == WOM_CLOSE) { |
| 248 // We can be closed before calling Start, so it is possible to have a | 248 // We can be closed before calling Start, so it is possible to have a |
| 249 // null callback at this point. | 249 // null callback at this point. |
| 250 if (obj->callback_) | 250 if (obj->callback_) |
| 251 obj->callback_->OnClose(obj); | 251 obj->callback_->OnClose(obj); |
| 252 } | 252 } |
| 253 } | 253 } |
| 254 | |
| OLD | NEW |