pub fn build(&self) -> Result<Box<dyn Amp>> {
        match self.sound_card_id {
            "sofcmlmax98390d" => Ok(Box::new(Max98390::new(self.sound_card_id)?) as Box<dyn Amp>),
            "sofrt5682" => Ok(Box::new(Max98373::new(self.sound_card_id)?) as Box<dyn Amp>),
            _ => Err(Error::UnsupportedSoundCard(self.sound_card_id.to_owned())),
        }
    }
/// Creates an `Amp` based on the sound card name.
Creates an `Amp` based on the sound card name.
Creates an ` Amp ` based on the sound card name .
pub fn build(&self) -> Result<Box<dyn Amp>> {
        match self.sound_card_id {
            "sofcmlmax98390d" => Ok(Box::new(Max98390::new(self.sound_card_id)?) as Box<dyn Amp>),
            "sofrt5682" => Ok(Box::new(Max98373::new(self.sound_card_id)?) as Box<dyn Amp>),
            _ => Err(Error::UnsupportedSoundCard(self.sound_card_id.to_owned())),
        }
    }
pub fn build ( & self ) -> Result < Box < dyn Amp > > { match self . sound_card_id { " " => Ok ( Box :: new ( Max98390 :: new ( self . sound_card_id ) ? ) as Box < dyn Amp > ) , " " => Ok ( Box :: new ( Max98373 :: new ( self . sound_card_id ) ? ) as Box < dyn Amp > ) , _ => Err ( Error :: UnsupportedSoundCard ( self . sound_card_id . to_owned ( ) ) ) , } }
Creates an `Amp` based on the sound card name.
Creates an ` Amp ` based on the sound card name .
&self
&self