Lines Matching refs:channels
29 // Creates a new AudioBus and allocates |channels| of length |frames|. Uses
30 // channels() and frames_per_buffer() from AudioParameters if given.
31 static scoped_ptr<AudioBus> Create(int channels, int frames);
34 // Creates a new AudioBus with the given number of channels, but zero length.
37 static scoped_ptr<AudioBus> CreateWrapper(int channels);
48 static scoped_ptr<AudioBus> WrapMemory(int channels, int frames, void* data);
53 // Calculates the required size for an AudioBus given the number of channels
55 static int CalculateMemorySize(int channels, int frames);
76 // AudioBus object must have the same frames() and channels().
80 // objects must have the same number of channels(). |source_start_frame| is
95 int channels() const { return static_cast<int>(channel_data_.size()); }
99 // Helper method for zeroing out all channels of audio data.
108 // Swaps channels identified by |a| and |b|. The caller needs to make sure
109 // the channels are valid.
115 AudioBus(int channels, int frames);
116 AudioBus(int channels, int frames, float* data);
118 explicit AudioBus(int channels);
123 void BuildChannelData(int channels, int aligned_frame, float* data);
144 static scoped_refptr<AudioBusRefCounted> Create(int channels, int frames);
149 AudioBusRefCounted(int channels, int frames);