When I write the output stream in multipeer connectivity from audio buffer data I got the error
Cannot invoke initializer for type UnsafePointer<_> with an argument list of type (UnsafeMutableRawPointer)
I found the many solutions, but this solution not helpful for me.
My code is:
func send(_ buffer: AudioBuffer) {
print(buffer.mData!)
print(buffer.mDataByteSize)
outputStreme?.write(UnsafePointer(buffer.mData), maxLength: buffer.mDataByteSize)
}
Thanks in advance..:)