diff options
Diffstat (limited to 'media/audio/audio_util.h')
-rw-r--r-- | media/audio/audio_util.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/media/audio/audio_util.h b/media/audio/audio_util.h index 0d65e19..a2fa15e 100644 --- a/media/audio/audio_util.h +++ b/media/audio/audio_util.h @@ -9,6 +9,10 @@ #include "base/basictypes.h" +namespace base { +class SharedMemory; +} + namespace media { // For all audio functions 3 audio formats are supported: @@ -77,6 +81,17 @@ void InterleaveFloatToInt16(const std::vector<float*>& source, // Returns the default audio hardware sample-rate. double GetAudioHardwareSampleRate(); +// Functions that handle data buffer passed between processes in the shared +// memory. Called on both IPC sides. + +uint32 TotalSharedMemorySizeInBytes(uint32 packet_size); +uint32 PacketSizeSizeInBytes(uint32 shared_memory_created_size); +uint32 GetActualDataSizeInBytes(base::SharedMemory* shared_memory, + uint32 shared_memory_size); +void SetActualDataSizeInBytes(base::SharedMemory* shared_memory, + uint32 shared_memory_size, + uint32 actual_data_size); + } // namespace media #endif // MEDIA_AUDIO_AUDIO_UTIL_H_ |