• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

133
Views
SCNAudioPlayer is throwing -10878

I start playing an audio file like this in a SceneKit app; It is playing the file surprisingly!

I can call first function to start playing again.

But at first call to start player I am having this message many times; I could not find why.

testsScene[17737:968214] throwing -10878

var backgroundAudioPlayer:SCNAudioPlayer?


func someFunction(){

  DispatchQueue.main.async { [self] in
            backgroundAudioPlayer = SCNAudioPlayer(source: "background0.mp3")
            worldNode.addAudioPlayer(backgroundAudioPlayer!)
        }

}

and stop in this way;

func someOtherFunction(){
  DispatchQueue.main.async { [self] in
                
    worldNode.removeAudioPlayer(backgroundAudioPlayer!)

               }

 }
over 3 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error