{"action":"created","issue":{"url":"https://api.github.com/repos/popcornmix/omxplayer/issues/558","repository_url":"https://api.github.com/repos/popcornmix/omxplayer","labels_url":"https://api.github.com/repos/popcornmix/omxplayer/issues/558/labels{/name}","comments_url":"https://api.github.com/repos/popcornmix/omxplayer/issues/558/comments","events_url":"https://api.github.com/repos/popcornmix/omxplayer/issues/558/events","html_url":"https://github.com/popcornmix/omxplayer/issues/558","id":246671273,"number":558,"title":"Peak/Beat detector via DBUS","user":{"login":"Mark-81","id":18552813,"avatar_url":"https://avatars2.githubusercontent.com/u/18552813?v=4","gravatar_id":"","url":"https://api.github.com/users/Mark-81","html_url":"https://github.com/Mark-81","followers_url":"https://api.github.com/users/Mark-81/followers","following_url":"https://api.github.com/users/Mark-81/following{/other_user}","gists_url":"https://api.github.com/users/Mark-81/gists{/gist_id}","starred_url":"https://api.github.com/users/Mark-81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mark-81/subscriptions","organizations_url":"https://api.github.com/users/Mark-81/orgs","repos_url":"https://api.github.com/users/Mark-81/repos","events_url":"https://api.github.com/users/Mark-81/events{/privacy}","received_events_url":"https://api.github.com/users/Mark-81/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-31T07:46:17Z","updated_at":"2017-08-01T17:15:41Z","closed_at":null,"body":"Hi! Do you think it's possible to fork the code to add a beat (or peak) detector on the audio layer using DBUS?\r\nIn my application I want to receive a message every time a beat (or peak) is detected in other to sync other tasks. \r\n\r\nMy idea is to process the audio samples just before send them to the output device. \r\nAny help to find the right function where I should put my code?"},"comment":{"url":"https://api.github.com/repos/popcornmix/omxplayer/issues/comments/319436289","html_url":"https://github.com/popcornmix/omxplayer/issues/558#issuecomment-319436289","issue_url":"https://api.github.com/repos/popcornmix/omxplayer/issues/558","id":319436289,"user":{"login":"popcornmix","id":1053730,"avatar_url":"https://avatars3.githubusercontent.com/u/1053730?v=4","gravatar_id":"","url":"https://api.github.com/users/popcornmix","html_url":"https://github.com/popcornmix","followers_url":"https://api.github.com/users/popcornmix/followers","following_url":"https://api.github.com/users/popcornmix/following{/other_user}","gists_url":"https://api.github.com/users/popcornmix/gists{/gist_id}","starred_url":"https://api.github.com/users/popcornmix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popcornmix/subscriptions","organizations_url":"https://api.github.com/users/popcornmix/orgs","repos_url":"https://api.github.com/users/popcornmix/repos","events_url":"https://api.github.com/users/popcornmix/events{/privacy}","received_events_url":"https://api.github.com/users/popcornmix/received_events","type":"User","site_admin":false},"created_at":"2017-08-01T17:15:41Z","updated_at":"2017-08-01T17:15:41Z","body":"This is far outside of the scope of omxplayer.\r\nFeel free to fork the repo and add support, but it is not something I will be adding.\r\n\r\nIf you want to do this, then at this point:\r\nhttps://github.com/popcornmix/omxplayer/blob/master/OMXPlayerAudio.cpp#L256\r\n\r\nyou have decoded audio in ``decoded``buffer with size ``decoded_size``.\r\nYou can process that buffer how you want.\r\nThese audio samples won't be played immediately, but get queued up after being sent to GPU.\r\nYou should have a couple of seconds of audio queued after the queue has filled up (you can adjust amount of data queued with command line flags), so you can send a message that arrives before audio is heard."}}
{"actor":{"display_login":"popcornmix"}}