I'm not sure I understand your comment, but I think that's what is already happening. Consider this: WAV is a sequence of samples - BMP is sequence of RGB values. So you can more or less treat it the same.
If you would try to read JPEG (i.e. frequency domain data) as WAV it would be a mess. The "appropriate" format would then be something like MP3 but you would run into issues - MP3 contains more metadata in the streams, JPEG encodes 8x8px 2D images while MP3 encodes ~576 1D samples...
If you would try to read JPEG (i.e. frequency domain data) as WAV it would be a mess. The "appropriate" format would then be something like MP3 but you would run into issues - MP3 contains more metadata in the streams, JPEG encodes 8x8px 2D images while MP3 encodes ~576 1D samples...