Skip to content

setTime does not work on MacOS when a sound is loaded as a sample into RAM #1607

Description

@gabeklavans

Description

I'm trying to seek to a position in a ogg file before playing it, using setTime. I also would like to load the sound into RAM instead of streaming it from disk.

On my Windows machine, this works as expected. However, on my Mac-Mini, setTime doesn't do anything specifically when the audio is loaded into RAM instead of streaming from disk.

In my example project for this bug, I have uploaded an ogg file of me counting roughly once a second. If you run it on MacOS, you will hear that the audio starts from the beginning, no matter what you input into setTime. If you comment out the line setting the audio-preload-threshold config variable, you'll notice the file is loaded as a stream, and setTime works properly. None of this happens on Windows, and setTime always sets the proper time.

Steps to Reproduce

  • Checkout this repo
  • Install latest panda3d with pip install panda3d
  • Run the main file with python3 main.py

Environment

  • Operating system: MacOS Sonoma 14.2.1
  • System architecture: Apple M1 (arm)
  • Panda3D version: 1.10.14 (I also tried on the last 1.10.13xxx)
  • Installation method: pip
  • Python version (if using Python): 3.11.6
  • Compiler (if using C++): N/A

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions