Skip to main content

Crate bitneedle_player

Crate bitneedle_player 

Source

Structs§

QuantizedLmChunkDecoder
WasmEncodedPayload
One encoded revolution at the BRS1 boundary: a shared codec/container description plus only the bytes that vary per revolution (the headerless codec payload body). Mirrors the EncodedPayload shape from the WASM headerless-ECDC contract.

Functions§

init_panic_hook
player_app_build_info_json
wasm_bcs2_opus_chunk_cache_keys_json
wasm_bump_scratch_remote_control_revision
wasm_create_player_ecdc_cache_proof_context_json
wasm_ecdc_chunk_layout_from_metadata
wasm_ecdc_crop_decoded_owned_audio
Crop a guarded decode down to its owned audio: drops the left/right guard samples the encoder padded each revolution with, leaving exactly the owned (audible) samples. Mirrors encodec_rs::wasm::ecdc_crop_decoded_owned_audio so the player worker can call it on the bitneedle-player module.
wasm_ecdc_frame_ranges
wasm_ecdc_metadata
wasm_ecdc_standalone_to_payload
Split a standalone ECDC byte stream (one fixed-profile revolution block) into the shared PayloadDescriptor and the headerless codec payload bytes stored in the BRS1 groove. The ECDC outer header is lifted into the descriptor.
wasm_ensure_scratch_remote_control_revision_json
wasm_get_record_rpm
wasm_is_valid_scratch_anon_user_id
wasm_is_valid_scratch_wallet_address
wasm_lm_ecdc_decode_chunks
wasm_normalize_record_profile_name
wasm_normalize_record_text_field_text
wasm_normalize_scratch_display_name
wasm_normalize_scratch_remote_control_revision
wasm_normalize_scratch_sample_id
wasm_payload_to_standalone_ecdc
Reconstruct a decodable standalone ECDC byte stream from a PayloadDescriptor (JSON) and the headerless codec payload bytes. Inverse of wasm_ecdc_standalone_to_payload; lets the player feed the existing decode path without storing repeated ECDC headers in the groove.
wasm_player_ecdc_cache_proof_for_chunk_json
wasm_record_display_metadata_json
wasm_record_playback_metadata_from_header_json
wasm_record_profile_from_header_validation_json
wasm_record_profile_spec_json
wasm_record_text_from_header_validation_json
wasm_record_verification_meta_json
wasm_resolve_clip_revolutions_json
wasm_resolve_deadwax_duration_seconds
wasm_resolve_deadwax_turns
wasm_resolve_lead_in_duration_seconds
wasm_resolve_lead_in_turns
wasm_resolve_physical_rpm
wasm_resolve_playback_payload_metadata_json
wasm_resolve_playback_rate
wasm_resolve_record_rpm
wasm_resolve_seconds_per_turn
wasm_scratch_anon_user_id_from_random
wasm_scratch_clip_id_for_sample_id
wasm_scratch_clip_sample_id_json
wasm_scratch_display_name_key
wasm_scratch_sample_token_from_bytes
wasm_scratch_sample_token_hex
wasm_scratch_visitor_wallet_address_from_bytes
wasm_seconds_to_revolutions
wasm_short_scratch_address
wasm_should_apply_remote_scratch_controls_json
wasm_stable_hash_hex
wasm_stable_local_record_id_from_meta_json
wasm_validate_shared_payload_descriptor
Verify that two PayloadDescriptors (JSON) are identical across every field, so a record builder can confirm all revolutions share one descriptor before storing it once. Errors name the differing field.