better method name
i guess "from" implies it is converting one thing to another, but that is not what this method was doing really.
This commit is contained in:
parent
cbfd66d42e
commit
253e70463e
|
@ -41,7 +41,7 @@ pub struct AudioQueue {
|
|||
}
|
||||
|
||||
impl AudioQueue {
|
||||
pub fn from(audio: &Audio) -> Self {
|
||||
pub fn new(audio: &Audio) -> Self {
|
||||
AudioQueue {
|
||||
spec: audio.spec,
|
||||
commands: VecDeque::new(),
|
||||
|
|
|
@ -252,7 +252,7 @@ impl SystemBuilder {
|
|||
};
|
||||
let mut audio = Audio::new(audio_spec, &sdl_audio_subsystem)?;
|
||||
audio.resume();
|
||||
let audio_queue = AudioQueue::from(&audio);
|
||||
let audio_queue = AudioQueue::new(&audio);
|
||||
|
||||
// create input device objects, exposed to the application
|
||||
|
||||
|
|
Loading…
Reference in a new issue