Playing a Sound
will have different behavior on the different NME platforms, including different latencies. Even in plain old Flash, Sound.play
and SoundChannel.position
aren't very accurate!
For a rhythm game, you really do need low-level audio control, which NME doesn't currently have. If you are targeting Flash, you can use SampleDataEvent
to dynamically mix the audio and get more accurate timing. There are plans to add cross-platform support for SampleDataEvent
to NME in the future (source).