IN APP RECORDING

Hello Developers,

I am building an application that uses pre recorded sounds to make music. currently the app is capable of recording, problem is, the recording includes outside noise. I am having trouble recording within the application.

Is it even possible?