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

Side by Side Diff: media/audio/mac/audio_output_mac.h

Issue 194112: Fixing audio in mac (Closed)
Patch Set: Created 11 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | media/audio/mac/audio_output_mac.cc » ('j') | media/audio/mac/audio_output_mac.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef MEDIA_AUDIO_MAC_OUTPUT_MAC_H_ 5 #ifndef MEDIA_AUDIO_MAC_OUTPUT_MAC_H_
6 #define MEDIA_AUDIO_MAC_OUTPUT_MAC_H_ 6 #define MEDIA_AUDIO_MAC_OUTPUT_MAC_H_
7 7
8 #include <AudioToolbox/AudioQueue.h> 8 #include <AudioToolbox/AudioQueue.h>
9 #include <AudioToolbox/AudioFormat.h> 9 #include <AudioToolbox/AudioFormat.h>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Structure that holds the stream format details such as bitrate. 49 // Structure that holds the stream format details such as bitrate.
50 AudioStreamBasicDescription format_; 50 AudioStreamBasicDescription format_;
51 // Handle to the OS audio queue object. 51 // Handle to the OS audio queue object.
52 AudioQueueRef audio_queue_; 52 AudioQueueRef audio_queue_;
53 // Array of pointers to the OS managed audio buffers. 53 // Array of pointers to the OS managed audio buffers.
54 AudioQueueBufferRef buffer_[kNumBuffers]; 54 AudioQueueBufferRef buffer_[kNumBuffers];
55 // Pointer to the object that will provide the audio samples. 55 // Pointer to the object that will provide the audio samples.
56 AudioSourceCallback* source_; 56 AudioSourceCallback* source_;
57 // Our creator, the audio manager needs to be notified when we close. 57 // Our creator, the audio manager needs to be notified when we close.
58 AudioManagerMac* manager_; 58 AudioManagerMac* manager_;
59 // Number of bytes for make a silence buffer.
60 int silence_bytes_;
61 // Number of bytes yet to be played in audio buffer.
62 int pending_bytes_;
59 63
60 DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream); 64 DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream);
61 }; 65 };
62 66
63 #endif // MEDIA_AUDIO_MAC_OUTPUT_MAC_H_ 67 #endif // MEDIA_AUDIO_MAC_OUTPUT_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | media/audio/mac/audio_output_mac.cc » ('j') | media/audio/mac/audio_output_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698