{"action":"opened","issue":{"url":"https://api.github.com/repos/filoe/cscore/issues/64","repository_url":"https://api.github.com/repos/filoe/cscore","labels_url":"https://api.github.com/repos/filoe/cscore/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/filoe/cscore/issues/64/comments","events_url":"https://api.github.com/repos/filoe/cscore/issues/64/events","html_url":"https://github.com/filoe/cscore/issues/64","id":140227070,"number":64,"title":"How to separate sources for drawing and playing wave","user":{"login":"postacik","id":3977227,"avatar_url":"https://avatars.githubusercontent.com/u/3977227?v=3","gravatar_id":"","url":"https://api.github.com/users/postacik","html_url":"https://github.com/postacik","followers_url":"https://api.github.com/users/postacik/followers","following_url":"https://api.github.com/users/postacik/following{/other_user}","gists_url":"https://api.github.com/users/postacik/gists{/gist_id}","starred_url":"https://api.github.com/users/postacik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postacik/subscriptions","organizations_url":"https://api.github.com/users/postacik/orgs","repos_url":"https://api.github.com/users/postacik/repos","events_url":"https://api.github.com/users/postacik/events{/privacy}","received_events_url":"https://api.github.com/users/postacik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-11T16:21:56Z","updated_at":"2016-03-11T16:21:56Z","closed_at":null,"body":"I am working on a wave editor which uses CSCore to read and play music files.\r\n\r\nI initialize my source as the following:\r\n\r\n```c#\r\n            mSoundSource = CodecFactory.Instance.GetCodec(fileName).ToSampleSource().ToMono();\r\n            mWaveSource = mSoundSource.ToWaveSource(16);\r\n            mMusicPlayer.Open(mWaveSource, device);\r\n```\r\n\r\nTo draw wave form of the audio file I set mSoundSource.Position to some offset and read audio data starting from that offset.\r\n\r\nIf I change the mSoundSource.Position while audio is playing, playing position is also changed since mWaveSource is linked to mSoundSource.\r\n\r\nWhat is the most effective wave of separating sources for \"drawing wave form\" and \"playing audio\"?"}}