Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaulFurtado/rusty_bars
/ functions
Functions
134 in github.com/PaulFurtado/rusty_bars
⨍
Functions
134
◇
Types & classes
46
↓ 10 callers
Function
get_str
Turn a raw c pointer with a life time into an &str
src/pulse/types.rs:450
↓ 8 callers
Method
as_ptr
Get an immutable raw pointer to the memory backing this array
src/fftw/aligned_array.rs:64
↓ 6 callers
Method
as_void_ptr
Get a c_void pointer to this object
src/pulse/context.rs:183
↓ 6 callers
Function
handle_err
Turns an ncurses error code into a result so we can toss errors up the stack
src/ncurses/window.rs:94
↓ 2 callers
Method
as_mut_ptr
Get an mutable raw pointer to the memory backing this array
src/fftw/aligned_array.rs:69
↓ 2 callers
Method
as_mut_slice
Modify the contents of this array via a mutable slice
src/fftw/aligned_array.rs:75
↓ 2 callers
Method
disconnect
Disconnect the stream from its source/sink.
src/pulse/stream.rs:292
↓ 2 callers
Method
get_mask
Get the current subscription mask
src/pulse/subscription_manager.rs:26
↓ 2 callers
Method
get_max_x
Get the maximum x on the screen
src/ncurses/window.rs:71
↓ 2 callers
Method
get_raw_ptr
(&self)
src/pulse/stream.rs:236
↓ 2 callers
Method
initialize
Initialize every element in the array with init_val
src/fftw/aligned_array.rs:57
↓ 2 callers
Function
pa_context_subscribe
Subscribe to an event
src/pulse/context.rs:323
↓ 2 callers
Function
pa_stream_disconnect
Disconnects the stream from its source.
src/pulse/stream.rs:128
↓ 2 callers
Method
sink_info_callback
Called back for the sink_info_list and get_sink_info commands
src/pulse/context.rs:212
↓ 2 callers
Method
update_sink
Gets the monitor for the current default sink and then calls set_sink
src/viz_runner.rs:111
↓ 1 callers
Method
abs
Get the absolute value (distance from zero) of the complex number
src/fftw/types.rs:30
↓ 1 callers
Method
add
Add a subscription
src/pulse/subscription_manager.rs:31
↓ 1 callers
Method
add_subscription
Adds an event subscription
src/pulse/context.rs:95
↓ 1 callers
Method
addbytes
Add a raw array of c_char to the window
src/ncurses/window.rs:54
↓ 1 callers
Method
addstr
Add a string to the screen starting at the given location
src/ncurses/window.rs:45
↓ 1 callers
Method
as_mut_ptr
Get a mutable raw pointer to this object
src/pulse/stream.rs:176
↓ 1 callers
Method
as_mut_ptr
Get a mutable raw pointer to this object
src/pulse/context.rs:188
↓ 1 callers
Method
as_slice
Access the contents of this array via an immutable slice
src/fftw/aligned_array.rs:80
↓ 1 callers
Method
as_void_ptr
Get a c_void pointer to this object
src/pulse/stream.rs:171
↓ 1 callers
Method
compute_output
Computes the combined output of all channels into the output field of this struct. Every time compute_output is called, it reuses the same output vect
src/fftw/audio.rs:101
↓ 1 callers
Method
connect
Connect to PulseAudio
src/viz_runner.rs:90
↓ 1 callers
Method
connect_record
Record playback from a source. Args: source_name: The name of the source to record from. If none, use the default source. buffer_attributes: Options o
src/pulse/stream.rs:281
↓ 1 callers
Method
create_context
/ Creates a new context with this mainloop
src/pulse/mainloop.rs:31
↓ 1 callers
Method
create_stream
Create an unconnected PulseAudioStream on this server. Args: name: A name for this stream. ss: The sample format of the stream. map: The desired chan
src/pulse/context.rs:125
↓ 1 callers
Method
curs_set
Set the visibility of the cursor
src/ncurses/window.rs:81
↓ 1 callers
Method
drop_fragment
Drops the current fragment in Pulse's record stream. Can only be called after peek.
src/pulse/stream.rs:270
↓ 1 callers
Function
endwin
Safe wrapper for the ncurses endwin function. Call this when you are done with ncurses.
src/ncurses/window.rs:11
↓ 1 callers
Method
event_callback
(&mut self, t: c_int, idx: u32)
src/pulse/context.rs:220
↓ 1 callers
Method
execute
Execute the plan
src/fftw/plan.rs:46
↓ 1 callers
Method
feed_data
Allows a client to feed data into the FFT in chunks. This is useful for ineracting with PulseAudio because its asynchronous API gives audio data in ar
src/fftw/audio.rs:64
↓ 1 callers
Method
feed_u8_data
Wrapper for feed_data which takes an &[u8] slice instead of an &[i16] slice. Simply casts the slice to an i16 slice then calls feed_data on it.
src/fftw/audio.rs:93
↓ 1 callers
Method
get_default_sink_name
(&'a self)
src/pulse/types.rs:422
↓ 1 callers
Method
get_input_slice
Get a slice of the FFTW plan's input buffer
src/fftw/plan.rs:51
↓ 1 callers
Method
get_inputs
Gets a vector of all of the input slices
src/fftw/multichannel.rs:50
↓ 1 callers
Method
get_max_y
Get the maximum y on the screen
src/ncurses/window.rs:66
↓ 1 callers
Method
get_max_yx
Get a tuple containing the maximum y and x on the screen
src/ncurses/window.rs:76
↓ 1 callers
Function
get_min_max
Loops through an iterator of f64 and gets the min and max values. The min/max functions in the standard library don't work on floats.
src/visualizer.rs:63
↓ 1 callers
Method
get_monitor_source_name
(&'a self)
src/pulse/types.rs:440
↓ 1 callers
Method
get_output
Borrow the combined output vector
src/fftw/audio.rs:118
↓ 1 callers
Method
get_output_slice
Get a slice of the FFTW plan's output buffer
src/fftw/plan.rs:56
↓ 1 callers
Method
get_raw_mainloop_api
Helper method to get the raw mainloop api
src/pulse/mainloop.rs:26
↓ 1 callers
Method
get_server_info
Gets basic information about the server. See the pa_server_info struct for more details.
src/pulse/context.rs:76
↓ 1 callers
Method
get_sink_info_by_name
Get information about a sink using its name. PulseAudio uses the same callback type for getting a single sink as getting the list of all sinks, so a s
src/pulse/context.rs:88
↓ 1 callers
Method
get_state
Get the current context state. This function is synchronous.
src/pulse/context.rs:178
↓ 1 callers
Method
get_value
Multiplies the given value against the hanning window multiplier value for this index
src/fftw/hanning.rs:30
↓ 1 callers
Method
handle_stale_stream
Handles a stale stream and returns true if the stream was stale A stale stream can occur when switching streams before the current stream was in the "
src/viz_runner.rs:160
↓ 1 callers
Function
initscr
Initialize the screen and get a window
src/ncurses/window.rs:22
↓ 1 callers
Function
is_power_of_two
Determine if a number is a power of two
src/fftw/plan.rs:72
↓ 1 callers
Method
on_fft_frame_ready
Called whenever the FFT has enough data to run a frame of the visualizer
src/viz_runner.rs:148
↓ 1 callers
Method
on_ready
Callled when the context is ready
src/viz_runner.rs:105
↓ 1 callers
Function
pa_context_connect
A safe wrapper for pa_context_connect
src/pulse/context.rs:256
↓ 1 callers
Function
pa_context_get_server_info
A rust wrapper around pa_context_get_server_info
src/pulse/context.rs:299
↓ 1 callers
Function
pa_context_get_sink_info_by_name
Gets sink info by the sink's name
src/pulse/context.rs:290
↓ 1 callers
Function
pa_context_get_state
A rust wrapper around pa_context_get_state
src/pulse/context.rs:378
↓ 1 callers
Function
pa_context_new
A safe interface to pa_context_new
src/pulse/context.rs:312
↓ 1 callers
Function
pa_context_set_state_callback
A safe interface to pa_context_set_state_callback
src/pulse/context.rs:248
↓ 1 callers
Function
pa_context_set_subscribe_callback
Set the callback for all subscriptions
src/pulse/context.rs:330
↓ 1 callers
Function
pa_mainloop_get_api
A safe interface to pa_mainloop_get_api
src/pulse/mainloop.rs:51
↓ 1 callers
Function
pa_mainloop_new
A safe interface to pa_mainloop_new
src/pulse/mainloop.rs:59
↓ 1 callers
Function
pa_mainloop_run
A rust wrapper around pa_mainloop_run
src/pulse/mainloop.rs:45
↓ 1 callers
Function
pa_stream_connect_record
Sets a pa_stream to record from a source.
src/pulse/stream.rs:77
↓ 1 callers
Function
pa_stream_drop
Drops the stream's current fragment, freeing up the input buffer. Should only be called after peek.
src/pulse/stream.rs:121
↓ 1 callers
Function
pa_stream_new
Create a new pa_stream
src/pulse/stream.rs:54
↓ 1 callers
Function
pa_stream_peek
Set data to a pointer to audio data, and nbytes to point to the amount of bytes available.
src/pulse/stream.rs:66
↓ 1 callers
Function
pa_stream_set_read_callback
Set a callback for when there's data available to be read.
src/pulse/stream.rs:44
↓ 1 callers
Method
peek
Return the current fragment from Pulse's record stream. To return the next fragment, drop_fragment must be called after peeking.
src/pulse/stream.rs:243
↓ 1 callers
Method
read_callback
Called when the underlying stream has data available for reading.
src/pulse/stream.rs:159
↓ 1 callers
Method
refresh
Refresh the output on the display
src/ncurses/window.rs:61
↓ 1 callers
Method
remove
Remove a subscription
src/pulse/subscription_manager.rs:36
↓ 1 callers
Method
render_frame
Render a single frame of the animation
src/visualizer.rs:161
↓ 1 callers
Function
resize_rowbuf
Resize the row buffer to width
src/visualizer.rs:78
↓ 1 callers
Method
resize_rowbufs
Resizes each of hte row buffers to the given width
src/visualizer.rs:139
↓ 1 callers
Method
run
Run the mainloop.
src/pulse/mainloop.rs:36
↓ 1 callers
Function
scale_fft_output
Scales down a vector by averaging the elements between the resulting points
src/visualizer.rs:28
↓ 1 callers
Method
server_info_callback
Called back for get_server_info. Wraps the user's closure
src/pulse/context.rs:203
↓ 1 callers
Method
set_event_callback
Set the callback for subscriptions
src/pulse/context.rs:113
↓ 1 callers
Method
set_read_callback
Sets the read callback
src/pulse/stream.rs:298
↓ 1 callers
Method
set_sink
Switches to a new sink
src/viz_runner.rs:129
↓ 1 callers
Method
set_state_callback
Set the callback for server state. This callback gets called many times. Do not start sending commands until this returns pa_context_state::READY
src/pulse/context.rs:58
↓ 1 callers
Method
state_callback
Called back for state changes. Wraps the user's closure
src/pulse/context.rs:193
↓ 1 callers
Method
stream_read_callback
Handle the callback from PulseAudio telling us that stream data is ready
src/viz_runner.rs:179
↓ 1 callers
Method
subscribe_to_sink_changes
Subscribe to the default sink changing on the server
src/viz_runner.rs:67
↓ 1 callers
Method
subscription_success_callback
(&mut self, success: bool)
src/pulse/context.rs:228
↓ 1 callers
Method
update_row_count
Adds or removes rows if the window size is changed.
src/visualizer.rs:129
↓ 1 callers
Method
update_size
Do any necessary adjustments for a window size change. This gets called when we fetch the max_yx
src/visualizer.rs:147
Function
_pa_stream_read_callback
Wrapper for a PulseAudio stream read callback. Called by C when there is audio data available to read.
src/pulse/stream.rs:35
Function
_server_info_callback
Server info callback for C to call. Takes a ContextInternal and calls its server_info_callback method.
src/pulse/context.rs:346
Function
_sink_info_callback
Sink info callback for C to call.
src/pulse/context.rs:353
Function
_state_callback
State callback for C to call. Takes a ContextInternal and calls its server_info_callback method.
src/pulse/context.rs:338
Function
_subscription_event_callback
Subscription callback for C to call.
src/pulse/context.rs:364
Function
_subscription_success_callback
Called back to tell you if a subscription succeded or failed.
src/pulse/context.rs:371
Method
connect
Connect to the server 1. Before calling this, you probably want to run set_state_callback 2. After setting a state callback, run this method 3. Direct
src/pulse/context.rs:69
Method
drop
Free the array with the right deallocator
src/fftw/aligned_array.rs:89
Method
drop
Runds fftw_destroy plan when a plan goes out of scope
src/fftw/plan.rs:65
Method
drop
(&mut self)
src/ncurses/window.rs:87
next →
1–100 of 134, ranked by callers