In my application, I need to play 50 MB audio recording. If the user presses the home button near the 27-minute mark, the sound pauses. When they resume the application, the sound resumes where it was stopped.
I use AVAudioPlayer to play this audio file, but I am worried about keeping this large audio file in memory when my application goes to the background. What do you advise to minimize the effect of saving / resuming memory on an audio file like this?
( ), , Apple .
AVAudioPlayer - . , , - , applicationDidReceiveMemoryWarning. OS , , , .
, currentTime, , , . , , , , .
OpenAL, , , - , ,
OpenAL: http://www.gamedev.net/reference/articles/article2008.asp
Then set AL_SEC_OFFSET (second offset) to the saved position to start where the user left off.
Source: https://habr.com/ru/post/1772665/More articles:Perhaps a stupid question about strings and links in C # - c #How to map TIMESTAMP WITH TIME ZONE to a Java data type using Hibernate 3.3.2GA? - javahow to convert formatted text to RTF using java - javaCES JSON deserialization - jsonSpring custom soap fault return - javaThe activity window on the standard call screen - "Enable" buttons - androidWhat did I put into the dict visit passed to my __deepcopy__ custom function? - pythonПо умолчанию загружайте некоторые данные в нашу базу данных sqlite - androidГраница изображения в строгом HTML с использованием CSS - htmlКак рассчитать эффективное локальное среднее для каждой координаты большой матрицы (средний фильтр) в python - pythonAll Articles