The OpenD Programming Language

cef_audio_handler_t.on_audio_stream_packet

Called on the audio stream thread when a PCM packet is received for the stream. |data| is an array representing the raw PCM data as a floating point type, i.e. 4-byte value(s). |frames| is the number of frames in the PCM packet. |pts| is the presentation timestamp (in milliseconds since the Unix Epoch) and represents the time at which the decompressed packet should be presented to the user. Based on |frames| and the |channel_layout| value passed to OnAudioStreamStarted you can calculate the size of the |data| array in bytes.

struct cef_audio_handler_t
extern (System)
void function(cef_audio_handler_t* self, cef_browser_t* browser, const(float*)* data, int frames, long pts) nothrow on_audio_stream_packet;

Meta