File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ processing:
276276 - id : " gain_amplifier"
277277 node_type : " gain"
278278 parameters :
279- value : 3.0 # +3 dB gain (approximately 1.41x amplification)
279+ gain_db : 3.0 # +3 dB gain (approximately 1.41x amplification)
280280
281281 - id : " streaming_bandpass_filter"
282282 node_type : " streaming"
Original file line number Diff line number Diff line change 672672 "parameters" : {
673673 "type" : " object" ,
674674 "properties" : {
675- "value " : {
675+ "gain_db " : {
676676 "type" : " number" ,
677677 "description" : " Gain value in decibels (dB). Positive values amplify, negative values attenuate."
678678 }
679679 },
680680 "required" : [
681- " value "
681+ " gain_db "
682682 ],
683683 "additionalProperties" : false
684684 }
Original file line number Diff line number Diff line change @@ -1096,10 +1096,11 @@ impl ProcessingGraph {
10961096 . ok_or_else ( || anyhow:: anyhow!( "Gain node requires parameters" ) ) ?;
10971097
10981098 let gain_db = params
1099- . get ( "value " )
1099+ . get ( "gain_db " )
11001100 . and_then ( |v| v. as_f64 ( ) )
1101- . ok_or_else ( || anyhow:: anyhow!( "Gain node requires 'value' parameter in dB" ) ) ?
1102- as f32 ;
1101+ . ok_or_else ( || {
1102+ anyhow:: anyhow!( "Gain node requires 'gain_db' parameter in dB" )
1103+ } ) ? as f32 ;
11031104
11041105 Ok ( Box :: new ( GainNode :: new ( config. id . clone ( ) , gain_db) ) )
11051106 }
You can’t perform that action at this time.
0 commit comments