is a sound file format developed by Microsoft that conforms to the Piffresource Interchange File format specification for storing audio information resources for the Windows platform and is supported by the Windows platform and its applications. “*. WAV "format support MSADPCM, Ccittalaw and other compression algorithms, support a variety of audio digits, sampling frequency and channel, the standard format of WAV files and CD format, is also a 44.1K sampling frequency, rate 88k/seconds, 16-bit quantization digits, see the bar, WAV format sound file quality and CD, is also the current PC on the popular sound file format, almost all audio editing software "know" wav format. Here, incidentally, the AIFF (audiointerchange fileformat) format developed by Apple and the AU format developed for UNIX systems are very much like WAV and support their common music formats in most audio editing software.
WMA (Windows Media Audio) format is from Microsoft's heavyweight, the background is strong, the sound quality is stronger than the MP3 format, farther than the RA format, it and Japanese Yamaha company developed VQF format, is to reduce the data flow but maintain the quality of the method to achieve than MP3 compression For a higher rate, the compression rate of WMA can generally reach about 1:18, and the other advantage of WMA is that content providers can use DRM (digitalrights Management) schemes such as Windows Media Rights Manager7 Add anti-copy protection. This built-in copyright protection technology can limit the playback time and the number of times and even play the machine and so on, which is the Pirates of the chaos of the music company is a good gospel, in addition, WMA also supports the audio stream (stream) technology, suitable for online playback on the network, as Microsoft Preemption Network Music The pioneers can be said to be technologically advanced, strong, and more convenient than the need to install additional players like MP3, and the seamless bundling of Windows operating systems and WindowsMedia players allows you to play WMA music directly as long as you have Windows operating systems installed. The new version of Windows MediaPlayer7.0 has increased the ability to convert CDs directly to WMA sound format, and in the new operating system, WMA is the default encoding format, and you know what happened to Netscape, and now the wolf is here again. WMA This format can be used to adjust the sound quality when recording. In the same format, the sound quality can be comparable to the CD, the compression rate of high can be used for webcasts. Although the network is not very popular now, but in the large-scale promotion of Microsoft has been more and more recognition of the site and strong support, in the field of network music is almost *.mp3, in the network broadcast, is also carved up the world of real lay. As a result, almost all audio formats feel the pressure of the WMA format.
-(void) viewdidload
{
[Superviewdidload];
Self.view.backgroundColor = [Uicolor Whitecolor];
dispatch_queue_t dispatchqueue = Dispatch_get_global_queue (dispatch_queue_priority_default,0);
Dispatch_async (dispatchqueue,^ (void) {
Nsstring*filepath = [[Nsbundlemainbundle] pathforresource:@ "Test" oftype:@ "MP3"];
nsdata* data= [NSData Datawithcontentsoffile:filepath];
Nserror*error = nil;
Self.audioplay = [[Avaudioplayer alloc] Initwithdata:data error:&error];
if (_audioplay!= nil) {
Self.audioPlay.delegate = self;
} else {
NSLog (@ "Error");
NSLog (@ "%@", error.description);
}
});
Do no additional setup after loadingthe view.
}
The use of asyncsocket for data transmission,, if not high requirements for the information can be used Asyncudpsocket