gave audio interface proper name

This commit is contained in:
awtterpip
2023-02-07 09:13:55 -06:00
parent bccdc8221e
commit 5c605932ef
4 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ use super::scenegraph::Scenegraph;
use crate::{
core::{registry::OwnedRegistry, task},
nodes::{
data, drawable, fields, hmd, input, items, sound,
data, drawable, fields, hmd, input, items, audio,
root::Root,
spatial,
startup::{self, StartupSettings, STARTUP_SETTINGS},
@@ -103,7 +103,7 @@ impl Client {
spatial::create_interface(&client)?;
fields::create_interface(&client)?;
drawable::create_interface(&client)?;
sound::create_interface(&client)?;
audio::create_interface(&client)?;
data::create_interface(&client)?;
items::create_interface(&client)?;
input::create_interface(&client)?;

View File

@@ -5,7 +5,7 @@ mod objects;
mod wayland;
use crate::core::destroy_queue;
use crate::nodes::{drawable, hmd, input, sound};
use crate::nodes::{drawable, hmd, input, audio};
use crate::objects::input::mouse_pointer::MousePointer;
use crate::objects::input::sk_controller::SkController;
use crate::objects::input::sk_hand::SkHand;
@@ -207,7 +207,7 @@ fn main() -> Result<()> {
});
}
drawable::draw(sk);
sound::update();
audio::update();
#[cfg(feature = "wayland")]
wayland.make_context_current();
},

View File

@@ -117,7 +117,7 @@ pub fn create_flex(_node: &Node, calling_client: Arc<Client>, data: &[u8]) -> Re
resource: ResourceID,
}
let info: CreateSoundInfo = deserialize(data)?;
let node = Node::create(&calling_client, "/audio/sounds", info.name, true);
let node = Node::create(&calling_client, "/audio/sound", info.name, true);
let parent = find_spatial_parent(&calling_client, info.parent_path)?;
let transform = parse_transform(info.transform, true, true, true);
let node = node.add_to_scenegraph()?;

View File

@@ -8,7 +8,7 @@ pub mod items;
pub mod root;
pub mod spatial;
pub mod startup;
pub mod sound;
pub mod audio;
use color_eyre::eyre::{eyre, Result};
use nanoid::nanoid;
@@ -39,7 +39,7 @@ use self::drawable::text::Text;
use self::fields::Field;
use self::input::{InputHandler, InputMethod};
use self::items::{Item, ItemAcceptor, ItemUI};
use self::sound::Sound;
use self::audio::Sound;
use self::spatial::zone::Zone;
use self::spatial::Spatial;
use self::startup::StartupSettings;