IPB

Welcome Guest ( Log In | Register )

.pcm file to .wav format
Cincodekyle
post Mar 5 2010, 06:30
Post #1





Group: Members
Posts: 3
Joined: 4-March 10
Member No.: 78727



I'm working on converting a .pcm file to a .wav file with GoldWave. I'm not sure if any other programs out there support headerless raw file types, but anyway I'm not able to hear a clean version of the file. I tried opening the file as raw, 16-bit sound with a 44.1 kHz sampling rate. All I hear is a high-pitched squeal, similar to the way rewinding an old video tape sounds, so I'm assuming the sampling rate is too high.

Any tips for playing PCM files?

Here's a screenshot:


This post has been edited by Cincodekyle: Mar 5 2010, 06:32
Go to the top of the page
+Quote Post
 
Start new topic
Replies
[JAZ]
post Mar 12 2010, 20:52
Post #2





Group: Members
Posts: 1706
Joined: 24-June 02
From: Catalunya(Spain)
Member No.: 2383



I thought the best way to explain it would be with an example:

I've posted in this thread four samples which demonstrate what i mean.
http://www.hydrogenaudio.org/forums/index....showtopic=79384

I started with an original which is 8bit, mono, 16Khz. (What i believe the OP's file is).

I've imported the file with the three alternative settings that we've talked in this thread (the one the OP has found to fit his options, and two more of mine).

All four files seem to play well (at least at the appropiate speed). But it is obvious that the lower the sampling rate, the worse it sounds.


Edit: Now that i have corrected the 8bit file, there is one suggestion about the file being 16bits and not 8 bits. In DOS/Windows at least, 8bit samples were unsigned (i.e. from 0 to 255), while 16bit samples are signed (from -32768 to 32767).

Since the op says that the file he has is signed (as i have assumed in my example), chances are the file is 16bits. So, in conclusion, my second option.

This post has been edited by greynol: Mar 12 2010, 21:38
Reason for edit: Fixed broken link.
Go to the top of the page
+Quote Post
saratoga
post Mar 12 2010, 21:24
Post #3





Group: Members
Posts: 4715
Joined: 2-September 02
Member No.: 3264



QUOTE ([JAZ] @ Mar 12 2010, 14:52) *

I started with an original which is 8bit, mono, 16Khz. (What i believe the OP's file is).

I've imported the file with the three alternative settings that we've talked in this thread (the one the OP has found to fit his options, and two more of mine).

All four files seem to play well (at least at the appropiate speed). But it is obvious that the lower the sampling rate, the worse it sounds.


If you changed the sampling rate and the speed of the file didn't change you probably did something wrong. Perhaps you accidentally resampled?
Go to the top of the page
+Quote Post
[JAZ]
post Mar 12 2010, 21:48
Post #4





Group: Members
Posts: 1706
Joined: 24-June 02
From: Catalunya(Spain)
Member No.: 2383



I added the .wav files in the upload forums to clear any confusion. No, i did not resample. The size of each file should be enough to understand that the only difference is the header ( except for the 8bit unsigned file, in which case the bytes are changed from signed to unsigned).

This post has been edited by [JAZ]: Mar 12 2010, 21:49
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th April 2014 - 17:33