Changeset 1027:f60acea8db1e in roaraudio for roarclients/roarmonhttp.c


Ignore:
Timestamp:
12/21/08 21:00:45 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

set ice-audio-info: and icy-pub: HTTP headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarmonhttp.c

    r1025 r1027  
    2727#define BUFSIZE 1024 
    2828 
    29 void print_header (int codec) { 
     29void print_header (int codec, int rate, int channels) { 
    3030 char * mime = "application/octet-stream"; 
    3131 
     
    4040 
    4141 printf("Content-type: %s\r\n", mime); 
     42 printf("ice-audio-info: ice-samplerate=%i;ice-channels=%i\r\n", rate, channels); 
     43 printf("icy-pub:0\r\n"); 
    4244 printf("Server: RoarAudio (roarmonhttp $Revision$)\r\n"); 
    4345 printf("\r\n"); 
     
    215217 } 
    216218 
    217  print_header(codec); 
     219 print_header(codec, rate, channels); 
    218220 
    219221/* 
Note: See TracChangeset for help on using the changeset viewer.