diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-04 21:46:14 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-04 21:46:14 +0300 |
commit | e04ef8eb590373908aa1058542ba332cd3b43015 (patch) | |
tree | b97c714fd1cba4e1db004f6bb9ebc1f138f63404 /src/media.c | |
parent | 2f3fa20d07d86c56e3e3d054339e0b02ef577c4b (diff) |
Playing back a WAV file
Simple test case works now: loading a 16-bit stereo PCM WAV from a file (i.e., no streaming) and playing it back.
Diffstat (limited to 'src/media.c')
-rw-r--r-- | src/media.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/media.c b/src/media.c index 5d88fbc4..ad0682b1 100644 --- a/src/media.c +++ b/src/media.c | |||
@@ -177,6 +177,9 @@ void setData_Media(iMedia *d, iGmLinkId linkId, const iString *mime, const iBloc | |||
177 | /* TODO: What about update/complete, for streaming? */ | 177 | /* TODO: What about update/complete, for streaming? */ |
178 | updateSourceData_Player(audio->player, data, replace_PlayerUpdate); | 178 | updateSourceData_Player(audio->player, data, replace_PlayerUpdate); |
179 | pushBack_PtrArray(&d->audio, audio); | 179 | pushBack_PtrArray(&d->audio, audio); |
180 | |||
181 | /* TEST: Start playing right away. */ | ||
182 | start_Player(audio->player); | ||
180 | } | 183 | } |
181 | } | 184 | } |
182 | } | 185 | } |