()
| 40 | av.get_batch([-1,0,1,2,3]) |
| 41 | |
| 42 | def test_sync(): |
| 43 | av = get_normal_av_reader() |
| 44 | import simpleaudio |
| 45 | audio = av[25:40][0] |
| 46 | buffer = np.array([], dtype='float32') |
| 47 | for samples in audio: |
| 48 | buffer = np.append(buffer, samples.asnumpy()) |
| 49 | play = simpleaudio.play_buffer(buffer, 1, 4, 44100) |
| 50 | play.wait_done() |
| 51 | |
| 52 | if __name__ == '__main__': |
| 53 | import nose |
nothing calls this directly
no test coverage detected