Skip to content

Commit 40f4fcc

Browse files
committed
Rename AudioParamRaw -> AudioParamInner
1 parent 15b826d commit 40f4fcc

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/param.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ impl AudioParamEventTimeline {
265265
#[derive(Clone)] // for the node bindings, see #378
266266
pub struct AudioParam {
267267
registration: Arc<AudioContextRegistration>,
268-
raw_parts: AudioParamRaw,
268+
raw_parts: AudioParamInner,
269269
}
270270

271271
// helper struct to attach / detach to context (for borrow reasons)
272272
#[derive(Clone)]
273-
pub(crate) struct AudioParamRaw {
273+
pub(crate) struct AudioParamInner {
274274
default_value: f32, // immutable
275275
min_value: f32, // immutable
276276
max_value: f32, // immutable
@@ -617,7 +617,7 @@ impl AudioParam {
617617
}
618618

619619
// helper function to detach from context (for borrow reasons)
620-
pub(crate) fn into_raw_parts(self) -> AudioParamRaw {
620+
pub(crate) fn into_raw_parts(self) -> AudioParamInner {
621621
let Self {
622622
registration: _,
623623
raw_parts,
@@ -628,7 +628,7 @@ impl AudioParam {
628628
// helper function to attach to context (for borrow reasons)
629629
pub(crate) fn from_raw_parts(
630630
registration: AudioContextRegistration,
631-
raw_parts: AudioParamRaw,
631+
raw_parts: AudioParamInner,
632632
) -> Self {
633633
Self {
634634
registration: registration.into(),
@@ -1583,7 +1583,7 @@ pub(crate) fn audio_param_pair(
15831583

15841584
let param = AudioParam {
15851585
registration: registration.into(),
1586-
raw_parts: AudioParamRaw {
1586+
raw_parts: AudioParamInner {
15871587
default_value,
15881588
max_value,
15891589
min_value,

src/spatial.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::context::{AudioContextRegistration, BaseAudioContext};
66
use crate::node::{
77
AudioNode, ChannelConfig, ChannelConfigOptions, ChannelCountMode, ChannelInterpretation,
88
};
9-
use crate::param::{AudioParam, AudioParamDescriptor, AudioParamRaw, AutomationRate};
9+
use crate::param::{AudioParam, AudioParamDescriptor, AudioParamInner, AutomationRate};
1010
use crate::render::{AudioParamValues, AudioProcessor, AudioRenderQuantum, RenderScope};
1111

1212
use std::f32::consts::PI;
@@ -183,15 +183,15 @@ impl AudioProcessor for ListenerRenderer {
183183

184184
/// Data holder for the BaseAudioContext so it can reconstruct the AudioListener on request
185185
pub(crate) struct AudioListenerParams {
186-
pub position_x: AudioParamRaw,
187-
pub position_y: AudioParamRaw,
188-
pub position_z: AudioParamRaw,
189-
pub forward_x: AudioParamRaw,
190-
pub forward_y: AudioParamRaw,
191-
pub forward_z: AudioParamRaw,
192-
pub up_x: AudioParamRaw,
193-
pub up_y: AudioParamRaw,
194-
pub up_z: AudioParamRaw,
186+
pub position_x: AudioParamInner,
187+
pub position_y: AudioParamInner,
188+
pub position_z: AudioParamInner,
189+
pub forward_x: AudioParamInner,
190+
pub forward_y: AudioParamInner,
191+
pub forward_z: AudioParamInner,
192+
pub up_x: AudioParamInner,
193+
pub up_y: AudioParamInner,
194+
pub up_z: AudioParamInner,
195195
}
196196

197197
use vecmath::{

0 commit comments

Comments
 (0)