🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
3 messages
3 total messages Started by Do Trong Tu Mon, 09 Apr 2001 02:27
wave format: Big/Little Endian ?
#1333
Author: Do Trong Tu
Date: Mon, 09 Apr 2001 02:27
10 lines
1215 bytes
Hello,

I want to get 16bit value of wave data, but when get wave data I have 8
bit value (e.g: using AVIStreamRead() we have char*).
Is there any function to check data format is Big Endian or Little
Endian ?
I use Borland C++ builder 5, windows2000 or windowsME

Many thanks,
Do Trong Tu
Re: wave format: Big/Little Endian ?
#1334
Author: William Meyer
Date: Mon, 09 Apr 2001 04:06
16 lines
1470 bytes
"Do Trong Tu" <do@iip.ie.u-ryukyu.ac.jp> wrote in message
news:3AD11E07.16224EDC@iip.ie.u-ryukyu.ac.jp...
>
> I want to get 16bit value of wave data, but when get wave data I have 8
> bit value (e.g: using AVIStreamRead() we have char*).
> Is there any function to check data format is Big Endian or Little
> Endian ?
> I use Borland C++ builder 5, windows2000 or windowsME

As far as I know, there is only one standard in use for the storage of data
in wav files. I have not heard of there being any issue over little endian
vs. big-endian.

Sww www.wotsit.org

Bill
Re: wave format: Big/Little Endian ?
#1335
Author: Michael Warner
Date: Mon, 09 Apr 2001 13:55
10 lines
1374 bytes
On Mon, 09 Apr 2001 11:27:19 +0900, Do Trong Tu
<do@iip.ie.u-ryukyu.ac.jp> wrote:

>I want to get 16bit value of wave data, but when get wave data I have 8
>bit value (e.g: using AVIStreamRead() we have char*).
>Is there any function to check data format is Big Endian or Little
>Endian ?

It's little-endian to suit the x86 i.e. treating the data as an array
of words will give you correct signed values.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads