-instance Frame fr ⇒ Writable (Player fr Mono) (L.Vector fr) where
- write pl v
- = liftIO $ sanitizeIOError $ L.hPut (plHandle pl) v
+instance Stream (Player fr ch) where
+ streamSampleRate = plRate
+
+instance Frame fr ⇒ WritableStream (Player fr Mono) (L.Vector fr) where
+ writeFrames pl v
+ = liftIO $
+ sanitizeIOError $
+ do L.hPut (plHandle pl) v
+ hFlush (plHandle pl)