Skip to content

Commit

Permalink
Privatize internal core modules
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Dec 29, 2024
1 parent c131fb8 commit dbe38c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion oxisynth/src/api/font.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::sync::Arc;

use crate::{core::soundfont::SoundFont, GeneratorType, OxiError, Preset, SoundFontId, Synth};
use crate::{GeneratorType, OxiError, Preset, SoundFont, SoundFontId, Synth};

/// SoundFont management
impl Synth {
Expand Down
12 changes: 6 additions & 6 deletions oxisynth/src/core/mod.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
pub(crate) mod midi;
pub(crate) mod write;

pub(crate) mod channel_pool;
pub(crate) use channel_pool::Channel;
mod channel_pool;
use channel_pool::Channel;
mod settings;
pub(crate) mod voice_pool;
mod voice_pool;

mod conv;
pub use channel_pool::InterpolationMethod;
pub(crate) use settings::Settings;

pub mod font_bank;
mod font_bank;

use oxisynth_chorus::Chorus;
use oxisynth_reverb::Reverb;

pub mod soundfont;
use soundfont::SoundFont;
mod soundfont;
pub use soundfont::{generator::GeneratorType, Preset, SoundFont};

use voice_pool::VoicePool;
use write::OutputBuffer;
Expand Down
2 changes: 1 addition & 1 deletion oxisynth/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod midi_event;
mod unsafe_stuff;

pub use api::Tuning;
pub use core::soundfont::{generator::GeneratorType, Preset, SoundFont};
pub use core::{GeneratorType, Preset, SoundFont};
pub use error::{OxiError, RangeError, SettingsError};
pub use midi_event::MidiEvent;

Expand Down

0 comments on commit dbe38c3

Please sign in to comment.