PackMemory with result=0

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by webba.
Originally posted by El_Choni

Wav files can be uncompressed or mp3 compressed, that's why you can get different results. If you try to compress a wav file that is, in fact, an mp3, you won't be able to compress it much further.

El_Choni
Have I missed something here...? As I understood it, a WAV file is a Windows Audio file which format does not support ANY compression. An MP3 file is a completely different file format (Nothing to do with MS) created by the MPEG group specifically to encode (via a lossy method) audio data.

There is no way that a WAV file could 'secretly' be an MP3 since the two formats are completely seperate. MP3 is not a sub-format of WAV...

This thread seems to be getting overly complicated with weird and wonderful tit-bits of guesses and rumour...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.
MP3 is not a sub-format of WAV...
Kinda yes, it is (from http://www.wotsit.org:
All newly defined WAVE types must contain both a fact chunk and an extended wave format description within the 'fmt' chunk.[...]

Fact Chunk

This chunk stores file dependent information about the contents of the WAVE file.[...]

WAVEFORMATEX

The extended wave format structure is used to defined all non-PCM format wave data, and is described as follows [...]

typedef struct waveformat_extended_tag {

WORD wFormatTag; /* format type */[...]


Defined wFormatTags
[...]

#define WAVE_FORMAT_MPEG 0x0050 /* Microsoft Corporation */

[...]
No guesses, no rumours. Bye,





El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by webba.

El_Choni,

My apologies! I have inadvertantly become guilty of my own accusation...

Thanks for the correction and the VERY interesting link, (wotsit) never seen that site before but it's in my favourites now.

Sorry old chap - and thanks again!

Regards.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

No problem! I hadn't look up the specs before you rised your doubts, but I knew wav files could be mpeg encoded because I had encoded such type of files: I have the entire Beatles 'White Album' in 60 Mb, quite good quality (hey, I also own the vynil :wink:.

Wotsit is very helpful; I didn't know about all those other encoding types either, so I have to thank you for making me search :wink:

Bye,

El_Choni
Post Reply