mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-10-26 12:27:01 +00:00 
			
		
		
		
	REDESIGN: ExportWave()
Use new file I/O ABI
This commit is contained in:
		| @@ -744,9 +744,7 @@ void ExportWave(Wave wave, const char *fileName) | |||||||
|     { |     { | ||||||
|         // Export raw sample data (without header) |         // Export raw sample data (without header) | ||||||
|         // NOTE: It's up to the user to track wave parameters |         // NOTE: It's up to the user to track wave parameters | ||||||
|         FILE *rawFile = fopen(fileName, "wb"); |         SaveFileData(fileName, wave.data, wave.sampleCount*wave.channels*wave.sampleSize/8); | ||||||
|         success = fwrite(wave.data, wave.sampleCount*wave.channels*wave.sampleSize/8, 1, rawFile); |  | ||||||
|         fclose(rawFile); |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     if (success) TRACELOG(LOG_INFO, "Wave exported successfully: %s", fileName); |     if (success) TRACELOG(LOG_INFO, "Wave exported successfully: %s", fileName); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ray
					Ray