/**************************************************************************/ /* ogg_packet_sequence.cpp */ /**************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /**************************************************************************/ /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /**************************************************************************/ #include "ogg_packet_sequence.h" #include "core/variant/typed_array.h" void OggPacketSequence::push_page(int64_t p_granule_pos, const Vector<PackedByteArray> &p_data) { … } void OggPacketSequence::set_packet_data(const TypedArray<Array> &p_data) { … } TypedArray<Array> OggPacketSequence::get_packet_data() const { … } void OggPacketSequence::set_packet_granule_positions(const PackedInt64Array &p_granule_positions) { … } PackedInt64Array OggPacketSequence::get_packet_granule_positions() const { … } void OggPacketSequence::set_sampling_rate(float p_sampling_rate) { … } float OggPacketSequence::get_sampling_rate() const { … } int64_t OggPacketSequence::get_final_granule_pos() const { … } float OggPacketSequence::get_length() const { … } Ref<OggPacketSequencePlayback> OggPacketSequence::instantiate_playback() { … } void OggPacketSequence::_bind_methods() { … } bool OggPacketSequencePlayback::next_ogg_packet(ogg_packet **p_packet) const { … } uint32_t OggPacketSequencePlayback::seek_page_internal(int64_t granule, uint32_t after_page_inclusive, uint32_t before_page_inclusive) { … } bool OggPacketSequencePlayback::seek_page(int64_t p_granule_pos) { … } int64_t OggPacketSequencePlayback::get_page_number() const { … } bool OggPacketSequencePlayback::set_page_number(int64_t p_page_number) { … } OggPacketSequencePlayback::OggPacketSequencePlayback() { … } OggPacketSequencePlayback::~OggPacketSequencePlayback() { … }