mirror of
				https://github.com/vsariola/sointu.git
				synced 2025-11-03 16:35:57 -05:00 
			
		
		
		
	refactor: move Wav and Raw methods as members of AudioBuffer
This commit is contained in:
		
						parent
						
							33625c6f40
						
					
				
				
					commit
					0187cc66ec
				
			@ -145,7 +145,7 @@ func (t *Tracker) exportWav(w io.WriteCloser, pcm16 bool) {
 | 
			
		||||
		t.Alert.Update(fmt.Sprintf("Error rendering the song during export: %v", err), Error, time.Second*3)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	buffer, err := sointu.Wav(data, pcm16)
 | 
			
		||||
	buffer, err := data.Wav(pcm16)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		t.Alert.Update(fmt.Sprintf("Error converting to .wav: %v", err), Error, time.Second*3)
 | 
			
		||||
		return
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user