Hi all,
I'm a master student at the university of Utrecht working on his master thesis project. The project is on 3D audio on mobile phones, developing on Android in my case.
I'm still looking for a way to simulate the 3D audio with headphones. I think a simple version using just the time delay between to ears and perhaps volume difference should give something to work with.
However, my initial idea of just playing a sound twice, with the given delay obviously doesn't work since there will be (random) lag between the 2 commands.
My supervisor mentioned it might be possible to adjust the audiodata when playing it and add some silence in front of the left or right channel.
It seems the write method from the audioTrack class could be used for that:
Is there a way to edit the data to both ears seperately? Or is there another way i can create 3D audio? Iphone support openAL which has 3D audio functions in it if i'm correct, but sound on Android doesn't seem that advance.
I would be gratefull if someone could help me. the actual implementation isn't the biggest part. The research to see what i can do with it is the biggest part...
thanx in advance!
I'm a master student at the university of Utrecht working on his master thesis project. The project is on 3D audio on mobile phones, developing on Android in my case.
I'm still looking for a way to simulate the 3D audio with headphones. I think a simple version using just the time delay between to ears and perhaps volume difference should give something to work with.
However, my initial idea of just playing a sound twice, with the given delay obviously doesn't work since there will be (random) lag between the 2 commands.
My supervisor mentioned it might be possible to adjust the audiodata when playing it and add some silence in front of the left or right channel.
It seems the write method from the audioTrack class could be used for that:
You have a byte array of audiodata which is what you want. Hover, it looks like this data is sent to both ears.write (byte[] audioData, int offsetInBytes, int sizeInBytes)
Is there a way to edit the data to both ears seperately? Or is there another way i can create 3D audio? Iphone support openAL which has 3D audio functions in it if i'm correct, but sound on Android doesn't seem that advance.
I would be gratefull if someone could help me. the actual implementation isn't the biggest part. The research to see what i can do with it is the biggest part...
thanx in advance!