Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!(shout = shout_new())) {
- LOGD("Could not allocate shout_t");
- }
- if (shout_set_host(shout, host) != SHOUTERR_SUCCESS) {
- LOGD("Error setting hostname: ");
- }
- if (shout_set_protocol(shout, SHOUT_PROTOCOL_HTTP) != SHOUTERR_SUCCESS) {
- LOGD("Error setting protocol: ");
- }
- if (shout_set_tls(shout, SHOUT_TLS_AUTO) != SHOUTERR_SUCCESS) {
- LOGD("Error setting tls: %d ",protoerr);
- }
- if (shout_set_port(shout, in_port) != SHOUTERR_SUCCESS) {
- LOGD("Error setting port: ");
- }
- if (shout_set_password(shout, pass) != SHOUTERR_SUCCESS) {
- LOGD("Error setting password: ");
- }
- if (shout_set_mount(shout, mount) != SHOUTERR_SUCCESS) {
- LOGD("Error setting mount: ");
- }
- if (shout_set_url(shout, "http://www.audiominutes.com") != SHOUTERR_SUCCESS) {
- LOGD("Error setting url: ");
- }
- if (shout_set_genre(shout, "speech") != SHOUTERR_SUCCESS) {
- LOGD("Error setting genre: ");
- }
- if (shout_set_description(shout, "Audiominutes live stream") != SHOUTERR_SUCCESS) {
- LOGD("Error setting description: ");
- }
- if (shout_set_agent(shout, "streamerShout") != SHOUTERR_SUCCESS) {
- LOGD("Error setting agent: ");
- }
- if (shout_set_user(shout, user) != SHOUTERR_SUCCESS) {
- LOGD("Error setting user: ");
- }
- if (shout_set_format(shout, SHOUT_FORMAT_MP3) != SHOUTERR_SUCCESS) {
- LOGD("Error setting user: ");
- }
- if (shout_set_name(shout, "Audiominutes") != SHOUTERR_SUCCESS) {
- LOGD("Error setting name: ");
- }
- if (shout_set_audio_info(shout, SHOUT_AI_SAMPLERATE, "11025") != SHOUTERR_SUCCESS) {
- LOGD("Error setting SR: ");
- }
- if (shout_set_audio_info(shout, SHOUT_AI_BITRATE, "64") != SHOUTERR_SUCCESS) {
- LOGD("Error setting BR: ");
- }
- if (shout_set_audio_info(shout, SHOUT_AI_CHANNELS, "1") != SHOUTERR_SUCCESS) {
- LOGD("Error setting CH: ");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement