Skip to content
1 viewer

rust 1,859,748 · typescript 235,215 · javascript 132,950 · python 20,426 · 6,405 files · digest 9ba5c926519d · built in 1.7 s · crystals off

crates/cre8-app-conduit/src/streaming/http_audio_stream.rs

cre8-app-conduit · module streaming::http_audio_stream · src · 2,774 lines (2,450 code, 80 comment) · sha 03e0a17d48c41d1b

Items

type AudioChunk type AudioChunkChannel type AudioChunkReceiver type AudioListenerLease struct AudioHttpHeaderSpec struct ConduitAudioRequestOptions struct OpusAudioRequest struct PcmAudioRequestOptions struct PreparedConduitAudioStream struct OggPacketPage struct OggOpusSegmentRewriter impl OggOpusSegmentRewriter struct WavAudioEncodeOutput struct FlacAudioEncodeOutput const MP3_PCM_HEADROOM_PEAK struct Mp3AudioEncodeOutput struct Mp3AtomOutput struct I16ResampleFrameSpec struct Mp3StreamStats impl Mp3StreamStats struct Mp3LiveEncoder impl Mp3LiveEncoder struct Mp3TransportWrite enum Mp3TransportError impl Mp3TransportError enum Mp3StreamPhase enum Mp3ReplayResult enum FiniteFlacSource enum FiniteFlacChunk enum FiniteFlacCollectStep enum FlacStreamChunkStatus enum FlacStreamLoopStep struct WavAudioRequestOptions enum FiniteWavSource enum FiniteWavChunk enum FiniteWavCollectStep

Functions

By call-graph weight (PageRank; 1.0 is the average function). 140 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
resample_interleaved_i16src/streaming/http_audio_stream.rs:1055fn44101223.6
write_http_chunksrc/streaming/http_audio_stream.rs:25fn61503.1
is_pcm_s16le_audio_chunksrc/streaming/http_audio_stream.rs:584fn311112.5
resampled_output_framessrc/streaming/http_audio_stream.rs:1109fn51102
push_resampled_frame_i16src/streaming/http_audio_stream.rs:1115fn112122
respond_audio_data_responsesrc/streaming/http_audio_stream.rs:80fn212521.9
finish_http_chunkssrc/streaming/http_audio_stream.rs:32fn41601.7
flush_flac_stream_tailsrc/streaming/http_audio_stream.rs:1985fn62301.6
apply_mp3_pcm_headroomsrc/streaming/http_audio_stream.rs:763fn103411.6
streaming_connection_headersrc/streaming/http_audio_stream.rs:46fn32401.6
write_audio_http_headersrc/streaming/http_audio_stream.rs:50fn294401.6
pcm_i16_samplessrc/streaming/http_audio_stream.rs:1127fn31701.5
mp3_encoder_sample_rate_for_pcmsrc/streaming/http_audio_stream.rs:749fn92301.4
resampled_channel_samplesrc/streaming/http_audio_stream.rs:1021fn336101.4
Mp3StreamStats::record_response_bytessrc/streaming/http_audio_stream.rs:1359method62201.3
OggOpusSegmentRewriter::write_pagesrc/streaming/http_audio_stream.rs:526method141201.3
flush_mp3_encoder_streamsrc/streaming/http_audio_stream.rs:909fn142411.3
pcm_i16_bytessrc/streaming/http_audio_stream.rs:1131fn31501.2
write_pcm_chunk_as_mp3_streamsrc/streaming/http_audio_stream.rs:993fn274371.2
handle_flac_stream_recvsrc/streaming/http_audio_stream.rs:2044fn283141
handle_finite_flac_recvsrc/streaming/http_audio_stream.rs:1795fn194121
parse_conduit_audio_request_optionssrc/streaming/http_audio_stream.rs:130fn171531
handle_finite_wav_recvsrc/streaming/http_audio_stream.rs:2299fn194121
OggOpusSegmentRewriter::newsrc/streaming/http_audio_stream.rs:509method162411
OggOpusSegmentRewriter::rewrite_chunksrc/streaming/http_audio_stream.rs:563method153441
respond_flac_native_unavailablesrc/streaming/http_audio_stream.rs:1717fn162210.9
finite_flac_collect_should_stopsrc/streaming/http_audio_stream.rs:1761fn32110.9
handle_finite_flac_chunksrc/streaming/http_audio_stream.rs:1776fn184120.9
finite_wav_collect_should_stopsrc/streaming/http_audio_stream.rs:2265fn32110.9
handle_finite_wav_chunksrc/streaming/http_audio_stream.rs:2280fn184120.9
audio_chunk_with_formatsrc/streaming/http_audio_stream.rs:2693fn121200.9
pcm_chunksrc/streaming/http_audio_stream.rs:1209fn182300.9
classify_finite_flac_chunksrc/streaming/http_audio_stream.rs:1751fn95120.9
push_finite_flac_pcm_chunksrc/streaming/http_audio_stream.rs:1765fn101100.9
classify_finite_wav_chunksrc/streaming/http_audio_stream.rs:2255fn95120.9
push_finite_wav_pcm_chunksrc/streaming/http_audio_stream.rs:2269fn101100.9
is_flac_audio_chunksrc/streaming/http_audio_stream.rs:588fn31100.9
ogg_packet_pagessrc/streaming/http_audio_stream.rs:459fn356300.9
is_wav_audio_chunksrc/streaming/http_audio_stream.rs:592fn31100.9
respond_too_many_audio_listenerssrc/streaming/http_audio_stream.rs:102fn171210.8
open_conduit_audio_channelsrc/streaming/http_audio_stream.rs:172fn72220.8
mp3_stream_encoder_shapesrc/streaming/http_audio_stream.rs:925fn31220.8
is_ogg_opus_audio_chunksrc/streaming/http_audio_stream.rs:445fn31210.8
encode_pcm_chunks_to_mp3_bytessrc/streaming/http_audio_stream.rs:786fn5210260.8
prepare_conduit_audio_streamsrc/streaming/http_audio_stream.rs:180fn344460.8
is_mp3_audio_chunksrc/streaming/http_audio_stream.rs:580fn31210.8
stream_native_conduit_flac_responsesrc/streaming/http_audio_stream.rs:2112fn434150.8
flac_encoder_configsrc/streaming/http_audio_stream.rs:672fn81200.8
opus_stream_payloadsrc/streaming/http_audio_stream.rs:2557fn173130.8
write_counted_opus_payloadsrc/streaming/http_audio_stream.rs:2575fn154110.8
process_live_mp3_chunksrc/streaming/http_audio_stream.rs:1567fn192140.7
start_opus_station_from_requestsrc/streaming/http_audio_stream.rs:353fn62110.7
respond_finite_conduit_flac_responsesrc/streaming/http_audio_stream.rs:1881fn173150.7
stream_conduit_flac_responsesrc/streaming/http_audio_stream.rs:2156fn181120.7
respond_single_conduit_opus_chunksrc/streaming/http_audio_stream.rs:2451fn798160.7
stream_conduit_opus_chunkssrc/streaming/http_audio_stream.rs:2608fn537150.7
write_flac_stream_chunksrc/streaming/http_audio_stream.rs:1957fn266140.7
handle_flac_stream_chunk_statussrc/streaming/http_audio_stream.rs:1993fn266110.7
handle_flac_stream_timeoutsrc/streaming/http_audio_stream.rs:2021fn213120.7
Mp3StreamStats::record_transport_writesrc/streaming/http_audio_stream.rs:1352method62210.7
Mp3StreamStats::reached_source_limitsrc/streaming/http_audio_stream.rs:1366method32200.7
write_mp3_transport_chunksrc/streaming/http_audio_stream.rs:1471fn224260.7
log_mp3_transport_errorsrc/streaming/http_audio_stream.rs:1494fn185200.7
is_opus_header_packetsrc/streaming/http_audio_stream.rs:495fn32100.7
OggOpusSegmentRewriter::write_headerssrc/streaming/http_audio_stream.rs:541method212110.7
collect_resampled_pcm_samplessrc/streaming/http_audio_stream.rs:652fn184130.7
decode_http_chunkssrc/streaming/http_audio_stream.rs:1228fn203200.7
pcm_stream_payloadsrc/streaming/http_audio_stream.rs:243fn92140.7
write_counted_pcm_stream_payloadsrc/streaming/http_audio_stream.rs:253fn83100.7
mp3_stream_encoder_configsrc/streaming/http_audio_stream.rs:930fn123100.7
encode_streaming_pcm_chunks_to_flac_bytessrc/streaming/http_audio_stream.rs:682fn285150.7
encode_finite_pcm_chunks_to_flac_bytessrc/streaming/http_audio_stream.rs:712fn192130.7
opus_test_chunksrc/streaming/http_audio_stream.rs:2680fn121200.7
ogg_pagesrc/streaming/http_audio_stream.rs:2722fn31200.7
write_pcm_stream_headersrc/streaming/http_audio_stream.rs:223fn191120.7
handle_pcm_stream_recvsrc/streaming/http_audio_stream.rs:262fn284130.7
ensure_mp3_stream_encodersrc/streaming/http_audio_stream.rs:944fn273130.6
write_mp3_stream_sample_batchessrc/streaming/http_audio_stream.rs:973fn183110.6
write_flac_stream_headersrc/streaming/http_audio_stream.rs:1899fn261120.6
create_flac_stream_encodersrc/streaming/http_audio_stream.rs:1927fn141100.6
run_flac_stream_loopsrc/streaming/http_audio_stream.rs:2074fn362110.6
encode_pcm_chunks_to_flac_bytessrc/streaming/http_audio_stream.rs:733fn142130.6
encode_pcm_chunks_to_wav_bytessrc/streaming/http_audio_stream.rs:604fn375150.6
wav_output_audio_shapesrc/streaming/http_audio_stream.rs:2189fn151110.6
respond_wav_encode_errorsrc/streaming/http_audio_stream.rs:2351fn111110.6
respond_flac_pcm_unavailablesrc/streaming/http_audio_stream.rs:1734fn111110.6
respond_flac_passthrough_responsesrc/streaming/http_audio_stream.rs:1746fn41110.6
collect_finite_flac_sourcesrc/streaming/http_audio_stream.rs:1815fn194110.6
respond_encoded_flac_responsesrc/streaming/http_audio_stream.rs:1835fn452140.6
write_opus_stream_headersrc/streaming/http_audio_stream.rs:2531fn252120.6
handle_opus_stream_chunksrc/streaming/http_audio_stream.rs:2591fn163120.6
handle_conduit_audio_pcm_requestsrc/streaming/http_audio_stream.rs:431fn131160.6
handle_conduit_audio_mp3_requestsrc/streaming/http_audio_stream.rs:1329fn141160.6
handle_conduit_audio_flac_requestsrc/streaming/http_audio_stream.rs:1674fn233190.6
handle_conduit_audio_wav_requestsrc/streaming/http_audio_stream.rs:2409fn131160.6
handle_conduit_audio_opus_requestsrc/streaming/http_audio_stream.rs:2423fn276190.6
Mp3LiveEncoder::pcm_transport_enabledsrc/streaming/http_audio_stream.rs:1388method31100.6
Mp3LiveEncoder::write_pcmsrc/streaming/http_audio_stream.rs:1392method111110.6
Mp3LiveEncoder::clear_config_after_passthroughsrc/streaming/http_audio_stream.rs:1416method61100.6
respond_direct_wav_chunksrc/streaming/http_audio_stream.rs:2205fn81110.6
collect_finite_wav_sourcesrc/streaming/http_audio_stream.rs:2319fn194110.6
respond_wav_pcm_unavailablesrc/streaming/http_audio_stream.rs:2339fn111110.6
respond_encoded_wav_responsesrc/streaming/http_audio_stream.rs:2363fn292140.6
opus_autostart_requestedsrc/streaming/http_audio_stream.rs:318fn64120.6
parse_pcm_audio_request_optionssrc/streaming/http_audio_stream.rs:215fn71130.6
stream_conduit_pcm_responsesrc/streaming/http_audio_stream.rs:291fn263130.6
stream_conduit_mp3_responsesrc/streaming/http_audio_stream.rs:1645fn284160.6
parse_wav_audio_request_optionssrc/streaming/http_audio_stream.rs:2239fn151140.6
respond_finite_conduit_wav_responsesrc/streaming/http_audio_stream.rs:2393fn153150.6
Mp3LiveEncoder::newsrc/streaming/http_audio_stream.rs:1379method81100.6
write_mp3_stream_headersrc/streaming/http_audio_stream.rs:1455fn151120.6
replay_mp3_backlogsrc/streaming/http_audio_stream.rs:1532fn346190.6
stream_live_mp3_chunkssrc/streaming/http_audio_stream.rs:1587fn456120.6
finish_mp3_streamsrc/streaming/http_audio_stream.rs:1633fn113110.6
parse_opus_audio_requestsrc/streaming/http_audio_stream.rs:325fn133150.6
claim_audio_listener_or_respondsrc/streaming/http_audio_stream.rs:339fn132120.6
maybe_start_opus_station_or_respondsrc/streaming/http_audio_stream.rs:360fn222120.6
open_audio_channel_or_respondsrc/streaming/http_audio_stream.rs:383fn212120.6
dispatch_conduit_opus_responsesrc/streaming/http_audio_stream.rs:405fn252120.6
handle_conduit_flac_responsesrc/streaming/http_audio_stream.rs:2175fn132120.6
Mp3TransportError::should_finish_replay_responsesrc/streaming/http_audio_stream.rs:1438method31100.5
finish_limited_mp3_replaysrc/streaming/http_audio_stream.rs:1513fn183120.5
encode_pcm_chunks_to_mp3_atomsrc/streaming/http_audio_stream.rs:854fn423040.5
unsupported_pcm_rate_is_promoted_for_mp3_transportsrc/streaming/http_audio_stream.rs:1146fn51010.5
resampler_preserves_interleaved_channelssrc/streaming/http_audio_stream.rs:1153fn91010.5
resampler_downmixes_multichannel_without_reframingsrc/streaming/http_audio_stream.rs:1164fn51010.5
resampler_upmixes_mono_to_stereosrc/streaming/http_audio_stream.rs:1171fn51010.5
resampler_rejects_invalid_rates_and_channelssrc/streaming/http_audio_stream.rs:1178fn71010.5
resampler_trims_partial_frames_on_passthroughsrc/streaming/http_audio_stream.rs:1187fn51010.5
mp3_pcm_headroom_limits_full_scale_peakssrc/streaming/http_audio_stream.rs:1194fn71010.5
mp3_pcm_headroom_leaves_quiet_samples_untouchedsrc/streaming/http_audio_stream.rs:1203fn51010.5
mp3_stream_keeps_partial_pcm_across_chunkssrc/streaming/http_audio_stream.rs:1250fn221040.5
finite_mp3_replay_flushes_short_pcm_chunk_at_source_limitsrc/streaming/http_audio_stream.rs:1274fn232050.5
finite_mp3_encoder_skips_non_pcm_and_flushes_outputsrc/streaming/http_audio_stream.rs:1299fn191020.5
Mp3LiveEncoder::flushsrc/streaming/http_audio_stream.rs:1404method111010.5
http_chunk_writer_frames_payloadssrc/streaming/http_audio_stream.rs:2672fn71020.5
mp3_transport_accepts_canonical_mime_aliasessrc/streaming/http_audio_stream.rs:2707fn62020.5
pcm_transport_accepts_s16le_mime_aliasessrc/streaming/http_audio_stream.rs:2715fn62020.5
opus_segment_rewriter_prepends_headers_to_continuation_pagessrc/streaming/http_audio_stream.rs:2727fn181050.5
opus_segment_rewriter_replaces_source_headers_oncesrc/streaming/http_audio_stream.rs:2747fn271050.5

Source not readable from this process.