class DFL::Sound
- DFL::Sound
- Reference
- Object
Overview
A DFL::Head's sound data
Included Modules
Defined in:
D_File/dfl/sound.crwrite.cr
Constant Summary
- 
        CHANNELS = 1_u16
- 
        The number of channels in the dfl sound 
Constructors
- 
        .from_wav(filename : String | Path) : Sound
        
          Reads in a dfl sound from a wav given the file path 
- 
        .from_wav(io : IO) : Sound
        
          Reads in a dfl sound from a wav given the io 
- 
        .read(io : IO) : Sound
        
          Reads in a dfl sound given the io 
Instance Method Summary
- 
        #bits_per_sample : UInt16
        
          The number of bits per each sample 
- 
        #bits_per_sample=(bits_per_sample : UInt16)
        
          The number of bits per each sample 
- 
        #sample_rate : UInt32
        
          The sample rate of the sound 
- 
        #sample_rate=(sample_rate : UInt32)
        
          The sample rate of the sound 
- 
        #samples : Array(UInt8 | UInt16)
        
          The samples 
- 
        #samples=(samples : Array(UInt8 | UInt16))
        
          The samples 
- 
        #samples_num : UInt32
        
          The number of samples in the sound 
- 
        #samples_num=(samples_num : UInt32)
        
          The number of samples in the sound 
- 
        #to_wav(filename : String | Path) : UInt32
        
          Writes a dfl sound to a wav given the file path 
- 
        #to_wav(io : IO) : UInt32
        
          Writes a dfl sound to a wav given the io 
Instance methods inherited from module WritingMethods::DFL::Sound
  
  
    
      write(io : IO)
    write
    
  
    
    
  
    
    
    
  
    
    
    
  
Constructor Detail
Reads in a dfl sound from a wav given the file path