Home | History | Annotate | Download | only in base

Lines Matching full:frames

28   // Creates a new AudioBus and allocates |channels| of length |frames|.  Uses
30 static scoped_ptr<AudioBus> Create(int channels, int frames);
42 int frames, const std::vector<float*>& channel_data);
47 static scoped_ptr<AudioBus> WrapMemory(int channels, int frames, void* data);
53 // and frames.
54 static int CalculateMemorySize(int channels, int frames);
61 // any unfilled frames when |frames| is less than frames().
62 void FromInterleaved(const void* source, int frames, int bytes_per_sample);
63 void ToInterleaved(int frames, int bytes_per_sample, void* dest) const;
64 void ToInterleavedPartial(int start_frame, int frames, int bytes_per_sample,
68 // not zero out remaining frames, the caller is responsible for doing so using
69 // ZeroFramesPartial(). Frames are deinterleaved from the start of |source|
71 void FromInterleavedPartial(const void* source, int start_frame, int frames,
75 // AudioBus object must have the same frames() and channels().
78 // Helper method to copy frames from one AudioBus to another. Both AudioBus
81 // |frame_count| is the number of frames to copy.
95 int frames() const { return frames_; }
96 void set_frames(int frames);
100 void ZeroFrames(int frames);
101 void ZeroFramesPartial(int start_frame, int frames);
111 AudioBus(int channels, int frames);
112 AudioBus(int channels, int frames, float* data);
113 AudioBus(int frames, const std::vector<float*>& channel_data);