InputStream: convert to class

This commit is contained in:
Max Kellermann
2014-05-11 15:34:48 +02:00
parent ee2afb35dd
commit 6773adc771
31 changed files with 132 additions and 70 deletions

View File

@@ -96,8 +96,9 @@ public:
/* this mime type forces use of the PcmDecoderPlugin.
Needs to be generalised when/if that decoder is
updated to support other audio formats */
base.mime = "audio/x-mpd-cdda-pcm";
base.ready = true;
base.SetMimeType("audio/x-mpd-cdda-pcm");
base.SetReady();
frames_to_read = read_buffer_size / frame_size;
snd_pcm_start(capture_handle);