Unknown
From BASS WMA
BASS_WMA_EncodeOpenPublishMulti
Initializes WMA encoding to a publishing point on a Windows Media server, using multiple bitrates.
HWMENCODE BASS_WMA_EncodeOpenPublishMulti(
DWORD freq,
DWORD chans,
DWORD flags,
DWORD *bitrates,
char *url,
char *user,
char *pass
);
Parameters
| freq | The sample rate, or a BASS channel handle if the BASS_WMA_ENCODE_SOURCE flag is specified. | ||||||||||||||||||
| chans | The number of channels. More than stereo requires WMA Pro or PCM. | ||||||||||||||||||
| flags | A combination of these flags.
| ||||||||||||||||||
| bitrates | Array of encoding bitrates to use, terminated with a 0. | ||||||||||||||||||
| url | URL of the publishing point on the Windows Media server. | ||||||||||||||||||
| user | Username to use in connecting to the server... if either this or pass is NULL, then no username/password is sent to the server. | ||||||||||||||||||
| pass | Password to use in connecting to the server. |
Return value
If successful, the new encoder's handle is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.Error codes
| BASS_ERROR_WMA | The Windows Media modules (v9 or above) are not installed. |
| BASS_ERROR_NOTAVAIL | No codec could be found to support the requested sample format and bitrate. |
| BASS_ERROR_FILEOPEN | Could not connect to the server. |
| BASS_ERROR_WMA_DENIED | Access was denied. Check the user and pass. |
| BASS_ERROR_WMA_PUBINIT | The server connection was not initialized properly. This can happen when connecting to the same server multiple times in quick succession. Try again after waiting a couple of seconds. |
| BASS_ERROR_UNKNOWN | Some other mystery problem! |
Remarks
This function is identical to BASS_WMA_EncodeOpenPublish, but with the additional ability to specify multiple bitrates.When encoding/broadcasting in multiple bitrates, the user will automatically get the best available bitrate for their bandwidth.