Lines Matching defs:AudioBus

19 // AudioBus objects can be created normally or via wrapping.  Normally, AudioBus
21 // AudioBus instead routes requests for channel data to the wrapped object.
22 class MEDIA_EXPORT AudioBus {
28 // Creates a new AudioBus and allocates |channels| of length |frames|. Uses
30 static scoped_ptr<AudioBus> Create(int channels, int frames);
31 static scoped_ptr<AudioBus> Create(const AudioParameters& params);
33 // Creates a new AudioBus with the given number of channels, but zero length.
36 static scoped_ptr<AudioBus> CreateWrapper(int channels);
38 // Creates a new AudioBus from an existing channel vector. Does not transfer
39 // ownership of |channel_data| to AudioBus; i.e., |channel_data| must outlive
40 // the returned AudioBus. Each channel must be aligned by kChannelAlignment.
41 static scoped_ptr<AudioBus> WrapVector(
44 // Creates a new AudioBus by wrapping an existing block of memory. Block must
46 // returned AudioBus. |data| must be aligned by kChannelAlignment.
47 static scoped_ptr<AudioBus> WrapMemory(int channels, int frames, void* data);
48 static scoped_ptr<AudioBus> WrapMemory(const AudioParameters& params,
52 // Calculates the required size for an AudioBus given the number of channels
56 // Helper methods for converting an AudioBus from and to interleaved integer
74 // Helper method for copying channel data from one AudioBus to another. Both
75 // AudioBus object must have the same frames() and channels().
76 void CopyTo(AudioBus* dest) const;
78 // Helper method to copy frames from one AudioBus to another. Both AudioBus
85 AudioBus* dest) const;
108 friend struct base::DefaultDeleter<AudioBus>;
109 ~AudioBus();
111 AudioBus(int channels, int frames);
112 AudioBus(int channels, int frames, float* data);
113 AudioBus(int frames, const std::vector<float*>& channel_data);
114 explicit AudioBus(int channels);
129 DISALLOW_COPY_AND_ASSIGN(AudioBus);