Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a structure?
Message
From
25/06/2003 10:21:39
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
25/06/2003 09:31:09
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00803731
Message ID:
00803766
Views:
9
Emerson,

Take a look at API-Structures in VFP in the downloads section.


>Someone can help me to create this structure in VFP 8?
>
>typedef struct {
>
> DWORD dwConfig; // BE_CONFIG_XXXXX
> // Currently only BE_CONFIG_MP3 is supported
> union {
>
> struct {
>
> DWORD dwSampleRate; // 48000, 44100 and 32000 allowed
> BYTE byMode; // BE_MP3_MODE_STEREO, BE_MP3_MODE_DUALCHANNEL, BE_MP3_MODE_MONO
> WORD wBitrate; // 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256 and 320 allowed
> BOOL bPrivate;
> BOOL bCRC;
> BOOL bCopyright;
> BOOL bOriginal;
>
> } mp3; // BE_CONFIG_MP3
>
> struct {
>
> DWORD dwSampleRate;
> BYTE byMode;
> WORD wBitrate;
> BYTE byEncodingMethod;
>
> } aac;
>
> } format;
>
>} BE_CONFIG, *PBE_CONFIG;
>
>The BE_CONFIG - structure
>
>These are the members of the BE_CONFIG structure you need to fill in before you call beInitStream():
> dwConfig Specifies what kind of output you want. Since only MP3 currently is supported you must set this to BE_CONFIG_MP3
>format.mp3.dwSampleRate Samplerate in Hz for MP3 file. This can be set to either 32000, 44100 or 48000.
>format.mp3.byMode Stereomode for MP3 file. This can be either BE_MP3_MODE_STEREO, BE_MP3_MODE_DUALCHANNEL or BE_MP3_MODE_MONO.
>format.mp3.bitrate Bitrate (i.e. size) of MP3 file in kBit/s. Allowed bitrates are: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256 and 320.
>format.mp3.bCopyright If this is set to TRUE the Copyright bit in the MP3 stream will be set.
>format.mp3.bCRC Set this to TRUE in order to enable CRC-checksum in the bitstream.
>format.mp3.bOriginal If this is set to TRUE the Original bit in the MP3 stream will be set.
>format.mp3.bPrivate If this is set to TRUE the Private bit in the MP3 stream will be set.
Previous
Reply
Map
View

Click here to load this message in the networking platform