how to get the codes for music player in objective c

Have you tried searching for them ?

If it's for iOS, then you have to use the AVFoundation framework. If it's for OS X, you can drag music/sounds into the supporting files and set it up in the interface editor.
Sound is located here -> http://imgur.com/OPZk2XM

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.