Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. if (!(shout = shout_new())) {
  2. LOGD("Could not allocate shout_t");
  3. }
  4. if (shout_set_host(shout, host) != SHOUTERR_SUCCESS) {
  5. LOGD("Error setting hostname: ");
  6. }
  7. if (shout_set_protocol(shout, SHOUT_PROTOCOL_HTTP) != SHOUTERR_SUCCESS) {
  8. LOGD("Error setting protocol: ");
  9. }
  10. if (shout_set_tls(shout, SHOUT_TLS_AUTO) != SHOUTERR_SUCCESS) {
  11. LOGD("Error setting tls: %d ",protoerr);
  12. }
  13. if (shout_set_port(shout, in_port) != SHOUTERR_SUCCESS) {
  14. LOGD("Error setting port: ");
  15. }
  16. if (shout_set_password(shout, pass) != SHOUTERR_SUCCESS) {
  17. LOGD("Error setting password: ");
  18. }
  19. if (shout_set_mount(shout, mount) != SHOUTERR_SUCCESS) {
  20. LOGD("Error setting mount: ");
  21. }
  22. if (shout_set_url(shout, "http://www.audiominutes.com") != SHOUTERR_SUCCESS) {
  23. LOGD("Error setting url: ");
  24. }
  25. if (shout_set_genre(shout, "speech") != SHOUTERR_SUCCESS) {
  26. LOGD("Error setting genre: ");
  27. }
  28. if (shout_set_description(shout, "Audiominutes live stream") != SHOUTERR_SUCCESS) {
  29. LOGD("Error setting description: ");
  30. }
  31. if (shout_set_agent(shout, "streamerShout") != SHOUTERR_SUCCESS) {
  32. LOGD("Error setting agent: ");
  33. }
  34. if (shout_set_user(shout, user) != SHOUTERR_SUCCESS) {
  35. LOGD("Error setting user: ");
  36. }
  37. if (shout_set_format(shout, SHOUT_FORMAT_MP3) != SHOUTERR_SUCCESS) {
  38. LOGD("Error setting user: ");
  39. }
  40. if (shout_set_name(shout, "Audiominutes") != SHOUTERR_SUCCESS) {
  41. LOGD("Error setting name: ");
  42. }
  43. if (shout_set_audio_info(shout, SHOUT_AI_SAMPLERATE, "11025") != SHOUTERR_SUCCESS) {
  44. LOGD("Error setting SR: ");
  45. }
  46. if (shout_set_audio_info(shout, SHOUT_AI_BITRATE, "64") != SHOUTERR_SUCCESS) {
  47. LOGD("Error setting BR: ");
  48. }
  49. if (shout_set_audio_info(shout, SHOUT_AI_CHANNELS, "1") != SHOUTERR_SUCCESS) {
  50. LOGD("Error setting CH: ");
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement